Open andresailer opened 18 hours ago
Is it really a ROOT bug? Or a CMake one? 🤔
OK, so apparently it's only builtin_pcre
which is causing problems (i.e. pcre-8.43.tar.bz2
)
FYI there is the same error with pcre 8.45
(which is the latest available). Investigating...
OK, I found a work-around. PR is coming soon. And note that the issue is not present on Windows
It probably depends on which builtins you enable? I also see this for builtin_XROOTD
gmake[4]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[4]: *** Waiting for unfinished jobs....
gmake[3]: *** [Makefile:146: all] Error 2
Oh crap! I can't build XRootD... OK, thanks! I'll do the same with XRootD. Anything else?
Note that would be interesting to see if it's possible to build XRootD in parallel outside ROOT
I haven't found anything else so far. Do you have a cmake command to enable all builtins?
And yes we build xrootd outside of ROOT for the LCG stacks with cmake 3.30 without problems. Heck, I can build pcre outside of ROOT without problems as well.
I haven't found anything else so far. Do you have a cmake command to enable all builtins?
I don't think so
And yes we build xrootd outside of ROOT for the LCG stacks with cmake 3.30 without problems. Heck, I can build pcre outside of ROOT without problems as well.
OK, so I'll have to spend more time on this... Thanks Andre!
ccmake to the rescue... TBB
gmake[5]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[5]: *** Waiting for unfinished jobs....
gmake[4]: *** [CMakeFiles/Makefile2:134: src/tbb/CMakeFiles/tbb.dir/all] Error 2
gmake[3]: *** [Makefile:156: all] Error 2
FFTW3
make[5]: *** read jobs pipe: Bad file descriptor. Stop.
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:708: all-recursive] Error 1
make[3]: *** [Makefile:552: all] Error 2
freetype (in the configure step??? :confused: )
make[3]: *** read jobs pipe: Bad file descriptor. Stop.
make[3]: *** Waiting for unfinished jobs....
cfitsio
gmake[5]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[5]: *** Waiting for unfinished jobs....
gmake[4]: *** [CMakeFiles/Makefile2:83: CMakeFiles/cfitsio.dir/all] Error 2
gmake[4]: Target 'all' not remade because of errors.
gmake[3]: *** [Makefile:136: all] Error 2
gmake[3]: Target 'default_target' not remade because of errors.
I couldn't enable builtin_zlib, gave some other cmake error
CMake Error at interpreter/llvm-project/llvm/lib/Support/CMakeLists.txt:303 (get_property):
The LOCATION property may not be read from target "ZLIB". Use the target
name directly with add_custom_command, or use the generator expression
$<TARGET_FILE>, as appropriate.
CMake Error at interpreter/llvm-project/llvm/lib/Support/CMakeLists.txt:306 (get_property):
The LOCATION property may not be read from target "ZLIB". Use the target
name directly with add_custom_command, or use the generator expression
$<TARGET_FILE>, as appropriate.
CMake Error at interpreter/llvm-project/llvm/lib/Support/CMakeLists.txt:308 (get_library_name):
get_library_name Function invoked with incorrect arguments for function
named: get_library_name
OK, thanks André! It looks like CMake is badly broken...
Looking there: https://www.kitware.com/cmake-3-28-0-rc5-is-ready-for-testing/
It seems adding BUILD_JOB_SERVER_AWARE true
in ExternalProject_Add
fixes the issue (at least for PCRE). Trying it right now (but xrootd fails for some reason...)
Check duplicate issues.
Description
With newer versions of cmake like 3.30.5 at least some of ExternalProject_Add'ed builtins fail to compile with an error like
(here builtin PCRE failed)
I don't know with which version of cmake this starts failing, but we (SPI/LCG) moved from 3.26.2 to 3.30. Unless one limits oneself to a small number of
--jobs
?Reproducer
On lxplus or equivalent machines with CVMFS for example
ROOT version
any? (definitely HEAD)
Installation method
build from source
Operating system
Linux
Additional context
No response