OpenRV icon indicating copy to clipboard operation
OpenRV copied to clipboard

[Bug]: compilation using Docker (Rocky9 CY2024) fails due to gc.h not found

Open tiltX opened this issue 4 months ago • 1 comments

What happened?

I've tried to compile Open RV using the docker file Dockerfile.Linux-Rocky9-CY2024, current git main branch at f4c4b3a36abacfaf83a9a2586c503bb75b296af0. Compilation fails due to gc/gc.h not being found.

After building the container, I did the following inside of it:

git clone --recursive https://github.com/AcademySoftwareFoundation/OpenRV.git
cd OpenRV/
source rvcmds.sh
rvbootstrap

List all the operating systems versions where this is happening

Rocky 9

On what computer hardware is this happening?

mini PC with quad core AMD Ryzen 7 3750H, 16GB RAM (for compilation, not for running RV)

Relevant console log output

[686/2166] /usr/bin/c++ -DALSASafeAudioModule_EXPORTS -DRV_FFMPEG_6 -DRV_VFX_CY2024 -I/home/rv/OpenRV/src/lib/audio/ALSASafeAudioModule -I/home/rv/OpenRV/src/lib/ip/IPCore -I/home/rv/OpenRV/src/lib/files/LUT -I/home/rv/OpenRV/src/lib/base/TwkMath -I/home/rv/OpenRV/src/lib/base/TwkExc -I/home/rv/OpenRV/src/lib/app/TwkApp -I/home/rv/OpenRV/src/lib/audio/TwkAudio -I/home/rv/OpenRV/src/lib/base/stl_ext -I/home/rv/OpenRV/src/pub/nedmalloc -I/home/rv/OpenRV/src/lib/base/TwkUtil -I/home/rv/OpenRV/_build/RV_DEPS_BOOST/install/include -I/home/rv/OpenRV/_build/RV_DEPS_SPDLOG/install/include -I/home/rv/OpenRV/src/lib/geometry/TwkContainer -I/home/rv/OpenRV/src/lib/files/Gto -I/home/rv/OpenRV/src/lib/image/TwkFB -I/home/rv/OpenRV/_build/RV_DEPS_OPENEXR/install/include/OpenEXR -I/home/rv/OpenRV/_build/RV_DEPS_ZLIB/install/include -I/home/rv/OpenRV/src/lib/image/TwkMovie -I/home/rv/OpenRV/src/lib/geometry/TwkPaint -I/home/rv/OpenRV/src/lib/graphics/TwkGLF -I/home/rv/OpenRV/_build/RV_DEPS_GLEW/install/include -I/home/rv/OpenRV/src/lib/ui/TwkGLText -I/home/rv/OpenRV/src/pub/FTGL -I/usr/include/freetype2 -I/home/rv/Qt/6.5.3/gcc_64/include/QtCore -I/home/rv/Qt/6.5.3/gcc_64/include -I/home/rv/Qt/6.5.3/gcc_64/mkspecs/linux-g++ -I/home/rv/Qt/6.5.3/gcc_64/include/QtGui -I/home/rv/Qt/6.5.3/gcc_64/include/QtWidgets -I/home/rv/Qt/6.5.3/gcc_64/include/QtOpenGL -I/home/rv/OpenRV/src/lib/ip/IPBaseNodes -I/home/rv/OpenRV/src/lib/app/RvApp -I/home/rv/OpenRV/src/lib/mu/Mu -I/home/rv/OpenRV/_build/RV_DEPS_GC/install/include -I/home/rv/OpenRV/src/lib/mu/MuLang -I/home/rv/OpenRV/src/lib/image/TwkFBAux -isystem /home/rv/OpenRV/_build/RV_DEPS_IMATH/install/include/Imath -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=default -DARCH_IA32_64 -DPLATFORM_LINUX -DTWK_LITTLE_ENDIAN -D__LITTLE_ENDIAN__ -DTWK_NO_SGI_BYTE_ORDER -DGL_GLEXT_PROTOTYPES -DPLATFORM_OPENGL=1 -DMAJOR_VERSION=3 -DMINOR_VERSION=0 -DREVISION_NUMBER=0 -fPIC -fno-schedule-insns -fno-schedule-insns2 -msse -msse2 -mmmx -mfpmath=sse -DNDEBUG -O3 -MD -MT src/lib/audio/ALSASafeAudioModule/CMakeFiles/ALSASafeAudioModule.dir/ALSASafeAudioRenderer.cpp.o -MF src/lib/audio/ALSASafeAudioModule/CMakeFiles/ALSASafeAudioModule.dir/ALSASafeAudioRenderer.cpp.o.d -o src/lib/audio/ALSASafeAudioModule/CMakeFiles/ALSASafeAudioModule.dir/ALSASafeAudioRenderer.cpp.o -c /home/rv/OpenRV/src/lib/audio/ALSASafeAudioModule/ALSASafeAudioRenderer.cpp
FAILED: src/lib/audio/ALSASafeAudioModule/CMakeFiles/ALSASafeAudioModule.dir/ALSASafeAudioRenderer.cpp.o 
/usr/bin/c++ -DALSASafeAudioModule_EXPORTS -DRV_FFMPEG_6 -DRV_VFX_CY2024 -I/home/rv/OpenRV/src/lib/audio/ALSASafeAudioModule -I/home/rv/OpenRV/src/lib/ip/IPCore -I/home/rv/OpenRV/src/lib/files/LUT -I/home/rv/OpenRV/src/lib/base/TwkMath -I/home/rv/OpenRV/src/lib/base/TwkExc -I/home/rv/OpenRV/src/lib/app/TwkApp -I/home/rv/OpenRV/src/lib/audio/TwkAudio -I/home/rv/OpenRV/src/lib/base/stl_ext -I/home/rv/OpenRV/src/pub/nedmalloc -I/home/rv/OpenRV/src/lib/base/TwkUtil -I/home/rv/OpenRV/_build/RV_DEPS_BOOST/install/include -I/home/rv/OpenRV/_build/RV_DEPS_SPDLOG/install/include -I/home/rv/OpenRV/src/lib/geometry/TwkContainer -I/home/rv/OpenRV/src/lib/files/Gto -I/home/rv/OpenRV/src/lib/image/TwkFB -I/home/rv/OpenRV/_build/RV_DEPS_OPENEXR/install/include/OpenEXR -I/home/rv/OpenRV/_build/RV_DEPS_ZLIB/install/include -I/home/rv/OpenRV/src/lib/image/TwkMovie -I/home/rv/OpenRV/src/lib/geometry/TwkPaint -I/home/rv/OpenRV/src/lib/graphics/TwkGLF -I/home/rv/OpenRV/_build/RV_DEPS_GLEW/install/include -I/home/rv/OpenRV/src/lib/ui/TwkGLText -I/home/rv/OpenRV/src/pub/FTGL -I/usr/include/freetype2 -I/home/rv/Qt/6.5.3/gcc_64/include/QtCore -I/home/rv/Qt/6.5.3/gcc_64/include -I/home/rv/Qt/6.5.3/gcc_64/mkspecs/linux-g++ -I/home/rv/Qt/6.5.3/gcc_64/include/QtGui -I/home/rv/Qt/6.5.3/gcc_64/include/QtWidgets -I/home/rv/Qt/6.5.3/gcc_64/include/QtOpenGL -I/home/rv/OpenRV/src/lib/ip/IPBaseNodes -I/home/rv/OpenRV/src/lib/app/RvApp -I/home/rv/OpenRV/src/lib/mu/Mu -I/home/rv/OpenRV/_build/RV_DEPS_GC/install/include -I/home/rv/OpenRV/src/lib/mu/MuLang -I/home/rv/OpenRV/src/lib/image/TwkFBAux -isystem /home/rv/OpenRV/_build/RV_DEPS_IMATH/install/include/Imath -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=default -DARCH_IA32_64 -DPLATFORM_LINUX -DTWK_LITTLE_ENDIAN -D__LITTLE_ENDIAN__ -DTWK_NO_SGI_BYTE_ORDER -DGL_GLEXT_PROTOTYPES -DPLATFORM_OPENGL=1 -DMAJOR_VERSION=3 -DMINOR_VERSION=0 -DREVISION_NUMBER=0 -fPIC -fno-schedule-insns -fno-schedule-insns2 -msse -msse2 -mmmx -mfpmath=sse -DNDEBUG -O3 -MD -MT src/lib/audio/ALSASafeAudioModule/CMakeFiles/ALSASafeAudioModule.dir/ALSASafeAudioRenderer.cpp.o -MF src/lib/audio/ALSASafeAudioModule/CMakeFiles/ALSASafeAudioModule.dir/ALSASafeAudioRenderer.cpp.o.d -o src/lib/audio/ALSASafeAudioModule/CMakeFiles/ALSASafeAudioModule.dir/ALSASafeAudioRenderer.cpp.o -c /home/rv/OpenRV/src/lib/audio/ALSASafeAudioModule/ALSASafeAudioRenderer.cpp
In file included from /home/rv/OpenRV/src/lib/mu/Mu/Mu/Object.h:10,
                 from /home/rv/OpenRV/src/lib/app/RvApp/RvApp/RvSession.h:14,
                 from /home/rv/OpenRV/src/lib/audio/ALSASafeAudioModule/ALSASafeAudioRenderer.cpp:9:
