Skip to content

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

@minijackson

Description

@minijackson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions