Package Details: qemu-user-static 4.1.0-1

Git Clone URL: https://aur.archlinux.org/qemu-user-static.git (read-only)
Package Base: qemu-user-static
Description: Statically linked binaries of Qemu with user emulation. Useful for containers/chroot environment with binfmt.
Upstream URL: http://wiki.qemu.org/
Licenses: GPL2, LGPL2.1
Provides: qemu-user-static
Submitter: falstaff_ch
Maintainer: simonfxr
Last Packager: simonfxr
Votes: 7
Popularity: 0.843495
First Submitted: 2019-01-11 13:55
Last Updated: 2019-08-22 19:06

Latest Comments

1 2 Next › Last »

simonfxr commented on 2019-08-26 12:51

@PedroHLC See https://aur.archlinux.org/packages/qemu-user-static/#comment-698555. Rebuild glib2-static, possibly also pcre-static should fix the linker error. I will try to update the PKGBUILD to check for outdated static lto libs.

PedroHLC commented on 2019-08-26 12:12

I'm getting:

lto1: fatal error: bytecode stream in file "/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../lib/libglib-2.0.a" generated with LTO version 7.1 instead of the expected 8.0

EDIT2: Obviously, the solution is to rebuild glib2-static. Sorry for making this comment...

jamincollins commented on 2019-06-29 23:44

Building in a chroot fails:

==> Extracting sources...
  -> Extracting qemu-4.0.0.tar.xz with bsdtar
==> Starting prepare()...
==> Starting build()...

ERROR: Python not found. Use --python=/path/to/python

==> ERROR: A failure occurred in build().
    Aborting...

The following diff appears to fix it:

diff --git a/PKGBUILD b/PKGBUILD
index 0d10cea..4c500a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,6 +32,7 @@ build() (
   cd build-user-static

   ../qemu-${pkgver}/configure \
+    --python=/bin/python2 \
     --prefix=/usr \
     --sysconfdir=/etc \
     --localstatedir=/var \

atemu commented on 2019-06-28 15:49

@DDoSolitary clean building pcre-static did the trick, thanks!

yaron commented on 2019-06-27 13:03

I got the same one as @atemu only the versions are 7.0 and the expected is 7.1 (LTO)

DDoSolitary commented on 2019-06-27 11:46

@atemu I think rebuilding the dependency glib2-static will fix the problem. You probably also need to rebuild pcre-static if it's built by an older version of gcc too.

DDoSolitary commented on 2019-06-27 07:20

The same error here as what @atemu encountered.

atemu commented on 2019-06-26 18:20

I get the following error when building:

  LINK    qemu-ga
/usr/bin/ld: libqemuutil.a(qemu-sockets.o): in function `inet_connect_saddr':
qemu-sockets.c:(.text+0xba6): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
lto1: fatal error: bytecode stream in file ‘/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../lib/libglib-2.0.a’ generated with LTO version 7.1 instead of the expected 8.0
compilation terminated.
lto-wrapper: fatal error: c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:570: qemu-ga] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().

simonfxr commented on 2019-05-21 17:46

Please update :-) Here is the trivial patch, I successfully use:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=qemu-user-static
 pkgdesc="Statically linked binaries of Qemu with user emulation. Useful for containers/chroot environment with binfmt."
-pkgver=3.1.0
+pkgver=4.0.0
 pkgrel=1
 arch=(x86_64)
 license=(GPL2 LGPL2.1)
@@ -10,7 +10,7 @@ url="http://wiki.qemu.org/"
 depends=()
 makedepends=(python2 glib2-static pcre-static)
 source=(https://download.qemu.org/qemu-$pkgver.tar.xz{,.sig})
-sha512sums=('7e8dae823937cfac2f0c60406bd3bdcb89df40313dab2a4bed327d5198f7fcc68ac8b31e44692caa09299cc71256ee0b8c17e4f49f78ada8043d424f5daf82fe'
+sha512sums=('952e94194ce9e64c15388c59035cb31fb9f761d30095c2fb9441012b609c18c9976285727b93bf37b95e15675802d73f8e1c4619ebecd23606675bb503646b13'
             'SKIP')
 validpgpkeys=('CEACC9E15534EBABB82D3FA03353C9CEF108B584')

PedroHLC commented on 2019-01-22 16:33

I'm also with @DDosSolitary having problem with "python not found"