Closed daohu527 closed 1 month ago
Build fastrtps will report error
/usr/bin/ld: /opt/conda/lib/libgtest.so.1.11.0: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
collect2: error: ld returned 1 exit status
make[2]: *** [test/unittest/rtps/common/CMakeFiles/SequenceNumberTests.dir/build.make:85: test/unittest/rtps/common/SequenceNumberTests] Error 1
make[1]: *** [CMakeFiles/Makefile2:1414: test/unittest/rtps/common/CMakeFiles/SequenceNumberTests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /workspaces/core/scripts/deps/Fast-DDS/include/fastrtps/rtps/builtin/data/../../../attributes/../qos/../rtps/common/all_common.h:28,
Upgrading or downgrading gcc version (7, 11) is no problem, gcc 9 has problems
fix
includes
not workhttps://github.com/daohu527/core/blob/6d02840b4ddf40c071c1a405840ad7cafa673b18/bazel/third_party/fastcdr.BUILD#L3-L12
for now we need run instead