Issue |
95351
|
Summary |
[libc] full build integration tests fails with `libm` during linking
|
Labels |
libc
|
Assignees |
|
Reporter |
SchrodingerZhu
|
```
eate_test.libc.a && :
ld.lld: error: unable to find library -lm
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[8/18] Linking CXX executable projects/libc/test/integration/src/pthread/libc.test.integration.src.pthread.pthread_join_test.__build__
FAILED: projects/libc/test/integration/src/pthread/libc.test.integration.src.pthread.pthread_join_test.__build__
: && /usr/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 -O2 -g -DNDEBUG -fuse-ld=lld -Wl,--color-diagnostics -nolibc -nostartfiles -nostdlib++ -static projects/libc/startup/linux/crt1.o projects/libc/test/IntegrationTest/CMakeFiles/libc.test.IntegrationTest.test.dir/test.cpp.o projects/libc/test/integration/src/pthread/CMakeFiles/libc.test.integration.src.pthread.pthread_join_test.__build__.dir/pthread_join_test.cpp.o -o projects/libc/test/integration/src/pthread/libc.test.integration.src.pthread.pthread_join_test.__build__ projects/libc/test/integration/src/pthread/liblibc.test.integration.src.pthread.pthread_join_test.libc.a && :
ld.lld: error: unable to find library -lm
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[9/18] Linking CXX executable projects/libc/test/integration/src/pthread/libc.test.integration.src.pthread.pthread_test.__build__
FAILED: projects/libc/test/integration/src/pthread/libc.test.integration.src.pthread.pthread_test.__build__
: && /usr/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 -O2 -g -DNDEBUG -fuse-ld=lld -Wl,--color-diagnostics -nolibc -nostartfiles -nostdlib++ -static projects/libc/startup/linux/crt1.o projects/libc/test/IntegrationTest/CMakeFiles/libc.test.IntegrationTest.test.dir/test.cpp.o projects/libc/test/integration/src/pthread/CMakeFiles/libc.test.integration.src.pthread.pthread_test.__build__.dir/pthread_test.cpp.o -o projects/libc/test/integration/src/pthread/libc.test.integration.src.pthread.pthread_test.__build__ projects/libc/test/integration/src/pthread/liblibc.test.integration.src.pthread.pthread_test.libc.a && :
ld.lld: error: unable to find library -lm
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs