Check duplicate issues.
Description
When building ROOT from the master branch with the option -Dbuiltin_ftgl=ON (i.e., forcing the use of the bundled FTGL library), the CMake configuration step fails with an error.
The build system downloads the FTGL source tarball from the official LCG source:
https://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/ftgl-2.4.0.tar.gz
After unpacking, the internal CMake build of FTGL fails because the file src/FTLibrary.h is missing, despite being listed in src/CMakeLists.txt.
Error log:
BUILTIN_FTGL-configure-err.log
Actual output:
CMake Error at src/CMakeLists.txt:120 (ADD_LIBRARY):
Cannot find source file:
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
.f95 .f03 .hip .ispc
CMake Error at src/CMakeLists.txt:120 (ADD_LIBRARY):
No SOURCES given to target: ftgl
Reproducer
On a system (alma linux 9) without a system-wide FTGL library (or with -Dbuiltin_ftgl=ON forced) configure ROOT master with -Dbuiltin_ftgl=ON
or
As a first step you can download and unpack https://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/ftgl-2.4.0.tar.gz tarball
ROOT version
master
Installation method
build from source
Operating system
alma linux 9
Additional context
The ROOT was built as part of the StatAnalysis package https://gitlab.cern.ch/atlas/StatAnalysis
Whole set of builtin were used:
-Dbuiltin_gsl:BOOL=ON -Dtmva-cpu:BOOL=OFF -Ddavix:BOOL=OFF
-Dbuiltin_freetype:BOOL=ON -Dbuiltin_lzma:BOOL=ON -Dbuiltin_ftgl:BOOL=ON
-Dbuiltin_lz4:BOOL=ON -Dbuiltin_glew:BOOL=ON -Dbuiltin_veccore:BOOL=ON
-Dbuiltin_nlohmannjson:BOOL=ON -Dbuiltin_tbb:BOOL=ON -Dbuiltin_zstd:BOOL=ON -Dbuiltin_xrootd:BOOL=ON
-Dbuiltin_vdt:BOOL=ON
-Droofit_multiprocess=OFF
-Dccache:BOOL=ON
-Dmathmore:BOOL=ON
-Dbuiltin_gif:BOOL=ON
-Dbuiltin_jpeg:BOOL=ON
-Dbuiltin_tiff:BOOL=ON
-Dbuiltin_gl2ps:BOOL=ON
-Dbuiltin_xxhash:BOOL=ON \
Check duplicate issues.
Description
When building ROOT from the master branch with the option -Dbuiltin_ftgl=ON (i.e., forcing the use of the bundled FTGL library), the CMake configuration step fails with an error.
The build system downloads the FTGL source tarball from the official LCG source:
https://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/ftgl-2.4.0.tar.gz
After unpacking, the internal CMake build of FTGL fails because the file src/FTLibrary.h is missing, despite being listed in src/CMakeLists.txt.
Error log:
BUILTIN_FTGL-configure-err.log
Actual output:
CMake Error at src/CMakeLists.txt:120 (ADD_LIBRARY):
Cannot find source file:
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
.f95 .f03 .hip .ispc
CMake Error at src/CMakeLists.txt:120 (ADD_LIBRARY):
No SOURCES given to target: ftgl
Reproducer
On a system (alma linux 9) without a system-wide FTGL library (or with -Dbuiltin_ftgl=ON forced) configure ROOT master with -Dbuiltin_ftgl=ON
or
As a first step you can download and unpack https://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/ftgl-2.4.0.tar.gz tarball
ROOT version
master
Installation method
build from source
Operating system
alma linux 9
Additional context
The ROOT was built as part of the StatAnalysis package https://gitlab.cern.ch/atlas/StatAnalysis
Whole set of builtin were used:
-Dbuiltin_gsl:BOOL=ON -Dtmva-cpu:BOOL=OFF -Ddavix:BOOL=OFF
-Dbuiltin_freetype:BOOL=ON -Dbuiltin_lzma:BOOL=ON -Dbuiltin_ftgl:BOOL=ON
-Dbuiltin_lz4:BOOL=ON -Dbuiltin_glew:BOOL=ON -Dbuiltin_veccore:BOOL=ON
-Dbuiltin_nlohmannjson:BOOL=ON -Dbuiltin_tbb:BOOL=ON -Dbuiltin_zstd:BOOL=ON -Dbuiltin_xrootd:BOOL=ON
-Dbuiltin_vdt:BOOL=ON
-Droofit_multiprocess=OFF
-Dccache:BOOL=ON
-Dmathmore:BOOL=ON
-Dbuiltin_gif:BOOL=ON
-Dbuiltin_jpeg:BOOL=ON
-Dbuiltin_tiff:BOOL=ON
-Dbuiltin_gl2ps:BOOL=ON
-Dbuiltin_xxhash:BOOL=ON \