Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-14 errors while compiling fuzz-introspector #10

Open
tthtlc opened this issue May 21, 2022 · 0 comments
Open

clang-14 errors while compiling fuzz-introspector #10

tthtlc opened this issue May 21, 2022 · 0 comments

Comments

@tthtlc
Copy link

tthtlc commented May 21, 2022

While compiling inside the Docker, the "build_all.sh" script under fuzz-introspector got into the following errors:

[ 41%] Built target RTUbsan_cxx.x86_64
[ 41%] Linking CXX static library ../../../../lib/clang/14.0.4/lib/linux/libclang_rt.ubsan_standalone_cxx-x86_64.a
[ 41%] Built target clang_rt.ubsan_standalone_cxx-x86_64
[ 41%] Generating version list for clang_rt.ubsan_standalone-dynamic-x86_64
[ 41%] Building CXX object projects/compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_dynamic_version_script_dummy.x86_64.dir/dummy.cpp.o
[ 41%] Built target RTUbsan_dynamic_version_script_dummy.x86_64
[ 41%] Linking CXX shared library ../../../../lib/clang/14.0.4/lib/linux/libclang_rt.ubsan_standalone-x86_64.so
/usr/bin/ld: CMakeFiles/RTUbsan_cxx.x86_64.dir/ubsan_type_hash_itanium.cpp.o: in function __ubsan::checkDynamicType(void*, void*, unsigned long)': /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:233: undefined reference to typeinfo for std::type_info'
/usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:233: undefined reference to typeinfo for __cxxabiv1::__class_type_info' /usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:233: undefined reference to __dynamic_cast'
/usr/bin/ld: CMakeFiles/RTUbsan_cxx.x86_64.dir/ubsan_type_hash_itanium.cpp.o: in function isDerivedFromAtOffset(__cxxabiv1::__class_type_info const*, __cxxabiv1::__class_type_info const*, long)': /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:(.text+0x1b2): undefined reference to typeinfo for __cxxabiv1::__class_type_info'
/usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:(.text+0x1b9): undefined reference to typeinfo for __cxxabiv1::__si_class_type_info' /usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:125: undefined reference to __dynamic_cast'
/usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:129: undefined reference to typeinfo for __cxxabiv1::__class_type_info' /usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:129: undefined reference to typeinfo for __cxxabiv1::__vmi_class_type_info'
/usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:129: undefined reference to __dynamic_cast' /usr/bin/ld: CMakeFiles/RTUbsan_cxx.x86_64.dir/ubsan_type_hash_itanium.cpp.o: in function findBaseAtOffset(__cxxabiv1::__class_type_info const*, long)':
/fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:(.text+0x344): undefined reference to typeinfo for __cxxabiv1::__class_type_info' /usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:(.text+0x34b): undefined reference to typeinfo for __cxxabiv1::__si_class_type_info'
/usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to __dynamic_cast' /usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:166: undefined reference to typeinfo for __cxxabiv1::__class_type_info'
/usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:166: undefined reference to typeinfo for __cxxabiv1::__vmi_class_type_info' /usr/bin/ld: /fuzz-introspector/build/llvm-project/compiler-rt/lib/ubsan/ubsan_type_hash_itanium.cpp:166: undefined reference to __dynamic_cast'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [projects/compiler-rt/lib/ubsan/CMakeFiles/clang_rt.ubsan_standalone-dynamic-x86_64.dir/build.make:253: lib/clang/14.0.4/lib/linux/libclang_rt.ubsan_standalone-x86_64.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:21729: projects/compiler-rt/lib/ubsan/CMakeFiles/clang_rt.ubsan_standalone-dynamic-x86_64.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant