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
Compiling libc with SCUDO using gcc fails #60467
Labels
Comments
@llvm/issue-subscribers-libc |
I just tried the same thing except with Clang instead of GCC and I still get an error in linking [3542/5538] Linking CXX executable bin/libc-gwp-asan-uaf-should-crash
FAILED: bin/libc-gwp-asan-uaf-should-crash
: && /home/liam/llvm-15.0.6/bin/clang++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fuse-ld=lld -Wl,--color-diagnostics -pthreads projects/libc/test/integration/scudo/CMakeFiles/libc-gwp-asan-uaf-should-crash.dir/gwp_asan_should_crash.cpp.o -o bin/libc-gwp-asan-uaf-should-crash projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a && :
ld.lld: error: undefined symbol: __llvmlibc_errno
>>> referenced by wrappers_c.inc:0 (/home/liam/Documents/GitHub/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.inc:0)
>>> wrappers_c.cpp.o:(calloc) in archive projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a
>>> referenced by wrappers_c_checks.h:25 (/home/liam/Documents/GitHub/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c_checks.h:25)
>>> wrappers_c.cpp.o:(malloc) in archive projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a
>>> referenced by wrappers_c.inc:99 (/home/liam/Documents/GitHub/llvm-project/compiler-rt/lib/scudo/standalone/wrappers_c.inc:99)
>>> wrappers_c.cpp.o:(memalign) in archive projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a
>>> referenced 7 more times
ld.lld: error: undefined symbol: __llvm_libc_syscall
>>> referenced by linux.cpp:117 (/home/liam/Documents/GitHub/llvm-project/compiler-rt/lib/scudo/standalone/linux.cpp:117)
>>> linux.cpp.o:(scudo::HybridMutex::lockSlow()) in archive projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a
>>> referenced by linux.cpp:126 (/home/liam/Documents/GitHub/llvm-project/compiler-rt/lib/scudo/standalone/linux.cpp:126)
>>> linux.cpp.o:(scudo::HybridMutex::unlock()) in archive projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a
>>> referenced by linux.cpp:151 (/home/liam/Documents/GitHub/llvm-project/compiler-rt/lib/scudo/standalone/linux.cpp:151)
>>> linux.cpp.o:(scudo::getThreadID()) in archive projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a
>>> referenced 1 more times
ld.lld: error: undefined symbol: __sched_getcpucount
>>> referenced by linux.cpp:144 (/home/liam/Documents/GitHub/llvm-project/compiler-rt/lib/scudo/standalone/linux.cpp:144)
>>> linux.cpp.o:(scudo::getNumberOfCPUs()) in archive projects/libc/test/integration/scudo/liblibc_for_scudo_integration_test.a |
michaelrj-google
added a commit
that referenced
this issue
Mar 2, 2023
The integration tests were failing to build under GCC due to missing compile options for using LLVM's libc++ and compiler-rt. This should unblock #60467 Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D145128
This issue should be fixed by the above patch, if it isn't feel free to file a new bug. |
gnoliyil
pushed a commit
to gnoliyil/fuchsia
that referenced
this issue
Jan 27, 2024
…s when using gcc The integration tests were failing to build under GCC due to missing compile options for using LLVM's libc++ and compiler-rt. This should unblock llvm/llvm-project#60467 Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D145128 GitOrigin-RevId: 4ac92c1cc118580b71ae9f3e59f6201401654cbc Original-Revision: ff19762a2ae7f26418c2b1fc4c69c954dd86fd86 Roller-URL: https://ci.chromium.org/b/8787691901795362673 CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I2e00e77ecac57411248828345b79655717bfd3a9 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/813259
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cmake invocation:
The text was updated successfully, but these errors were encountered: