[llvm] [SandboxIR] Boilerplate code (PR #95814)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 08:55:34 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-nvptx-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/964

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
0.910 [2/9/638] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
0.929 [2/8/639] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
0.965 [2/7/640] Linking CXX executable unittests/Frontend/LLVMFrontendTests
0.996 [2/6/641] Linking CXX executable unittests/CodeGen/CodeGenTests
1.019 [2/5/642] Linking CXX executable unittests/Analysis/AnalysisTests
1.100 [2/4/643] Linking CXX executable unittests/IR/IRTests
1.259 [2/3/644] Linking CXX executable unittests/ADT/ADTTests
1.292 [2/2/645] Linking CXX executable unittests/Support/SupportTests
3.980 [2/1/646] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o
4.049 [1/1/647] Linking CXX executable unittests/SandboxIR/SandboxIRTests
FAILED: unittests/SandboxIR/SandboxIRTests 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fuse-ld=gold     -Wl,--gc-sections unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o -o unittests/SandboxIR/SandboxIRTests  -Wl,-rpath,/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib  lib/libLLVMAsmParser.so.19.0git  lib/libLLVMSandboxIR.so.19.0git  lib/libllvm_gtest_main.so.19.0git  lib/libllvm_gtest.so.19.0git  lib/libLLVMSupport.so.19.0git  -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib && :
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function testing::internal::TestFactoryImpl<SandboxIRTest_UserInstantiation_Test>::CreateTest(): error: undefined reference to 'llvm::LLVMContext::LLVMContext()'
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function SandboxIRTest_UserInstantiation_Test::TestBody() [clone .localalias]: error: undefined reference to 'llvm::Module::~Module()'
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function SandboxIRTest_UserInstantiation_Test::TestBody() [clone .localalias]: error: undefined reference to 'llvm::Module::~Module()'
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function SandboxIRTest_UserInstantiation_Test::TestBody() [clone .localalias]: error: undefined reference to 'llvm::Module::getFunction(llvm::StringRef) const'
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function SandboxIRTest_UserInstantiation_Test::~SandboxIRTest_UserInstantiation_Test(): error: undefined reference to 'llvm::Module::~Module()'
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function SandboxIRTest_UserInstantiation_Test::~SandboxIRTest_UserInstantiation_Test(): error: undefined reference to 'llvm::LLVMContext::~LLVMContext()'
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function SandboxIRTest_UserInstantiation_Test::~SandboxIRTest_UserInstantiation_Test(): error: undefined reference to 'llvm::Module::~Module()'
unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/SandboxIRTest.cpp.o:SandboxIRTest.cpp:function SandboxIRTest_UserInstantiation_Test::~SandboxIRTest_UserInstantiation_Test(): error: undefined reference to 'llvm::LLVMContext::~LLVMContext()'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```

https://github.com/llvm/llvm-project/pull/95814


More information about the llvm-commits mailing list