dreamworksanimation / openmoonray

MoonRay is DreamWorks’ open-source, award-winning, state-of-the-art production MCRT renderer.
https://openmoonray.org/
Apache License 2.0
4.31k stars 251 forks source link

Issue compiling on Rocky 8.7 with Ansible #20

Open cyburdine opened 1 year ago

cyburdine commented 1 year ago

Hey guys, I ran into an issue trying to get this to compile on Rocky 8. I'm working through the CentOS7 install instructions and building an updated version for Rocky 8 and 9. I was wondering if you have run into this issue? Any idea what may be causing this?

This is the error that it drops when I try to work through Step 3: build remaining dependencies.

...found 43654 targets... [ 9%] No install step for 'Boost' [ 10%] Completed 'Boost' [ 11%] Built target Boost [ 11%] Performing update step for 'JsonCpp' [ 12%] No patch step for 'JsonCpp' [ 13%] Performing configure step for 'JsonCpp' CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- JsonCpp Version: 0.7.0 -- Found PythonInterp: /usr/bin/python (found suitable version "3.6.8", minimum required is "2.6") -- Configuring done -- Generating done -- Build files have been written to: /build/JsonCpp-prefix/src/JsonCpp-build [ 14%] Performing build step for 'JsonCpp' Consolidate compiler generated dependencies of target jsoncpp_lib [ 44%] Built target jsoncpp_lib Consolidate compiler generated dependencies of target jsontestrunner_exe Consolidate compiler generated dependencies of target jsoncpp_test [ 66%] Built target jsontestrunner_exe [100%] Built target jsoncpp_test File "/build/JsonCpp-prefix/src/JsonCpp/src/jsontestrunner/../../test/runjsontests.py", line 37 except IOError, e: ^ SyntaxError: invalid syntax gmake[5]: [src/jsontestrunner/CMakeFiles/jsoncpp_readerwriter_tests.dir/build.make:71: src/jsontestrunner/CMakeFiles/jsoncpp_readerwriter_tests] Error 1 gmake[4]: [CMakeFiles/Makefile2:223: src/jsontestrunner/CMakeFiles/jsoncpp_readerwriter_tests.dir/all] Error 2 gmake[3]: [Makefile:146: all] Error 2 gmake[2]: [CMakeFiles/JsonCpp.dir/build.make:89: JsonCpp-prefix/src/JsonCpp-stamp/JsonCpp-build] Error 2 gmake[1]: [CMakeFiles/Makefile2:169: CMakeFiles/JsonCpp.dir/all] Error 2 gmake: [Makefile:91: all] Error 2

scott-wilson commented 1 year ago

It looks like the run JSON tests depends on Python 2.7. I suspect that there might be some Python code that needs to be updated to Python 3.

rgwilson68 commented 1 year ago

JsonCpp cmake seems to have options JSONCPP_WITH_TESTS and JSONCPP_WITH_POST_BUILD_UNITTEST that default to ON. You could try turning them off (e.g. -DJSONCPP_WITH_TESTS=NO).

Also, 0.7.0 is a old version : a newer one might support Python 3. Maybe the latest 0.x version (0.10.7) would the best to start. Most likely the API hasn't changed in a way that will break the MoonRay code.

cyburdine commented 1 year ago

making progress, but still struggling to get through the dependency builds.

Anyone run into missing GLEW / GLUT packages when installing ColorIO?

[ 77%] Built target embree [ 78%] Performing update step for 'OpenColorIO' [ 79%] No patch step for 'OpenColorIO' [ 80%] Performing configure step for 'OpenColorIO' -- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) -- Use "GLEW_ROOT" to specify an install location -- Checking for module 'glut' -- Package 'glut', required by 'virtual:world', not found -- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) -- Use "GLUT_ROOT" to specify an install location CMake Warning at share/cmake/utils/CheckSupportGL.cmake:47 (message): GPU rendering disabled Call Stack (most recent call first): CMakeLists.txt:138 (include)

