[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:10:02 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b2` while building `llvm` at step 6 "test-build-unified-tree-check-all".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
8.237 [2/9/740] Linking CXX executable unittests/MI/MITests
8.368 [2/8/741] Linking CXX executable unittests/Target/TargetMachineCTests
8.469 [2/7/742] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
9.757 [2/6/743] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
14.228 [2/5/744] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AddressingModes.cpp.o
14.346 [2/4/745] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/Immediates.cpp.o
14.974 [2/3/746] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SVESchedPseudoTest.cpp.o
15.219 [2/2/747] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64RegisterInfoTest.cpp.o
15.511 [2/1/748] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/InstSizes.cpp.o
17.455 [1/1/749] Linking CXX executable unittests/Target/AArch64/AArch64Tests
FAILED: unittests/Target/AArch64/AArch64Tests 
: && /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 -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,--gc-sections unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64InstPrinterTest.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AddressingModes.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/DecomposeStackOffsetTest.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/InstSizes.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/MatrixRegisterAliasing.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/SMEAttributesTest.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64RegisterInfoTest.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SVESchedPseudoTest.cpp.o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/Immediates.cpp.o -o unittests/Target/AArch64/AArch64Tests  lib/libLLVMAArch64CodeGen.a  lib/libLLVMAArch64Desc.a  lib/libLLVMAArch64Info.a  lib/libLLVMAArch64Utils.a  lib/libLLVMAsmParser.a  lib/libLLVMCodeGen.a  lib/libLLVMCodeGenTypes.a  lib/libLLVMCore.a  lib/libLLVMGlobalISel.a  lib/libLLVMMC.a  lib/libLLVMMIRParser.a  lib/libLLVMSelectionDAG.a  lib/libLLVMSupport.a  lib/libLLVMTarget.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  -lpthread  lib/libllvm_gtest_main.a  lib/libllvm_gtest.a  -lpthread  lib/libLLVMAsmPrinter.a  lib/libLLVMCFGuard.a  lib/libLLVMVectorize.a  lib/libLLVMSandboxIR.a  lib/libLLVMCodeGen.a  lib/libLLVMScalarOpts.a  lib/libLLVMAggressiveInstCombine.a  lib/libLLVMInstCombine.a  lib/libLLVMCGData.a  lib/libLLVMBitWriter.a  lib/libLLVMObjCARCOpts.a  lib/libLLVMTransformUtils.a  lib/libLLVMCodeGenTypes.a  lib/libLLVMTarget.a  lib/libLLVMAnalysis.a  lib/libLLVMProfileData.a  lib/libLLVMSymbolize.a  lib/libLLVMDebugInfoDWARF.a  lib/libLLVMDebugInfoPDB.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMDebugInfoBTF.a  /tmp/tflitebuild/tensorflow/lib/libtensorflow-lite.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_marshalling.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_reflection.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_config.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_program_name.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_private_handle_accessor.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_commandlineflag.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_flags_commandlineflag_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_raw_hash_set.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_hashtablez_sampler.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_hash.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_city.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_low_level_hash.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_status.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_cord.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_bad_optional_access.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_cordz_info.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_cord_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_cordz_functions.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_exponential_biased.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_cordz_handle.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_crc_cord_state.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_crc32c.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_crc_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_crc_cpu_detect.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_strerror.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_str_format_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_synchronization.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_stacktrace.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_symbolize.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_debugging_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_demangle_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_demangle_rust.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_decode_rust_punycode.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_utf8_for_code_point.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_graphcycles_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_kernel_timeout_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_malloc_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_time.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_strings.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_strings_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_string_view.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_throw_delegate.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_int128.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_base.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_spinlock_wait.a  -lrt  /tmp/tflitebuild/abseil-cpp/lib/libabsl_civil_time.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_time_zone.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_bad_variant_access.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_raw_logging_internal.a  /tmp/tflitebuild/abseil-cpp/lib/libabsl_log_severity.a  /tmp/tflitebuild/tensorflow/lib/libfarmhash.a  /tmp/tflitebuild/tensorflow/lib/libfft2d_fftsg2d.a  /tmp/tflitebuild/tensorflow/lib/libfft2d_fftsg.a  /tmp/tflitebuild/flatbuffers/lib/libflatbuffers.a  /tmp/tflitebuild/gemmlowp/lib/libeight_bit_int_gemm.a  /tmp/tflitebuild/ruy/lib/libruy_context_get_ctx.a  /tmp/tflitebuild/ruy/lib/libruy_context.a  /tmp/tflitebuild/ruy/lib/libruy_frontend.a  /tmp/tflitebuild/ruy/lib/libruy_kernel_arm.a  /tmp/tflitebuild/ruy/lib/libruy_kernel_avx.a  /tmp/tflitebuild/ruy/lib/libruy_kernel_avx2_fma.a  /tmp/tflitebuild/ruy/lib/libruy_kernel_avx512.a  /tmp/tflitebuild/ruy/lib/libruy_apply_multiplier.a  /tmp/tflitebuild/ruy/lib/libruy_pack_arm.a  /tmp/tflitebuild/ruy/lib/libruy_pack_avx.a  /tmp/tflitebuild/ruy/lib/libruy_pack_avx2_fma.a  /tmp/tflitebuild/ruy/lib/libruy_pack_avx512.a  /tmp/tflitebuild/ruy/lib/libruy_prepare_packed_matrices.a  /tmp/tflitebuild/ruy/lib/libruy_trmul.a  /tmp/tflitebuild/ruy/lib/libruy_ctx.a  /tmp/tflitebuild/ruy/lib/libruy_allocator.a  /tmp/tflitebuild/ruy/lib/libruy_prepacked_cache.a  /tmp/tflitebuild/ruy/lib/libruy_system_aligned_alloc.a  /tmp/tflitebuild/ruy/lib/libruy_have_built_path_for_avx.a  /tmp/tflitebuild/ruy/lib/libruy_have_built_path_for_avx2_fma.a  /tmp/tflitebuild/ruy/lib/libruy_have_built_path_for_avx512.a  /tmp/tflitebuild/ruy/lib/libruy_thread_pool.a  /tmp/tflitebuild/ruy/lib/libruy_blocking_counter.a  /tmp/tflitebuild/ruy/lib/libruy_wait.a  /tmp/tflitebuild/ruy/lib/libruy_denormal.a  /tmp/tflitebuild/ruy/lib/libruy_block_map.a  /tmp/tflitebuild/ruy/lib/libruy_tune.a  /tmp/tflitebuild/ruy/lib/libruy_cpuinfo.a  /tmp/tflitebuild/cpuinfo/lib/libcpuinfo.a  /tmp/tflitebuild/ruy/lib/libruy_profiler_instrumentation.a  -pthread  lib/libLLVMObject.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMIRReader.a  lib/libLLVMAsmParser.a  lib/libLLVMBitReader.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -lpthread  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  -lpthread && :
lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o):AArch64TargetMachine.cpp:function llvm::detail::PassModel<llvm::Function, llvm::PrintFunctionPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&): error: undefined reference to 'llvm::PrintFunctionPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&)'
lib/libLLVMAArch64CodeGen.a(AArch64TargetMachine.cpp.o):AArch64TargetMachine.cpp:function llvm::CodeGenPassBuilder<(anonymous namespace)::AArch64CodeGenPassBuilder, llvm::AArch64TargetMachine>::buildPipeline(llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>&, llvm::raw_pwrite_stream&, llvm::raw_pwrite_stream*, llvm::CodeGenFileType) const: error: undefined reference to 'llvm::PrintFunctionPass::PrintFunctionPass(llvm::raw_ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list