Comments (8)
Hello,
It seems that this update to 2.9.0 can cause some issues :
==> those new builds aren't static anymore
Here is what I've tested:
flo@flopc:~$ wget -q https://github.com/multiarch/qemu-user-static/releases/download/v2.8.4/qemu-aarch64-static -O - |file -
/dev/stdin: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=91fb924228a0814f7ae7d13947cb1f13c02fa36f, stripped
flo@flopc:~$ wget -q https://github.com/multiarch/qemu-user-static/releases/download/v2.9.0/qemu-aarch64 -O - |file -
/dev/stdin: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=48894fc6b031f7dfecf8ac90b6f420dd8d94b34f, stripped
And in https://github.com/multiarch/qemu-user-static/releases/tag/v2.9.0, several files are named "-static" but are not :
- qemu-aarch64-static.tar.gz
- x86_64_qemu-aarch64-static.tar.gz
Those 2 contain the same binary than qemu-aarch64 (tested above).
The change (static -> dynamic) seems to come from this commit:
6226ce5
I believe that this repo should still provide static builds (as it did until 2.8.4).
For now, can we stick to debian (even if still on 2.8) ? Or try to use builds from another distrib (as suggested by hurricanehrndz) ?
Thanks !
from qemu-user-static.
Sure, we are waiting update a deb packages http://ftp.debian.org/debian/pool/main/q/qemu/.
from qemu-user-static.
@lafin, how about instead of debs, the rpms from openSUSE Tumbleweed are used. The rpm can be extracted using rpm2cpio. The builds are static anyhow so any package from any distro should do.
from qemu-user-static.
from qemu-user-static.
Here is my container that was inspired by yours:
https://github.com/MediaBrowser/Emby.Build/tree/master/docker-containers/qemu-builder/register
You might also want to checkout this code that I use in my make files
repo := http://download.opensuse.org/tumbleweed/repo/oss/suse/x86_64
$(eval rpm_name := $(shell curl -s $(repo)/ --list-only | grep qemu-linux | sed -n s%".*>\(qemu-linux-.*rpm\)</a>.*"%"\1"%p | tail -1))
curl -L $(repo)/$(rpm_name) -o /var/tmp/$(IMG_NAME)_$(ARCH)/qemu-linux-user.rpm
@ if [[ $(ARCH) == "armv7l" ]]; then \
rpm2cpio /var/tmp/$(IMG_NAME)_$(ARCH)/qemu-linux-user.rpm | cpio -D /var/tmp/$(IMG_NAME)_$(ARCH)/ -idmv "*qemu-arm" "*qemu-arm-*"; \
fi
@ if [[ $(ARCH) == "aarch64" ]]; then \
rpm2cpio /var/tmp/$(IMG_NAME)_$(ARCH)/qemu-linux-user.rpm | cpio -D /var/tmp/$(IMG_NAME)_$(ARCH)/ -idmv "*qemu-aarch*"; \
fi
sed -i '/ENV/,/RUN/ {s/^$$/COPY usr \/usr/}' /var/tmp/$(IMG_NAME)_$(ARCH)/Dockerfile
@ if [[ ! -e /proc/sys/fs/binfmt_misc/arm || ! -e /proc/sys/fs/binfmt_misc/aarch64 ]]; then \
docker run --rm --privileged emby/qemu-builder:register; \
fi
Hopefully the above give you enough code to proceed
from qemu-user-static.
Sorry just noticed it was still on 2.8, it is rolling release so it might be a bit faster at updating.
from qemu-user-static.
Thanks @lafin 👍
from qemu-user-static.
It also seems that on Arch, the only static version of qemu-user
is in the AUR.
Fedora does have a 2.9 version of qemu-user-static:
$ wget https://kojipkgs.fedoraproject.org//packages/qemu/2.9.0/1.fc27/x86_64/qemu-user-static-2.9.0-1.fc27.x86_64.rpm
--2017-06-06 11:28:34-- https://kojipkgs.fedoraproject.org//packages/qemu/2.9.0/1.fc27/x86_64/qemu-user-static-2.9.0-1.fc27.x86_64.rpm
Resolving kojipkgs.fedoraproject.org... 209.132.181.16, 209.132.181.15
Connecting to kojipkgs.fedoraproject.org|209.132.181.16|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33586054 (32M) [application/x-rpm]
Saving to: ‘qemu-user-static-2.9.0-1.fc27.x86_64.rpm’
qemu-user-static-2.9.0-1.fc27.x86_64.rpm 100%[==============================================================================================>] 32.03M 6.16MB/s in 14s
2017-06-06 11:28:49 (2.27 MB/s) - ‘qemu-user-static-2.9.0-1.fc27.x86_64.rpm’ saved [33586054/33586054]
$ rpm2cpio qemu-user-static-2.9.0-1.fc27.x86_64.rpm | cpio -dimv
[------ snip ✂ ------]
$ file usr/bin/qemu-aarch64-static
usr/bin/qemu-aarch64-static: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=aea83dc036f4efaa10d104bbdebdcd4a4be33987, stripped
This is for rawhide but apparently f26 also has it.
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.