Comments (13)
I'm using latest multiarch/qemu-user-static installed via Docker container.
Are you sure? This repository is for "multiarch/qemu-user-static" container image.
I run some builds using QEMUs via Docker buildx.
In my memory docker buildx has using the forked version of qemu internally. This qemu. Not original one.
https://github.com/moby/qemu
Generally following this guide using multiarch/qemu-user-static - https://medium.com/@artur.klauser/building-multi-architecture-docker-images-with-buildx-27d80f7e2408
The used "qemu-user-static" is not this repository's one.
$ sudo apt-get install -y qemu-user-static
But for example if you are running Ubuntu as host bionic, here is the "qemu-user-static" deb package.
https://packages.ubuntu.com/bionic-updates/qemu-user-static
If you have a question related to buildx, the place to ask is here.
https://github.com/docker/buildx
from qemu-user-static.
Yes... definitely using "multiarch/qemu-user-static" container image
Search inside the article (https://medium.com/@artur.klauser/building-multi-architecture-docker-images-with-buildx-27d80f7e2408) for "Docker Image Based Installation" - You'll see the references to multiarch/qemu-user-static. I'm using this approach, however it is confusing as several approaches are described.
from qemu-user-static.
I think I've found the culprit... Building using bionic means a glibc version < 2.28, Focal is >2.28 - It appears the READDIR is returning NULL
https://bugs.launchpad.net/qemu/+bug/1805913
Is there any easy way round this bug/issue?
from qemu-user-static.
I still do not understand your steps.
For Steps to reproduce the issue:
, could you describe the steps by only command lines and result like this?
$ command1
result1
$ command2
result2
$ command3
result3
...
And I can not access to your log files. I do not know why.
stdout.out.txt
stderr.out (1).txt
Could you upload the log to your https://gist.github.com ?
from qemu-user-static.
And it's good if you share your the minimal Dockerfile
to reproduce the issue too.
from qemu-user-static.
https://medium.com/@artur.klauser/building-multi-architecture-docker-images-with-buildx-27d80f7e2408
Docker Image Based Installation
As an alternative to installing the QEMU and binfmt-support packages on your host system you can use a docker image to satisfy the corresponding requirements. There are several docker images that do the job, among them multiarch/qemu-user-static and docker/binfmt.
If you faced the error as a result of docker buildx ...
, in my experience, multiarch/qemu-user-statuc
is not related to the result. Because docker buildx
uses the internal binfmt_misc and qemu. I think the referred article might be wrong.
If you executed the multiarch/qemu-user-static
image, possibly you see /proc/sys/fs/binfmt_misc/qemu-$arch
files on your host. So, it might be good to remove the files at once.
https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
You can remove one entry or all entries by echoing -1 to /proc/.../the_name or /proc/sys/fs/binfmt_misc/status.
# echo -1 > /proc/sys/fs/binfmt_misc/qemu-$arch
Please do it on your responsibility.
from qemu-user-static.
Junaruga,
Gist is here: https://gist.github.com/rhastie/04e5af6fa4f61e8e278a1a5ee27484f2
It is quite an involved Dockerfile inside a private repo which is using cmake to run a compile - If you share your GitHub ID I can add you to the repo - Focal version which is erroring is on the focal branch. Currently master is Bionic - I'm having to revert to Bionic.
All I am changing between the two Dockerfile versions is the base-image
from qemu-user-static.
Now I can see stderr.out.1.txt
. Thank you.
Is the log the output of docker buildx ...
, right?
I do not want to see your private repository. It's okay not to share it.
This CI service can offer ARM 32 bit native host environment. It's free for public repository. It might not free for the private repository. But it's worth to try.
https://drone.io/
from qemu-user-static.
The example.
https://github.com/junaruga/ci-multi-arch-test/blob/master/.drone.yml#L27
from qemu-user-static.
Now I can see
stderr.out.1.txt
. Thank you.
Is the log the output ofdocker buildx ...
, right?I do not want to see your private repository. It's okay not to share it.
This CI service can offer ARM 32 bit native host environment. It's free for public repository. It might not free for the private repository. But it's worth to try.
https://drone.io/
Yes - This is part of the docker buildx output for just ARMv7 build
Thanks for the help - I'll look at https://drone.io
from qemu-user-static.
Just wanted to comment that I have encountered this same problem and it seems to be tied to cmake version. 3.13.4 works fine, but cmake 3.18.1 fails to exact same error in the same container.
from qemu-user-static.
This is reported on CMake's GitLab here: https://gitlab.kitware.com/cmake/cmake/-/issues/20568
from qemu-user-static.
See https://github.com/dbhi/docker#building-docker-images-foron-arm-targets:
Building DynamoRIO on an arm32v7 container on a 64 bit host requires to set -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=armv7, as explained at DynamoRIO/dynamorio#3381.
from qemu-user-static.
Related Issues (20)
- ldd fails with qemu-aarch64 HOT 6
- Need support for run x86_64 on linux/arm64 HOT 13
- Intermittent exec format error when building linux/arm64 (alpine 3.15+) on amd64 host HOT 1
- speed is slow when use as cross-compile solution HOT 5
- qemu: uncaught target signal 11 (Segmentation fault) - core dumped HOT 1
- Does loong64 and mips/mipsle will be support?
- Where is qemu-$to_arch-static binary files when container whose arch isn't equal to host's one is run? HOT 8
- Undocumented convention: The `--reset` flag must be the first argument
- Mirror docker image to ghcr.io HOT 3
- node.js 16 build on UBI8 is very slow and fails in GH Actions with ECONNRESET and too many open files errors.
- argv[0] can now be automatically fixed
- need to upgrade to support loongarch64 HOT 8
- [Problem] Can I use it in gitlab runner? HOT 4
- iptables-nft not supported in qemu-aarch64-static HOT 6
- Need pinned Alpine Linux versions, e.g., v3.17 HOT 1
- mount: permission denied (are you root?)
- Is this project still active? HOT 1
- armv7 and a page size of 32K
- Have trouble running quemu-static on arm64 with exec format error
- Publish new image with latest busybox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qemu-user-static.