Skip to content

ldd fails with qemu-aarch64 #172

Open
@realnc

Description

@realnc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions