Repository navigation
Closed
Labels
0.kind: build failureA package fails to build
Description
Nixpkgs version
- Unstable (26.11)
Steps to reproduce
- Try to build RGP
Can Hydra reproduce this build failure?
Hydra doesn’t try to build the package.
Link to Hydra build job
No response
Relevant log output
rgp> patchelf: patchelf.cc:547: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Nhdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Versym, Elf_Verdef, Elf_Verdaux, Elf_Verneed, Elf_Vernaux, Elf_Rel, Elf_Rela, ElfClass>::shiftFile(unsigned int, size_t, size_t) [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Nhdr = Elf64_Nhdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Versym = short unsigned int; Elf_Verdef = Elf64_Verdef; Elf_Verdaux = Elf64_Verdaux; Elf_Verneed = Elf64_Verneed; Elf_Vernaux = Elf64_Vernaux; Elf_Rel = Elf64_Rel; Elf_Rela = Elf64_Rela; unsigned int ElfClass = 64; size_t = long unsigned int]: Assertion `splitIndex == -1' failed.
rgp> Traceback (most recent call last):
rgp> File "/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 681, in <module>
rgp> main()
rgp> ~~~~^^
rgp> File "/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 651, in main
rgp> auto_patchelf(
rgp> ~~~~~~~~~~~~~^
rgp> logger,
rgp> ^^^^^^^
rgp> ...<9 lines>...
rgp> add_existing=args.add_existing,
rgp> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rgp> extra_args=args.extra_args)
rgp> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
rgp> File "/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 522, in auto_patchelf
rgp> dependencies += auto_patchelf_file(
rgp> ~~~~~~~~~~~~~~~~~~^
rgp> logger=logger,
rgp> ^^^^^^^^^^^^^^
rgp> ...<7 lines>...
rgp> containing_path=containing_path
rgp> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rgp> )
rgp> ^
rgp> File "/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 487, in auto_patchelf_file
rgp> subprocess.run(
rgp> ~~~~~~~~~~~~~~^
rgp> ["patchelf", "--set-rpath", rpath_str, path.as_posix()] + extra_args,
rgp> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rgp> check=True)
rgp> ^^^^^^^^^^^
rgp> File "/nix/store/3nsc9phchsd9c8336ahxgpgwp7q9df1b-python3-3.14.8-env/lib/python3.14/subprocess.py", line 578, in run
rgp> raise CalledProcessError(retcode, process.args,
rgp> output=stdout, stderr=stderr)
rgp> subprocess.CalledProcessError: Command '['patchelf', '--set-rpath', '/nix/store/1vwsawpyfgpx2sdhlr5kayr6srji50g6-rgp-2.7/opt/rgp/lib', '/nix/store/1vwsawpyfgpx2sdhlr5kayr6srji50g6-rgp-2.7/opt/rgp/RadeonGPUAnalyzer-bin']' died with <Signals.SIGABRT: 6>.
error: builder for '/nix/store/kg1yxnf2rkd8wcybihs071j412g0xx6z-rgp-2.7.drv' failed with exit code 1;
last 25 log lines:
> add_existing=args.add_existing,
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> extra_args=args.extra_args)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 522, in auto_patchelf
> dependencies += auto_patchelf_file(
> ~~~~~~~~~~~~~~~~~~^
> logger=logger,
> ^^^^^^^^^^^^^^
> ...<7 lines>...
> containing_path=containing_path
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> )
> ^
> File "/nix/store/svn7l592bhwfwycqg7bi4fq3lr2rg999-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 487, in auto_patchelf_file
> subprocess.run(
> ~~~~~~~~~~~~~~^
> ["patchelf", "--set-rpath", rpath_str, path.as_posix()] + extra_args,
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> check=True)
> ^^^^^^^^^^^
> File "/nix/store/3nsc9phchsd9c8336ahxgpgwp7q9df1b-python3-3.14.8-env/lib/python3.14/subprocess.py", line 578, in run
> raise CalledProcessError(retcode, process.args,
> output=stdout, stderr=stderr)
> subprocess.CalledProcessError: Command '['patchelf', '--set-rpath', '/nix/store/1vwsawpyfgpx2sdhlr5kayr6srji50g6-rgp-2.7/opt/rgp/lib', '/nix/store/1vwsawpyfgpx2sdhlr5kayr6srji50g6-rgp-2.7/opt/rgp/RadeonGPUAnalyzer-bin']' died with <Signals.SIGABRT: 6>.
For full logs, run:
nix log /nix/store/kg1yxnf2rkd8wcybihs071j412g0xx6z-rgp-2.7.drvAdditional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 7.2.9, NixOS, 26.11 (Zokor), 26.11.20261010.6510408 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Lix, like Nix) 2.95.3 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/echo/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/echo/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/echo/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/echo/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/06j1ymvybr8z3ckwyxw1bh87ahx1i938-lix-2.95.3/share - nixpkgs:
/nix/store/rhsxvv1380jmchb5p3a43d24mhlmp2ry-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to build
Activity
[-]Build failure: PACKAGENAME[/-][+]Build failure: rgp[/+]Flakebi commentedon Oct 21, 2026
Seems to be a bug in patchelf, I put up a workaround in #576879.