ruby failed to build from source in Fedora rawhide
For details on the mass rebuild see:
Please fix ruby at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
ruby will be orphaned. Before branching of Fedora 30,
ruby will be retired, if it still fails to build.
For more details on the FTBFS policy, please visit:
Created attachment 1467467 [details]
file build.log too big, will only attach last 32768 bytes
Created attachment 1467468 [details]
file root.log too big, will only attach last 32768 bytes
Created attachment 1467469 [details]
This is the root cause:
$ cat CMakeLists.txt
install (FILES test.txt DESTINATION bin)
$ cmake . -DCMAKE_INSTALL_PREFIX=/tmp/test_rubygems_15764/prefix
-- The C compiler identification is GNU 8.1.1
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error in CMakeLists.txt:
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/tmp/test_rubygems_15764/ext/CMakeFiles/CMakeOutput.log".
See also "/tmp/test_rubygems_15764/ext/CMakeFiles/CMakeError.log".
The question is if we should have gcc-c++ available or not. I still think we should not need it and it would be better to fix/disable this particular test, but OTOH: