[llvm] [AArch64][NPM] Chalk out the CodeGenPassBuilder for NPM (PR #128471)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 22:11:14 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `flang-aarch64-out-of-tree` running on `linaro-flang-aarch64-out-of-tree` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/53/builds/12815
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
103.658 [46/3/94] Linking CXX executable bin/mlir-opt
108.986 [46/2/95] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64TargetTransformInfo.cpp.o
114.836 [46/1/96] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64TargetMachine.cpp.o
114.926 [45/1/97] Linking CXX static library lib/libLLVMAArch64CodeGen.a
115.227 [13/32/98] Linking CXX executable bin/clang-fuzzer-dictionary
115.367 [13/31/99] Linking CXX executable bin/clang-sycl-linker
116.130 [13/30/100] Linking CXX executable bin/clang-offload-packager
116.238 [13/29/101] Linking CXX executable bin/llvm-lipo
117.302 [13/28/102] Linking CXX executable bin/llvm-libtool-darwin
118.465 [13/27/103] Linking CXX executable bin/llvm-gsymutil
FAILED: bin/llvm-gsymutil
: && /usr/local/bin/c++ -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 -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/./lib -Wl,--gc-sections tools/llvm-gsymutil/CMakeFiles/llvm-gsymutil.dir/llvm-gsymutil.cpp.o tools/llvm-gsymutil/CMakeFiles/llvm-gsymutil.dir/llvm-gsymutil-driver.cpp.o -o bin/llvm-gsymutil -Wl,-rpath,"\$ORIGIN/../lib:" lib/libLLVMAArch64CodeGen.a lib/libLLVMAArch64AsmParser.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64Disassembler.a lib/libLLVMAArch64Info.a lib/libLLVMAArch64Utils.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMDebugInfoGSYM.a lib/libLLVMMC.a lib/libLLVMObject.a lib/libLLVMOption.a lib/libLLVMSupport.a lib/libLLVMTargetParser.a lib/libLLVMAsmPrinter.a lib/libLLVMCFGuard.a lib/libLLVMGlobalISel.a lib/libLLVMSelectionDAG.a lib/libLLVMCodeGen.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMCGData.a lib/libLLVMBitWriter.a lib/libLLVMObjCARCOpts.a lib/libLLVMTarget.a lib/libLLVMVectorize.a lib/libLLVMTransformUtils.a lib/libLLVMSandboxIR.a lib/libLLVMAnalysis.a lib/libLLVMProfileData.a lib/libLLVMSymbolize.a lib/libLLVMDebugInfoPDB.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMDebugInfoMSF.a lib/libLLVMDebugInfoBTF.a lib/libLLVMAArch64Desc.a lib/libLLVMCodeGenTypes.a lib/libLLVMAArch64Info.a lib/libLLVMAArch64Utils.a lib/libLLVMMCDisassembler.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMObject.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMIRReader.a lib/libLLVMBitReader.a lib/libLLVMAsmParser.a lib/libLLVMCore.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMTextAPI.a lib/libLLVMBinaryFormat.a lib/libLLVMTargetParser.a lib/libLLVMSupport.a -lrt -ldl -lm /usr/lib/aarch64-linux-gnu/libz.so lib/libLLVMDemangle.a && :
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::addISelPasses(llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::AddIRPass&) const':
AArch64TargetMachine.cpp:(.text._ZNK4llvm18CodeGenPassBuilderIN12_GLOBAL__N_125AArch64CodeGenPassBuilderENS_20AArch64TargetMachineEE13addISelPassesERNS4_9AddIRPassE+0x3850): undefined reference to `llvm::PrintFunctionPass::PrintFunctionPass(llvm::raw_ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::detail::PassModel<llvm::Function, llvm::PrintFunctionPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)':
AArch64TargetMachine.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_[_ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_]+0x4): undefined reference to `llvm::PrintFunctionPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
118.567 [13/26/104] Linking CXX executable bin/llvm-dwp
FAILED: bin/llvm-dwp
: && /usr/local/bin/c++ -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 -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/./lib -Wl,--gc-sections tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/llvm-dwp.cpp.o tools/llvm-dwp/CMakeFiles/llvm-dwp.dir/llvm-dwp-driver.cpp.o -o bin/llvm-dwp -Wl,-rpath,"\$ORIGIN/../lib:" lib/libLLVMAArch64CodeGen.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64Info.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMDWP.a lib/libLLVMMC.a lib/libLLVMObject.a lib/libLLVMOption.a lib/libLLVMSupport.a lib/libLLVMTargetParser.a lib/libLLVMAArch64Utils.a lib/libLLVMAsmPrinter.a lib/libLLVMCFGuard.a lib/libLLVMGlobalISel.a lib/libLLVMSelectionDAG.a lib/libLLVMCodeGen.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMCGData.a lib/libLLVMBitWriter.a lib/libLLVMObjCARCOpts.a lib/libLLVMCodeGenTypes.a lib/libLLVMTarget.a lib/libLLVMVectorize.a lib/libLLVMTransformUtils.a lib/libLLVMSandboxIR.a lib/libLLVMAnalysis.a lib/libLLVMProfileData.a lib/libLLVMSymbolize.a lib/libLLVMDebugInfoPDB.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMDebugInfoMSF.a lib/libLLVMDebugInfoBTF.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMObject.a lib/libLLVMIRReader.a lib/libLLVMBitReader.a lib/libLLVMAsmParser.a lib/libLLVMCore.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMTextAPI.a lib/libLLVMBinaryFormat.a lib/libLLVMTargetParser.a lib/libLLVMSupport.a -lrt -ldl -lm /usr/lib/aarch64-linux-gnu/libz.so lib/libLLVMDemangle.a && :
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::addISelPasses(llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::AddIRPass&) const':
AArch64TargetMachine.cpp:(.text._ZNK4llvm18CodeGenPassBuilderIN12_GLOBAL__N_125AArch64CodeGenPassBuilderENS_20AArch64TargetMachineEE13addISelPassesERNS4_9AddIRPassE+0x3850): undefined reference to `llvm::PrintFunctionPass::PrintFunctionPass(llvm::raw_ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::detail::PassModel<llvm::Function, llvm::PrintFunctionPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)':
AArch64TargetMachine.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_[_ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_]+0x4): undefined reference to `llvm::PrintFunctionPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
118.569 [13/25/105] Linking CXX executable bin/llvm-c-test
FAILED: bin/llvm-c-test
: && /usr/local/bin/c++ -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 -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/./lib -Wl,--gc-sections tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/attributes.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/debuginfo.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/diagnostic.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/disassemble.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/echo.cpp.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/helpers.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/include-all.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/main.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/module.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/metadata.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/object.c.o tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/targets.c.o -o bin/llvm-c-test -Wl,-rpath,"\$ORIGIN/../lib:" lib/libLLVMAArch64AsmParser.a lib/libLLVMAArch64CodeGen.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64Disassembler.a lib/libLLVMAArch64Info.a lib/libLLVMBitReader.a lib/libLLVMCore.a lib/libLLVMMCDisassembler.a lib/libLLVMObject.a lib/libLLVMSupport.a lib/libLLVMTarget.a lib/libLLVMAsmPrinter.a lib/libLLVMCFGuard.a lib/libLLVMGlobalISel.a lib/libLLVMSelectionDAG.a lib/libLLVMCodeGen.a lib/libLLVMTarget.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMCGData.a lib/libLLVMBitWriter.a lib/libLLVMObjCARCOpts.a lib/libLLVMVectorize.a lib/libLLVMTransformUtils.a lib/libLLVMSandboxIR.a lib/libLLVMAnalysis.a lib/libLLVMProfileData.a lib/libLLVMSymbolize.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMDebugInfoPDB.a lib/libLLVMObject.a lib/libLLVMMCParser.a lib/libLLVMIRReader.a lib/libLLVMBitReader.a lib/libLLVMAsmParser.a lib/libLLVMTextAPI.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMDebugInfoMSF.a lib/libLLVMDebugInfoBTF.a lib/libLLVMAArch64Desc.a lib/libLLVMCodeGenTypes.a lib/libLLVMAArch64Info.a lib/libLLVMAArch64Utils.a lib/libLLVMCore.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMMC.a lib/libLLVMBinaryFormat.a lib/libLLVMTargetParser.a lib/libLLVMSupport.a lib/libLLVMDemangle.a -lrt -ldl -lm /usr/lib/aarch64-linux-gnu/libz.so && :
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::addISelPasses(llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::AddIRPass&) const':
AArch64TargetMachine.cpp:(.text._ZNK4llvm18CodeGenPassBuilderIN12_GLOBAL__N_125AArch64CodeGenPassBuilderENS_20AArch64TargetMachineEE13addISelPassesERNS4_9AddIRPassE+0x3850): undefined reference to `llvm::PrintFunctionPass::PrintFunctionPass(llvm::raw_ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::detail::PassModel<llvm::Function, llvm::PrintFunctionPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)':
AArch64TargetMachine.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_[_ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_]+0x4): undefined reference to `llvm::PrintFunctionPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
118.670 [13/24/106] Linking CXX executable bin/llvm-split
FAILED: bin/llvm-split
: && /usr/local/bin/c++ -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 -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/./lib -Wl,--gc-sections tools/llvm-split/CMakeFiles/llvm-split.dir/llvm-split.cpp.o -o bin/llvm-split -Wl,-rpath,"\$ORIGIN/../lib:" lib/libLLVMAArch64AsmParser.a lib/libLLVMAArch64CodeGen.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64Info.a lib/libLLVMTransformUtils.a lib/libLLVMBitWriter.a lib/libLLVMCodeGen.a lib/libLLVMCore.a lib/libLLVMIRReader.a lib/libLLVMMC.a lib/libLLVMSupport.a lib/libLLVMTarget.a lib/libLLVMTargetParser.a lib/libLLVMAArch64Utils.a lib/libLLVMAsmPrinter.a lib/libLLVMCFGuard.a lib/libLLVMGlobalISel.a lib/libLLVMSelectionDAG.a lib/libLLVMCodeGen.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMCGData.a lib/libLLVMBitWriter.a lib/libLLVMObjCARCOpts.a lib/libLLVMTarget.a lib/libLLVMCodeGenTypes.a lib/libLLVMVectorize.a lib/libLLVMTransformUtils.a lib/libLLVMSandboxIR.a lib/libLLVMAnalysis.a lib/libLLVMProfileData.a lib/libLLVMSymbolize.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMDebugInfoPDB.a lib/libLLVMObject.a lib/libLLVMIRReader.a lib/libLLVMAsmParser.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMBitReader.a lib/libLLVMCore.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMTextAPI.a lib/libLLVMBinaryFormat.a lib/libLLVMTargetParser.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMDebugInfoMSF.a lib/libLLVMDebugInfoBTF.a lib/libLLVMSupport.a lib/libLLVMDemangle.a -lrt -ldl -lm /usr/lib/aarch64-linux-gnu/libz.so && :
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::addISelPasses(llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::AddIRPass&) const':
AArch64TargetMachine.cpp:(.text._ZNK4llvm18CodeGenPassBuilderIN12_GLOBAL__N_125AArch64CodeGenPassBuilderENS_20AArch64TargetMachineEE13addISelPassesERNS4_9AddIRPassE+0x3850): undefined reference to `llvm::PrintFunctionPass::PrintFunctionPass(llvm::raw_ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::detail::PassModel<llvm::Function, llvm::PrintFunctionPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)':
AArch64TargetMachine.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_[_ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_]+0x4): undefined reference to `llvm::PrintFunctionPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
118.767 [13/23/107] Linking CXX executable bin/llvm-isel-fuzzer
FAILED: bin/llvm-isel-fuzzer
: && /usr/local/bin/c++ -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 -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/./lib -Wl,--gc-sections tools/llvm-isel-fuzzer/CMakeFiles/llvm-isel-fuzzer.dir/DummyISelFuzzer.cpp.o tools/llvm-isel-fuzzer/CMakeFiles/llvm-isel-fuzzer.dir/llvm-isel-fuzzer.cpp.o -o bin/llvm-isel-fuzzer -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMAArch64AsmParser.a lib/libLLVMAArch64CodeGen.a lib/libLLVMAArch64Desc.a lib/libLLVMAArch64Info.a lib/libLLVMAnalysis.a lib/libLLVMAsmPrinter.a lib/libLLVMBitReader.a lib/libLLVMBitWriter.a lib/libLLVMCodeGen.a lib/libLLVMCore.a lib/libLLVMFuzzerCLI.a lib/libLLVMFuzzMutate.a lib/libLLVMIRReader.a lib/libLLVMMC.a lib/libLLVMScalarOpts.a lib/libLLVMSelectionDAG.a lib/libLLVMSupport.a lib/libLLVMTarget.a lib/libLLVMTargetParser.a lib/libLLVMAArch64Utils.a lib/libLLVMCFGuard.a lib/libLLVMGlobalISel.a lib/libLLVMSelectionDAG.a lib/libLLVMCodeGen.a lib/libLLVMCGData.a lib/libLLVMObjCARCOpts.a lib/libLLVMTarget.a lib/libLLVMCodeGenTypes.a lib/libLLVMVectorize.a lib/libLLVMSandboxIR.a lib/libLLVMBitWriter.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMTransformUtils.a lib/libLLVMAnalysis.a lib/libLLVMProfileData.a lib/libLLVMSymbolize.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMDebugInfoPDB.a lib/libLLVMObject.a lib/libLLVMIRReader.a lib/libLLVMBitReader.a lib/libLLVMAsmParser.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMTextAPI.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMDebugInfoMSF.a lib/libLLVMDebugInfoBTF.a lib/libLLVMCore.a lib/libLLVMBinaryFormat.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMTargetParser.a lib/libLLVMSupport.a lib/libLLVMDemangle.a -lrt -ldl -lm /usr/lib/aarch64-linux-gnu/libz.so && :
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::addISelPasses(llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::AddIRPass&) const':
AArch64TargetMachine.cpp:(.text._ZNK4llvm18CodeGenPassBuilderIN12_GLOBAL__N_125AArch64CodeGenPassBuilderENS_20AArch64TargetMachineEE13addISelPassesERNS4_9AddIRPassE+0x3850): undefined reference to `llvm::PrintFunctionPass::PrintFunctionPass(llvm::raw_ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o): in function `llvm::detail::PassModel<llvm::Function, llvm::PrintFunctionPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)':
AArch64TargetMachine.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_[_ZN4llvm6detail9PassModelINS_8FunctionENS_17PrintFunctionPassENS_15AnalysisManagerIS2_JEEEJEE3runERS2_RS5_]+0x4): undefined reference to `llvm::PrintFunctionPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
</details>
https://github.com/llvm/llvm-project/pull/128471
More information about the llvm-commits
mailing list