You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "Smityz (via GitHub)" <gi...@apache.org> on 2023/12/18 07:28:04 UTC

[I] Can't build unittest with gcc8.5 and clang 12 [kvrocks]

Smityz opened a new issue, #1939:
URL: https://github.com/apache/kvrocks/issues/1939

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   centos8/gcc8.5/clang12
   kvrocks: unstable/2ecf764d
   
   ### Minimal reproduce step
   
   ./x.py build -j 20 --unittest
   ```
   Consolidate compiler generated dependencies of target unittest
   [ 94%] Linking CXX executable unittest
   CMakeFiles/unittest.dir/tests/cppunit/compact_test.cc.o: In function `Compact_Filter_Test::TestBody()':
   /usr/include/c++/8/bits/fs_path.h:185: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
   CMakeFiles/unittest.dir/tests/cppunit/compact_test.cc.o: In function `Compact_Filter_Test::TestBody()':
   /home/yanzhao.tang/Code/kvrocks/tests/cppunit/compact_test.cc:128: undefined reference to `std::filesystem::remove_all(std::filesystem::__cxx11::path const&, std::error_code&)'
   CMakeFiles/unittest.dir/tests/cppunit/disk_test.cc.o: In function `TestBase::~TestBase()':
   /usr/include/c++/8/bits/fs_path.h:185: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
   CMakeFiles/unittest.dir/tests/cppunit/disk_test.cc.o: In function `TestBase::~TestBase()':
   ```
   ./x.py build -j 20 --unittest --compiler clang
   
   ### What did you expect to see?
   
   code compiled
   
   ### What did you see instead?
   
   code not compiled
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org