[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:11 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test` running on `ext_buildbot_hw_05-hip-docker` while building `llvm` at step 4 "annotate".

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

<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/hip-tpl.py --jobs=32' (failure)
...
[8484/8557] Linking CXX shared library lib/libFIRBuilder.so.23.0git
[8485/8557] Creating library symlink lib/libFIRBuilder.so
[8486/8557] Linking CXX shared library lib/libFIROpenMPSupport.so.23.0git
[8487/8557] Creating library symlink lib/libFIROpenMPSupport.so
[8488/8557] Linking CXX shared library lib/libFortranUtils.so.23.0git
[8489/8557] Creating library symlink lib/libFortranUtils.so
[8490/8557] Linking CXX shared library lib/libFIROpenACCSupport.so.23.0git
[8491/8557] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o
[8492/8557] Creating library symlink lib/libFIROpenACCSupport.so
[8493/8557] Linking CXX executable bin/llvm-profgen
FAILED: bin/llvm-profgen 
: && /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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -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/hip-third-party-libs-test/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/hip-third-party-libs-test/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  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/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o: undefined reference to symbol '_ZN4llvm14identify_magicERKNS_5TwineERNS_10file_magicE'
/usr/bin/ld: /home/botworker/bbot/hip-third-party-libs-test/build/./lib/libLLVMBinaryFormat.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8494/8557] Linking CXX shared library lib/libFIROpenACCAnalysis.so.23.0git
[8495/8557] Linking CXX shared library lib/libFIRTestOpenACCInterfaces.so.23.0git
[8496/8557] Linking CXX shared library lib/libFIRCodeGen.so.23.0git
[8497/8557] Linking CXX shared library lib/libFlangOpenMPTransforms.so.23.0git
[8498/8557] Linking CXX executable bin/fir-lsp-server
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 107, in step
    yield
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 44, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 120, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/hip-third-party-libs-test/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
@@@BUILD_STEP update llvm-test-suite@@@
@@@HALT_ON_FAILURE@@@
Running: git reset --hard origin/main
HEAD is now at 6ac44557d [SingleSource] Add variants with forced opts for vectorizer tests. (#368)
Running: git pull
Already up to date.
@@@BUILD_STEP configure test suite@@@
@@@HALT_ON_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[8484/8557] Linking CXX shared library lib/libFIRBuilder.so.23.0git
[8485/8557] Creating library symlink lib/libFIRBuilder.so
[8486/8557] Linking CXX shared library lib/libFIROpenMPSupport.so.23.0git
[8487/8557] Creating library symlink lib/libFIROpenMPSupport.so
[8488/8557] Linking CXX shared library lib/libFortranUtils.so.23.0git
[8489/8557] Creating library symlink lib/libFortranUtils.so
[8490/8557] Linking CXX shared library lib/libFIROpenACCSupport.so.23.0git
[8491/8557] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o
[8492/8557] Creating library symlink lib/libFIROpenACCSupport.so
[8493/8557] Linking CXX executable bin/llvm-profgen
FAILED: bin/llvm-profgen 
: && /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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -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/hip-third-party-libs-test/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/hip-third-party-libs-test/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  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/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/ProfiledBinary.cpp.o: undefined reference to symbol '_ZN4llvm14identify_magicERKNS_5TwineERNS_10file_magicE'
/usr/bin/ld: /home/botworker/bbot/hip-third-party-libs-test/build/./lib/libLLVMBinaryFormat.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8494/8557] Linking CXX shared library lib/libFIROpenACCAnalysis.so.23.0git
[8495/8557] Linking CXX shared library lib/libFIRTestOpenACCInterfaces.so.23.0git
[8496/8557] Linking CXX shared library lib/libFIRCodeGen.so.23.0git
[8497/8557] Linking CXX shared library lib/libFlangOpenMPTransforms.so.23.0git
[8498/8557] Linking CXX executable bin/fir-lsp-server
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 107, in step
    yield
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 44, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 120, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/hip-third-party-libs-test/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.

```

</details>

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


More information about the llvm-commits mailing list