Home › Forum › SOFA › Building SOFA › [SOLVED] gtest.cc
Tagged: 64_bits, GCC, Linux_other, SOFA_other
- This topic has 7 replies, 2 voices, and was last updated 4 years, 8 months ago by Hugo.
-
AuthorPosts
-
30 March 2020 at 19:06 #15585ewpostekBlocked
Dear Colleagues,
I do a built of Sofa with the configuration:
(current version form github, system: Linux CentOS 7 )cmake \ -DBoost_INCLUDE_DIR:PATH=/net/software/local/boost/1.58.0-gcc6.4.0/include \ -DPYTHON_EXECUTABLE:FILEPATH=/net/software/local/python/3.6.5/bin/python3 \ -DCMAKE_CXX_COMPILER:FILEPATH=/net/software/local/software/GCC/6.4.0/bin/c++ \ -DCMAKE_CXX_COMPILER_AR:FILEPATH=/net/software/local/software/GCC/6.4.0/bin/gcc-ar \ -DCMAKE_CXX_COMPILER_RANLIB:FILEPATH=/net/software/local/software/GCC/6.4.0/bin/gcc-ranlib \ -DCMAKE_C_COMPILER:FILEPATH=/net/software/local/software/GCC/6.4.0/bin/gcc \ -DCMAKE_C_COMPILER_AR:FILEPATH=/net/software/local/software/GCC/6.4.0/bin/gcc-ar \ -DCMAKE_C_COMPILER_RANLIB:FILEPATH=/net/software/local/software/GCC/6.4.0/bin/gcc-ranlib \ -DGLEW_INCLUDE_DIR:PATH=/net/software/local/glew/2.1.0/include \ -DGLEW_LIBRARY:FILEPATH=/net/software/local/glew/2.1.0/lib64/libGLEW.so \ /net/people/plgewpostek/sofa0/src
I obtain the following error at the very beginning:
[ 0%] Building CXX object extlibs/gtest/CMakeFiles/gtest.dir/src/gtest.cc.o In file included from /net/people/plgewpostek/sofa0/src/extlibs/gtest/include/gtest/gtest.h:59:0, from /net/people/plgewpostek/sofa0/src/extlibs/gtest/src/gtest.cc:33: /net/people/plgewpostek/sofa0/src/extlibs/gtest/include/gtest/internal/gtest-internal.h: In static member function ‘static RawType testing::internal::FloatingPoint<RawType>::Max() [with RawType = float]’: /net/people/plgewpostek/sofa0/src/extlibs/gtest/include/gtest/internal/gtest-internal.h:402:51: error: ‘FLT_MAX’ was not declared in this scope inline float FloatingPoint<float>::Max() { return FLT_MAX; } ^~~~~~~ /net/people/plgewpostek/sofa0/src/extlibs/gtest/include/gtest/internal/gtest-internal.h: In static member function ‘static RawType testing::internal::FloatingPoint<RawType>::Max() [with RawType = double]’: /net/people/plgewpostek/sofa0/src/extlibs/gtest/include/gtest/internal/gtest-internal.h:404:53: error: ‘DBL_MAX’ was not declared in this scope inline double FloatingPoint<double>::Max() { return DBL_MAX; }
Could you give a hint ?
regards,
Elek31 March 2020 at 13:38 #15601HugoKeymasterHi Elek !
We have a CentOS 7 on the CI running successfully. Strange.
Which compiler do you have?
clang5 or gcc7 minimum are required.Any other config detail would help.
BestHugo
1 April 2020 at 10:56 #15618ewpostekBlockedHi Hugo,
I applied gcc 8.3.0.
Even with older boost (to upgrade of course)
it works,
Cheerscmake \ -DBoost_INCLUDE_DIR:PATH=/net/software/local/boost/1.58.0-gcc6.4.0/include \ -DPYTHON_EXECUTABLE:FILEPATH=/net/software/local/python/3.6.5/bin/python3 \ -DCMAKE_CXX_COMPILER:FILEPATH=/net/software/local/gcc/8.3.0/bin/c++ \ -DCMAKE_CXX_COMPILER_AR:FILEPATH=/net/software/local/gcc/8.3.0/bin/gcc-ar \ -DCMAKE_CXX_COMPILER_RANLIB:FILEPATH=/net/software/local/gcc/8.3.0/bin/gcc-ranlib \ -DCMAKE_C_COMPILER:FILEPATH=/net/software/local/gcc/8.3.0/bin/gcc \ -DCMAKE_C_COMPILER_AR:FILEPATH=/net/software/local/gcc/8.3.0/bin/gcc-ar \ -DCMAKE_C_COMPILER_RANLIB:FILEPATH=/net/software/local/gcc/8.3.0/bin/gcc-ranlib \ -DGLEW_INCLUDE_DIR:PATH=/net/software/local/glew/2.1.0/include \ -DGLEW_LIBRARY:FILEPATH=/net/software/local/glew/2.1.0/lib64/libGLEW.so \ /net/people/plgewpostek/sofa0/src
1 April 2020 at 18:10 #156232 April 2020 at 09:44 #15625ewpostekBlockedHi Hugo,
Yes, I have just upgraded gcc.
Best, Elek2 April 2020 at 09:47 #15626HugoKeymasterGreat to hear it solved your issue. I therefore close the topic!
Best wishes,Hugo
2 April 2020 at 09:54 #15628ewpostekBlockedExcuse me, Hugo, if it is useful
I can send the details of the
previous compilation,
Best, Elek2 April 2020 at 10:04 #15629 -
AuthorPosts
- You must be logged in to reply to this topic.