[llvm] [llvm-profgen] Read build ID from binary for perfscript address filtering (PR #190862)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 15:53:07 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-build-only` running on `AMD-bb-w-01` while building `llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/226/builds/3606
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[8511/8557] Creating library symlink lib/libFortranLower.so
[8512/8557] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfileGenerator.cpp.o
[8513/8557] Linking CXX executable bin/fir-opt
[8514/8557] Linking CXX shared library lib/libflangFrontend.so.23.0git
[8515/8557] Creating library symlink lib/libflangFrontend.so
[8516/8557] Linking CXX shared library lib/libflangFrontendTool.so.23.0git
[8517/8557] Creating library symlink lib/libflangFrontendTool.so
[8518/8557] Linking CXX executable bin/tco
[8519/8557] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o
[8520/8557] Linking CXX executable bin/llvm-profgen
FAILED: bin/llvm-profgen
: && /opt/rh/gcc-toolset-13/root/usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,--gc-sections tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/llvm-profgen.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/PerfReader.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/CSPreInliner.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfileGenerator.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/MissingFrameInferrer.cpp.o -o bin/llvm-profgen -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib:" lib/libLLVMSPIRVDesc.so.23.0git lib/libLLVMX86Desc.so.23.0git lib/libLLVMAMDGPUDisassembler.so.23.0git lib/libLLVMX86Disassembler.so.23.0git lib/libLLVMSPIRVInfo.so.23.0git lib/libLLVMX86Info.so.23.0git lib/libLLVMipo.so.23.0git lib/libLLVMMCDisassembler.so.23.0git -lpthread lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMProfileData.so.23.0git lib/libLLVMSymbolize.so.23.0git lib/libLLVMDebugInfoPDB.so.23.0git lib/libLLVMDebugInfoDWARF.so.23.0git lib/libLLVMObject.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMCore.so.23.0git lib/libLLVMTargetParser.so.23.0git lib/libLLVMSupport.so.23.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o: undefined reference to symbol '_ZN4llvm14identify_magicERKNS_5TwineERNS_10file_magicE'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/botworker/bbot/amdgpu-offload-build-only/build/./lib/libLLVMBinaryFormat.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8521/8557] Linking CXX executable bin/flang-23
[8522/8557] Linking CXX executable bin/bbc
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[8511/8557] Creating library symlink lib/libFortranLower.so
[8512/8557] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfileGenerator.cpp.o
[8513/8557] Linking CXX executable bin/fir-opt
[8514/8557] Linking CXX shared library lib/libflangFrontend.so.23.0git
[8515/8557] Creating library symlink lib/libflangFrontend.so
[8516/8557] Linking CXX shared library lib/libflangFrontendTool.so.23.0git
[8517/8557] Creating library symlink lib/libflangFrontendTool.so
[8518/8557] Linking CXX executable bin/tco
[8519/8557] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o
[8520/8557] Linking CXX executable bin/llvm-profgen
FAILED: bin/llvm-profgen
: && /opt/rh/gcc-toolset-13/root/usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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 -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,--gc-sections tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/llvm-profgen.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/PerfReader.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/CSPreInliner.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfileGenerator.cpp.o tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/MissingFrameInferrer.cpp.o -o bin/llvm-profgen -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib:" lib/libLLVMSPIRVDesc.so.23.0git lib/libLLVMX86Desc.so.23.0git lib/libLLVMAMDGPUDisassembler.so.23.0git lib/libLLVMX86Disassembler.so.23.0git lib/libLLVMSPIRVInfo.so.23.0git lib/libLLVMX86Info.so.23.0git lib/libLLVMipo.so.23.0git lib/libLLVMMCDisassembler.so.23.0git -lpthread lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMProfileData.so.23.0git lib/libLLVMSymbolize.so.23.0git lib/libLLVMDebugInfoPDB.so.23.0git lib/libLLVMDebugInfoDWARF.so.23.0git lib/libLLVMObject.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMCore.so.23.0git lib/libLLVMTargetParser.so.23.0git lib/libLLVMSupport.so.23.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o: undefined reference to symbol '_ZN4llvm14identify_magicERKNS_5TwineERNS_10file_magicE'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/botworker/bbot/amdgpu-offload-build-only/build/./lib/libLLVMBinaryFormat.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8521/8557] Linking CXX executable bin/flang-23
[8522/8557] Linking CXX executable bin/bbc
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=70.881285
```
</details>
https://github.com/llvm/llvm-project/pull/190862
More information about the llvm-commits
mailing list