qemu-user-static
qemu-user-static copied to clipboard
ldd fails with qemu-aarch64
Is this a bug report, feature (enhancement) request or question? (leave only one on its own line)
/kind bug
Description:
When trying to build software where the build system calls ldd
, it fails with;
ldd: exited with unknown exit code (139)
Steps to reproduce the issue:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker run --rm -it arm64v8/ubuntu:16.04 ldd /bin/ls
Describe the results you received:
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
ldd: exited with unknown exit code (139)
Describe the results you expected:
It should list the shared object dependencies of /bin/ls
.
Environment:
- QEMU version: multiarch/qemu-user-static:latest
- Container application: Docker
- Host system: Gentoo AMD64
- Kernel: 5.15.40
Output of docker version
Client:
Version: 20.10.16
API version: 1.41
Go version: go1.18.2
Git commit: aa7e414fdc
Built: Wed May 18 04:08:26 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.16
API version: 1.41 (minimum version 1.12)
Go version: go1.18.2
Git commit: f756502055
Built: Wed May 18 04:19:15 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.6.4
GitCommit: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
runc:
Version: 1.1.2
GitCommit: a916309fff0f838eb94e928713dbc3c0d0ac7aa4
docker-init:
Version: 0.19.0
GitCommit: de40ad007797e0dcd8b7126f27bb87401d224240
same issue https://stuff.mit.edu/afs/sipb/project/phone-project/bin/arm-linux-ldd
blocked by this as well https://github.com/theofficialgman/MuseScore/actions/runs/5554320081/jobs/10143965652#step:7:12459
also just to add, the above is on arm64v8/ubuntu:bionic where it is failing. It used to work (about 2 months ago)
I created an issue upstream https://gitlab.com/qemu-project/qemu/-/issues/1763
Same issue here with
Client:
Version: 26.0.1
API version: 1.45
Go version: go1.22.2
Git commit: d260a54c81
Built: Fri Apr 12 06:20:40 2024
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 26.0.1
API version: 1.45 (minimum version 1.24)
Go version: go1.22.2
Git commit: 60b9add796
Built: Fri Apr 12 06:20:40 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.15
GitCommit: 926c9586fe4a6236699318391cd44976a98e31f1.m
runc:
Version: 1.1.12
GitCommit:
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Checked the qemu repository and found the following comment on this issue: https://gitlab.com/qemu-project/qemu/-/issues/1763#note_1508827541
It may be worth a try to bump the qemu version to at least 8.1.0-rc3
as it should be fixed there. This project is still using qemu version 7.2.0