6.32/02 will not build from source with option -Dbuiltin_cfitsio


Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

_ROOT Version:6.32/02
_Platform:almallinux 9.4
_Compiler:g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)


Building from source with option -Dbuiltin_cfitsio fails with this error:
[ 86%] Building CXX object gui/gui/CMakeFiles/G__Gui.dir/G__Gui.cxx.o
[ 86%] Built target G__FITSIO
[ 86%] Built target SpectrumPainter
gmake[2]: *** No rule to make target ‘CFITSIO-prefix/lib/libcfitsio.a’, needed by ‘lib/libFITSIO.so’. Stop.
gmake[2]: *** Waiting for unfinished jobs…

The file does exist but not in that location …find . -name libcfitsio.a
./CFITSIO-prefix/src/BUILTIN_CFITSIO-build/libcfitsio.a
./CFITSIO-prefix/lib64/libcfitsio.a

Hi,

Thanks for the post.
Have you also tried to install cfitsio-devel and build w/o the builtin option?

Cheers,
D

Hello!

Can you verify that the problem is solved by the one-line-change that I also suggest in this PR?

You just need to change one line in builtins/cfitsio/CMakeLists.txt and restart the build-from-source process from scratch.

Cheers,
Jonas

Yes that fixes it.

Great, thanks for the feedback!