Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong ELF interpreter for cross-compiled PowerPC 64 big-endian #245162

Closed
minijackson opened this issue Jul 24, 2023 · 1 comment · Fixed by #247682
Closed

Wrong ELF interpreter for cross-compiled PowerPC 64 big-endian #245162

minijackson opened this issue Jul 24, 2023 · 1 comment · Fixed by #247682
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@minijackson
Copy link
Member

Describe the bug

I have tried upgrading some of my work projects to nixpkgs 23.05, but have encountered some issues with my PowerPC 64-bit big-endian cross-compiled binaries: they specify /usr/lib/ld.so.1 as their program interpreter.

I have bisected nixpkgs, and found the first bad commit to be 238a605 by @Artturin from PR #175649, but I'm not entirely sure where something went wrong. I'll be trying to reproduce the issue on some other systems.

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build 'nixpkgs#pkgsCross.ppc64.hello'
  2. readelf -e ./result/bin/hello
  3. or, try to qemu-ppc64 ./result/bin/hello

Expected behavior

The ELF interpreter is the one from the GLIBC the derivation depends on.

Notify maintainers

@Artturin

@minijackson minijackson added the 0.kind: bug Something is broken label Jul 24, 2023
@minijackson
Copy link
Member Author

PowerPC 64-bit little-endian does not have the same issue. The ELF interpreter is correct.

@ius ius added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Jul 24, 2023
minijackson added a commit to minijackson/nixpkgs that referenced this issue Sep 11, 2023
github-actions bot pushed a commit that referenced this issue Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants