[libcxx-commits] [PATCH] D112921: [clang] Enable sized deallocation by default in C++14 onwards
Wang Pengcheng via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 29 05:39:55 PDT 2023
wangpc added a comment.
In D112921#4624547 <https://reviews.llvm.org/D112921#4624547>, @jhuber6 wrote:
> This caused some linking errors with the GPU libc test suite, see https://lab.llvm.org/staging/#/builders/247/builds/5659.
>
> clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
> [331/473] Linking CXX executable libc/test/src/__support/libc.test.src.__support.uint_test.__hermetic__.__build__
> FAILED: libc/test/src/__support/libc.test.src.__support.uint_test.__hermetic__.__build__
> : && /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang++ --target=x86_64-unknown-linux-gnu -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 -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 -Wl,--color-diagnostics -nostdlib -static libc/startup/gpu/amdgpu/CMakeFiles/libc.startup.gpu.amdgpu.crt1.dir/start.cpp.o libc/test/src/__support/CMakeFiles/libc.test.src.__support.uint_test.__hermetic__.__build__.dir/uint_test.cpp.o -o libc/test/src/__support/libc.test.src.__support.uint_test.__hermetic__.__build__ libc/test/UnitTest/libLibcTest.hermetic.a libc/test/UnitTest/libLibcHermeticTestSupport.hermetic.a libc/test/src/__support/liblibc.test.src.__support.uint_test.__hermetic__.libc.a -mcpu=gfx906 --target=amdgcn-amd-amdhsa -flto -Wl,-mllvm,-amdgpu-lower-global-ctor-dtor=0 && :
> ld.lld: error: undefined symbol: operator delete(void*, unsigned long)
> >>> referenced by lto.tmp:(LlvmLibcUIntClassTest_ConstructorFromUInt128Tests::~LlvmLibcUIntClassTest_ConstructorFromUInt128Tests())
> >>> referenced by lto.tmp:(LlvmLibcUIntClassTest_ConstructorFromUInt128Tests::~LlvmLibcUIntClassTest_ConstructorFromUInt128Tests())
> >>> referenced by lto.tmp:(LlvmLibcUIntClassTest_BasicArithmeticInt128Tests::~LlvmLibcUIntClassTest_BasicArithmeticInt128Tests())
> >>> referenced 41 more times
> >>> did you mean: operator delete(void*)
> >>> defined in: lto.tmp
> clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)
It seems that the linker can't find sized deallocation (no support in the environment or AMDGPU libraries?).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112921/new/
https://reviews.llvm.org/D112921
More information about the libcxx-commits
mailing list