-- Setting namespace to 'OpenColorIO_v2_0' as none was specified. -- Could NOT find expat (missing: expat_LIBRARY expat_INCLUDE_DIR) (Required is at least version "2.2.8") -- Installing expat: /build/OpenColorIO-prefix/src/OpenColorIO-build/ext/dist/lib64/libexpat.a (version "2.2.8") -- Could NOT find yaml-cpp (missing: yaml-cpp_LIBRARY yaml-cpp_INCLUDE_DIR) (Required is at least version "0.6.3") -- Installing yaml-cpp: /build/OpenColorIO-prefix/src/OpenColorIO-build/ext/dist/lib/libyaml-cpp.a (version "0.6.3") -- Could NOT find Half (missing: Half_LIBRARY) (found suitable version "2.5.7", minimum required is "2.4.0") -- Could NOT find pystring (missing: pystring_INCLUDE_DIR pystring_LIBRARY) (Required is at least version "1.1.3") -- Installing pystring: /build/OpenColorIO-prefix/src/OpenColorIO-build/ext/dist/lib/libpystring.a (version "1.1.3") -- Could NOT find lcms2 (missing: lcms2_INCLUDE_DIR lcms2_LIBRARY) (Required is at least version "2.2") -- Installing lcms2: /build/OpenColorIO-prefix/src/OpenColorIO-build/ext/dist/lib/liblcms2.a (version "2.2") CMake Error at /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS Python_LIBRARIES Interpreter Development Development.Module Development.Embed) Call Stack (most recent call first): /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/FindPython.cmake:561 (find_package_handle_standard_args) share/cmake/modules/FindExtPackages.cmake:70 (find_package) CMakeLists.txt:241 (include)

-- Configuring incomplete, errors occurred! See also "/build/OpenColorIO-prefix/src/OpenColorIO-build/CMakeFiles/CMakeOutput.log". gmake[2]: [CMakeFiles/OpenColorIO.dir/build.make:96: OpenColorIO-prefix/src/OpenColorIO-stamp/OpenColorIO-configure] Error 1 gmake[1]: [CMakeFiles/Makefile2:481: CMakeFiles/OpenColorIO.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2

cyburdine commented 1 year ago

I'm continuing to make progress. I now have the build dependencies documented to run on Rocky 8.7. I'm now running into an issue when building OpenMoonRay.

When I run "cmake --preset container-release" I get the following error in CMakeError.log:

_Looking for a CUDA compiler failed with the following output: -- The CUDA compiler identification is unknown CMake Error at /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/CMakeDetermineCUDACompiler.cmake:633 (message): Failed to detect a default CUDA architecture.

Compiler output:

Call Stack (most recent call first): CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred! See also "/build/CMakeFiles/CheckCUDA/CMakeFiles/CMakeOutput.log". See also "/build/CMakeFiles/CheckCUDA/CMakeFiles/CMakeError.log".

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/gcc-toolset-9/root/usr/bin/gmake -f Makefile cmTC_efe7e/fast && /opt/rh/gcc-toolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_efe7e.dir/build.make CMakeFiles/cmTC_efe7e.dir/build gmake[1]: Entering directory '/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_efe7e.dir/src.c.o /opt/rh/gcc-toolset-9/root/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_efe7e.dir/src.c.o -c /build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_efe7e /installs/cmake-3.23.1-linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_efe7e.dir/link.txt --verbose=1 /opt/rh/gcc-toolset-9/root/usr/bin/cc CMakeFiles/cmTC_efe7e.dir/src.c.o -o cmTC_efe7e CMakeFiles/cmTC_efe7e.dir/src.c.o: In function main': src.c:(.text+0x2d): undefined reference topthread_create' src.c:(.text+0x39): undefined reference to pthread_detach' src.c:(.text+0x45): undefined reference topthread_cancel' src.c:(.text+0x56): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_efe7e.dir/build.make:99: cmTC_efe7e] Error 1 gmake[1]: Leaving directory '/build/CMakeFiles/CMakeTmp' gmake: [Makefile:127: cmTC_efe7e/fast] Error 2

Source file was:

include

static void test_func(void data) { return data; }

int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL);

return 0; }

Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/rh/gcc-toolset-9/root/usr/bin/gmake -f Makefile cmTC_5fe4b/fast && /opt/rh/gcc-toolset-9/root/usr/bin/gmake -f CMakeFiles/cmTC_5fe4b.dir/build.make CMakeFiles/cmTC_5fe4b.dir/build gmake[1]: Entering directory '/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_5fe4b.dir/CheckFunctionExists.c.o /opt/rh/gcc-toolset-9/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_5fe4b.dir/CheckFunctionExists.c.o -c /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/CheckFunctionExists.c Linking C executable cmTC_5fe4b /installs/cmake-3.23.1-linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5fe4b.dir/link.txt --verbose=1 /opt/rh/gcc-toolset-9/root/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_5fe4b.dir/CheckFunctionExists.c.o -o cmTC_5fe4b -lpthreads /bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: [CMakeFiles/cmTC_5fe4b.dir/build.make:99: cmTC_5fe4b] Error 1 gmake[1]: Leaving directory '/build/CMakeFiles/CMakeTmp' gmake: [Makefile:127: cmTC5fe4b/fast] Error 2

I'm trying to build this on a VM with no GPU... is there some magic I'm missing that can turn off any searches for GPU hardware?

thanks for any help you all can provide.

cheers, Justin

cyburdine commented 1 year ago

the error seen in the terminal is:

-- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") -- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.2.11", minimum required is "1.2.11")

-- Found Python: /usr/include/python3.6m (found version "3.6.8") found components: Development De velopment.Module Development.Embed -- Found Boost: /installs/lib/cmake/Boost-1.73.0/BoostConfig.cmake (found version "1.73.0") found components: python -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") -- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.2.11", minimum required is "1.2.11")

-- Looking for TBB components tbb; (tbbmalloc;tbbmalloc_proxy;tbbbind;tbbpreview) -- Found TBB version 2020.2 at /installs versionString is 2.4.0.0 PACKAGE_NAME is hdMoonray projectString is HdMoonray CMake Error at /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/FindPackageHandleStan dardArgs.cmake:230 (message): Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS Python_LIBRARIES Interpreter Development Development.Module Development.Embed) Call Stack (most recent call first): /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmak e:594 (_FPHSA_FAILURE_MESSAGE) /installs/cmake-3.23.1-linux-x86_64/share/cmake-3.23/Modules/FindPython.cmake:561 (find_package _handle_standard_args) moonray/hydra/hdMoonray/CMakeLists.txt:28 (find_package)

-- Configuring incomplete, errors occurred! See also "/build/CMakeFiles/CMakeOutput.log". See also "/build/CMakeFiles/CMakeError.log".

cyburdine commented 1 year ago

for those who want to follow along, here's the Ansible playbook I'm building out. It doesn't do everything, but it does a lot of the heavy lifting.

https://github.com/cyburdine/how-to/blob/main/openmoonray_installer.yml

corresponding install instructions: https://docs.google.com/document/d/1c3bPk1lTKSXE3V9S5yt0JL4flL8OGb7_Y8jLhjeKD8w/edit?usp=sharing

feedback is a gift, so any thoughts, comments, input, is welcome and appreciated!

ashleylee-dwa commented 1 year ago

Hi @cyburdine! I believe #34, which details how to build without GPU support, would help with this! You can specify a non-GPU build with the CMake option MOONRAY_USE_CUDA.

cyburdine commented 1 year ago

@ashleylee-dwa thanks so much for pointing this out! I've updated my instructions but am still struggling with Hydra complaining that it can't find Python. I had what feels like a similar issue with OpenColorIO where it couldn't find python. I was able to get it to build by by adding -DPython_EXECUTABLE=/usr/bin/python3.6 to the OpenColorIO entry in CMakeLists.txt.

I was curious if you are anyone knew how I would pass that same info to Hydra so that I can get past the "Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS Python_LIBRARIES Interpreter Development Development.Module Development.Embed)" error

cyburdine commented 1 year ago

making progress, I was able to get Hydra working by installing Python2 and Python2-devel

So I can now successfully run cmake --preset container-release -DMOONRAY_USE_CUDA=NO in step 3. I am now running cmake --build --preset container-release -- -j 8

and get the following error:

[ 5%] Linking CXX executable execComp /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/ExecComp.cc.o: in function arras4::impl::ExecComp::run()': ExecComp.cc:(.text+0x6c6): undefined reference toJson::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x72b): undefined reference to Json::StyledWriter::write(Json::Value const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x11b7): undefined reference toJson::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x15cd): undefined reference to Json::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x1637): undefined reference toJson::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x16a3): undefined reference to Json::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x1701): undefined reference toJson::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/ExecComp.cc.o:ExecComp.cc:(.text+0x1775): more undefined references to Json::Value::asString() const' follow /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/ExecComp.cc.o: in functionarras4::impl::ExecComp::run()': ExecComp.cc:(.text+0x1792): undefined reference to Json::StyledWriter::write(Json::Value const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x344e): undefined reference toJson::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ExecComp.cc:(.text+0x34ac): undefined reference to Json::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::typed_value<bool, char>::xparse(boost::any&, std::vector<std::string, std::allocator > const&) const': main.cc:(.text._ZNK5boost15program_options11typed_valueIbcE6xparseERNS_3anyERKSt6vectorISsSaISsEE[_ZNK5boost15program_options11typed_valueIbcE6xparseERNS_3anyERKSt6vectorISsSaISsEE]+0x28): undefined reference to boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool*, int)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::typed_value<std::string, char>::xparse(boost::any&, std::vector<std::string, std::allocator > const&) const': main.cc:(.text._ZNK5boost15program_options11typed_valueISscE6xparseERNS_3anyERKSt6vectorISsSaISsEE[_ZNK5boost15program_options11typed_valueISscE6xparseERNS_3anyERKSt6vectorISsSaISsEE]+0x28): undefined reference to boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, std::string*, int)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionstd::vector<std::string, std::allocator > boost::program_options::to_internal(std::vector<std::string, std::allocator > const&)': main.cc:(.text._ZN5boost15program_options11to_internalISsEESt6vectorISsSaISsEERKS2_IT_SaIS5_EE[_ZN5boost15program_options11to_internalISsEESt6vectorISsSaISsEERKS2_IT_SaIS5_EE]+0x76): undefined reference to boost::program_options::to_internal(std::string const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::basic_command_line_parser::basic_command_line_parser(int, char const const)': main.cc:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0xc6): undefined reference to boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::typed_value<float, char>::name() const': main.cc:(.text._ZNK5boost15program_options11typed_valueIfcE4nameEv[_ZNK5boost15program_options11typed_valueIfcE4nameEv]+0x24): undefined reference to boost::program_options::arg' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::typed_value<unsigned int, char>::name() const': main.cc:(.text._ZNK5boost15program_options11typed_valueIjcE4nameEv[_ZNK5boost15program_options11typed_valueIjcE4nameEv]+0x24): undefined reference to boost::program_options::arg' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::typed_value<bool, char>::name() const': main.cc:(.text._ZNK5boost15program_options11typed_valueIbcE4nameEv[_ZNK5boost15program_options11typed_valueIbcE4nameEv]+0x24): undefined reference to boost::program_options::arg' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::typed_value<unsigned long, char>::name() const': main.cc:(.text._ZNK5boost15program_options11typed_valueImcE4nameEv[_ZNK5boost15program_options11typed_valueImcE4nameEv]+0x24): undefined reference to boost::program_options::arg' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionboost::program_options::typed_value<std::string, char>::name() const': main.cc:(.text._ZNK5boost15program_options11typed_valueISscE4nameEv[_ZNK5boost15program_options11typed_valueISscE4nameEv]+0x24): undefined reference to boost::program_options::arg' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:main.cc:(.text._ZNK5boost15program_options11typed_valueItcE4nameEv[_ZNK5boost15program_options11typed_valueItcE4nameEv]+0x24): more undefined references toboost::program_options::arg' follow /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in function main': main.cc:(.text.startup+0x599): undefined reference toboost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0x73b): undefined reference to boost::program_options::parse_environment(boost::program_options::options_description const&, boost::function1<std::string, std::string> const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0x82d): undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0x89c): undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0x8ce): undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0x908): undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0xa93): undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:main.cc:(.text.startup+0xb33): more undefined references to boost::program_options::abstract_variables_map::operator[](std::string const&) const' follow /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionmain': main.cc:(.text.startup+0xdba): undefined reference to Json::Value::asString() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0x1097): undefined reference toboost::program_options::abstract_variables_map::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text.startup+0x1146): undefined reference to boost::program_options::abstract_variables_map::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in functionstd::basic_string<char, std::char_traits, std::allocator > const& boost::program_options::validators::get_single_string(std::vector<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > > const&, bool)':main.cc:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb]+0xb8): undefined reference to boost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb]+0xcc): undefined reference toboost::program_options::error_with_option_name::error_with_option_name(std::string const&, std::string const&, std::string const&, int)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb]+0x1a0): undefined reference to boost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: main.cc:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[_ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb]+0x1b4): undefined reference toboost::program_options::error_with_option_name::error_with_option_name(std::string const&, std::string const&, std::string const&, int)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in function void boost::program_options::validate<float, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, float*, long)': main.cc:(.text._ZN5boost15program_options8validateIfcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l[_ZN5boost15program_options8validateIfcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l]+0x4f8): undefined reference toboost::program_options::invalid_option_value::invalid_option_value(std::string const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in function void boost::program_options::validate<unsigned int, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, unsigned int*, long)': main.cc:(.text._ZN5boost15program_options8validateIjcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l[_ZN5boost15program_options8validateIjcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l]+0x50f): undefined reference toboost::program_options::invalid_option_value::invalid_option_value(std::string const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in function void boost::program_options::validate<unsigned long, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, unsigned long*, long)': main.cc:(.text._ZN5boost15program_options8validateImcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l[_ZN5boost15program_options8validateImcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l]+0x597): undefined reference toboost::program_options::invalid_option_value::invalid_option_value(std::string const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o: in function void boost::program_options::validate<unsigned short, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, unsigned short*, long)': main.cc:(.text._ZN5boost15program_options8validateItcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l[_ZN5boost15program_options8validateItcEEvRNS_3anyERKSt6vectorISbIT0_St11char_traitsIS5_ESaIS5_EESaIS9_EEPT_l]+0x522): undefined reference toboost::program_options::invalid_option_value::invalid_option_value(std::string const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost10wrapexceptINS_15program_options20invalid_option_valueEEE[_ZTVN5boost10wrapexceptINS_15program_options20invalid_option_valueEEE]+0x60): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost10wrapexceptINS_15program_options16validation_errorEEE[_ZTVN5boost10wrapexceptINS_15program_options16validation_errorEEE]+0x60): undefined reference toboost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x30): undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x30): undefined reference toboost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options11typed_valueImcEE[_ZTVN5boost15program_options11typed_valueImcEE]+0x38): undefined reference to boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options11typed_valueIbcEE[_ZTVN5boost15program_options11typed_valueIbcEE]+0x38): undefined reference to boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options11typed_valueIfcEE[_ZTVN5boost15program_options11typed_valueIfcEE]+0x38): undefined reference to boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options11typed_valueIjcEE[_ZTVN5boost15program_options11typed_valueIjcEE]+0x38): undefined reference to boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options11typed_valueISscEE[_ZTVN5boost15program_options11typed_valueISscEE]+0x38): undefined reference to boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: CMakeFiles/execComp.dir/main.cc.o:(.rodata._ZTVN5boost15program_options11typed_valueItcEE[_ZTVN5boost15program_options11typed_valueItcEE]+0x38): more undefined references toboost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const' follow /opt/rh/gcc-toolset-9/root/usr/bin/ld: ../../lib/computation_impl/libcomputation_impl.so: undefined reference to Json::Reader::getFormattedErrorMessages() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ../../lib/core_messages/libcore_messages.so: undefined reference toJson::FastWriter::write(Json::Value const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ../../../arras4_message_api/lib/message_api/libmessage_api.so: undefined reference to Json::Value::getMemberNames() const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ../../lib/computation_impl/libcomputation_impl.so: undefined reference toJson::Value::operator[](std::string const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ../../lib/computation_impl/libcomputation_impl.so: undefined reference to Json::Value::operator[](std::string const&) const' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ../../lib/computation_impl/libcomputation_impl.so: undefined reference toJson::Value::Value(std::string const&)' /opt/rh/gcc-toolset-9/root/usr/bin/ld: ../../lib/computation_impl/libcomputation_impl.so: undefined reference to `Json::Reader::parse(std::string const&, Json::Value&, bool)' collect2: error: ld returned 1 exit status gmake[2]: [arras/arras4_core/arras4_core_impl/cmd/execComp/CMakeFiles/execComp.dir/build.make:131: arras/arras4_core/arras4_core_impl/cmd/execComp/execComp] Error 1 gmake[1]: [CMakeFiles/Makefile2:9411: arras/arras4_core/arras4_core_impl/cmd/execComp/CMakeFiles/execComp.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2