/home/rv/OpenRV/src/lib/mu/Mu/Mu/config.h:129:10: fatal error: gc/gc.h: No such file or directory
  129 | #include <gc/gc.h>
      |          ^~~~~~~~~
compilation terminated.
[692/2166] /usr/bin/c++ -DALSAAudioModule_EXPORTS -DRV_FFMPEG_6 -DRV_VFX_CY2024 -I/home/rv/OpenRV/src/lib/audio/ALSAAudioModule -I/home/rv/OpenRV/src/lib/ip/IPCore -I/home/rv/OpenRV/src/lib/files/LUT -I/home/rv/OpenRV/src/lib/base/TwkMath -I/home/rv/OpenRV/src/lib/base/TwkExc -I/home/rv/OpenRV/src/lib/app/TwkApp -I/home/rv/OpenRV/src/lib/audio/TwkAudio -I/home/rv/OpenRV/src/lib/base/stl_ext -I/home/rv/OpenRV/src/pub/nedmalloc -I/home/rv/OpenRV/src/lib/base/TwkUtil -I/home/rv/OpenRV/_build/RV_DEPS_BOOST/install/include -I/home/rv/OpenRV/_build/RV_DEPS_SPDLOG/install/include -I/home/rv/OpenRV/src/lib/geometry/TwkContainer -I/home/rv/OpenRV/src/lib/files/Gto -I/home/rv/OpenRV/src/lib/image/TwkFB -I/home/rv/OpenRV/_build/RV_DEPS_OPENEXR/install/include/OpenEXR -I/home/rv/OpenRV/_build/RV_DEPS_ZLIB/install/include -I/home/rv/OpenRV/src/lib/image/TwkMovie -I/home/rv/OpenRV/src/lib/geometry/TwkPaint -I/home/rv/OpenRV/src/lib/graphics/TwkGLF -I/home/rv/OpenRV/_build/RV_DEPS_GLEW/install/include -I/home/rv/OpenRV/src/lib/ui/TwkGLText -I/home/rv/OpenRV/src/pub/FTGL -I/usr/include/freetype2 -I/home/rv/Qt/6.5.3/gcc_64/include/QtCore -I/home/rv/Qt/6.5.3/gcc_64/include -I/home/rv/Qt/6.5.3/gcc_64/mkspecs/linux-g++ -I/home/rv/Qt/6.5.3/gcc_64/include/QtGui -I/home/rv/Qt/6.5.3/gcc_64/include/QtWidgets -I/home/rv/Qt/6.5.3/gcc_64/include/QtOpenGL -isystem /home/rv/OpenRV/_build/RV_DEPS_IMATH/install/include/Imath -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=default -DARCH_IA32_64 -DPLATFORM_LINUX -DTWK_LITTLE_ENDIAN -D__LITTLE_ENDIAN__ -DTWK_NO_SGI_BYTE_ORDER -DGL_GLEXT_PROTOTYPES -DPLATFORM_OPENGL=1 -DMAJOR_VERSION=3 -DMINOR_VERSION=0 -DREVISION_NUMBER=0 -fPIC -fno-schedule-insns -fno-schedule-insns2 -msse -msse2 -mmmx -mfpmath=sse -DNDEBUG -O3 -MD -MT src/lib/audio/ALSAAudioModule/CMakeFiles/ALSAAudioModule.dir/ALSAAudioRenderer.cpp.o -MF src/lib/audio/ALSAAudioModule/CMakeFiles/ALSAAudioModule.dir/ALSAAudioRenderer.cpp.o.d -o src/lib/audio/ALSAAudioModule/CMakeFiles/ALSAAudioModule.dir/ALSAAudioRenderer.cpp.o -c /home/rv/OpenRV/src/lib/audio/ALSAAudioModule/ALSAAudioRenderer.cpp
ninja: build stopped: subcommand failed.

Environment variables

No response

Extra information

The file gc.h can be found inside the container in these places:

./src/pub/gc/gc/gc.h ./_build/RV_DEPS_GC/src/include/extra/gc.h ./_build/RV_DEPS_GC/src/include/gc.h

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

tiltX avatar Jul 31 '25 11:07 tiltX

addendum: I've tried running rvbootstrap or rvbuild multiple times but the error didn't go away. But it worked when I did rvbuildt dependencies followed by rvbuildt main_executable.

tiltX avatar Aug 05 '25 14:08 tiltX