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

ldd fails with qemu-aarch64 #172

Open
realnc opened this issue May 18, 2022 · 6 comments
Open

ldd fails with qemu-aarch64 #172

realnc opened this issue May 18, 2022 · 6 comments

Comments

@realnc
Copy link

realnc commented May 18, 2022

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:

  1. docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
  2. 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
@zhangguanzhang
Copy link

zhangguanzhang commented Nov 8, 2022

@theofficialgman
Copy link

@theofficialgman
Copy link

also just to add, the above is on arm64v8/ubuntu:bionic where it is failing. It used to work (about 2 months ago)

@theofficialgman
Copy link

I created an issue upstream https://gitlab.com/qemu-project/qemu/-/issues/1763

@Binozo
Copy link

Binozo commented Apr 17, 2024

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

@Binozo
Copy link

Binozo commented Apr 17, 2024

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

michaliskambi added a commit to castle-engine/cge-lazarus that referenced this issue Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants