This may be needed when cross-compiling to certain platforms.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Feel free to ignore me.. but would be glad if you happen to know the cause. ninja -C ~/llvm/Release TFuzzer-x86_64-Test appears to be broken to me due to some cmake change landed yesterday
ld.lld: error: undefined symbol: fuzzer::ParseOneDictionaryEntry(std::__Fuzzer::basic_string<char, std::__Fuzzer::char_traits<char>, std::__Fuzzer::allocator<char> > const&, std::__Fuzzer::vector<unsigned char, fuzzer::fuzzer_allocator<unsigned char> >*) >>> referenced by FuzzerUnittest.cpp >>> FuzzerTestObjects.FuzzerUnittest.cpp.x86_64.o:(FuzzerDictionary_ParseOneDictionaryEntry_Test::TestBody())
The issue is that projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtil.cpp.o has (incorrect) hidden symbols.
64: 0000000000000000 2175 FUNC GLOBAL HIDDEN 19 fuzzer::ParseOneDictionaryEntry(std::Fuzzer::basic_string<char, std::Fuzzer::char_traits<char>, std::Fuzzer::allocator<char> > const&, std::Fuzzer::vector<unsigned char, fuzzer::fuzzer_allocator<unsigned char> >*)
A quick (and improper) fix is to delete -fvisibility=hidden on compiler-rt/lib/fuzzer/CMakeLists.txt#L128.
Comment Actions
The same failure as MaskRay describes has kept sanitizer-linux bot red for several days now:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/17090
Comment Actions
D54058 is a fix for the broken bot build. I've decided to keep that change separate since it's independent from this change.