February, 22nd 2021 update: in order to avoid https://bugs.launchpad.net/qemu/+bug/1916394 I set a commit in this PKGBUILD. Will remove it asap bug 1916394 is fixed.
Search Criteria
Package Details: qemu-block-gluster-git 12:5.2.0.r2170.g08895cda3a-1
Git Clone URL: | https://aur.archlinux.org/qemu-git.git (read-only, click to copy) |
---|---|
Package Base: | qemu-git |
Description: | QEMU GlusterFS block module. Git version. |
Upstream URL: | http://wiki.qemu.org/ |
Keywords: | git kvm qemu |
Licenses: | |
Conflicts: | |
Provides: | |
Submitter: | None |
Maintainer: | FredBezies |
Last Packager: | FredBezies |
Votes: | 29 |
Popularity: | 0.44 |
First Submitted: | 2009-09-19 20:02 |
Last Updated: | 2021-02-22 12:01 |
Dependencies (11)
- glib2 (glib2-sched-policy, glib2-clear, glib2-quiet, glib2-selinux, glib2-nodocs-git, glib2-git, glib2-patched-thumbnailer)
- glusterfs
- ceph (ceph-git) (make)
- git (git-git) (make)
- glusterfs (make)
- libiscsi (make)
- ninja (ninja-git, ninja-samurai, ninja-mem, ninja-kitware, ninja-bin) (make)
- python (python-dbg) (make)
- python-sphinx (python-sphinx-git, python-sphinx-2) (make)
- spice-protocol (spice-protocol-git) (make)
- xfsprogs (xfsprogs-git) (make)
Required by (2)
- libvirt-apparmor (requires qemu-block-gluster) (optional)
- libvirt-xen (requires qemu-block-gluster) (optional)
Sources (3)
FredBezies commented on 2021-02-22 12:03
rpls commented on 2020-11-27 21:21
Build seems to trigger some gcc bug on my machine.
during GIMPLE pass: pre
In file included from [...]/qemu-git/src/qemu/include/qemu/osdep.h:37,
from [...]/qemu-git/src/qemu/tcg/tcg-op.c:25:
[...]/qemu-git/src/qemu/accel/tcg/tcg-runtime.h: In function ‘gen_helper_atomic_and_fetchq_be’:
[...]/qemu-git/src/qemu/include/exec/helper-gen.h:40:25: internal compiler error: Segmentation fault
40 | static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \
| ^~~~~~~~~~~
[...]/qemu-git/src/qemu/include/qemu/compiler.h:41:20: note: in expansion of macro ‘xglue’
41 | #define glue(x, y) xglue(x, y)
| ^~~~~
[...]/qemu-git/src/qemu/include/exec/helper-gen.h:40:20: note: in expansion of macro ‘glue’
40 | static inline void glue(gen_helper_, name)(dh_retvar_decl(ret) \
| ^~~~
[...]/qemu-git/src/qemu/accel/tcg/tcg-runtime.h:64:5: note: in expansion of macro ‘DEF_HELPER_FLAGS_4’
64 | DEF_HELPER_FLAGS_4(glue(glue(atomic_, NAME), q_be), \
| ^~~~~~~~~~~~~~~~~~
[...]/qemu-git/src/qemu/accel/tcg/tcg-runtime.h:134:1: note: in expansion of macro ‘GEN_ATOMIC_HELPERS’
134 | GEN_ATOMIC_HELPERS(and_fetch)
| ^~~~~~~~~~~~~~~~~~~
tinywrkb commented on 2020-11-25 13:26
The package does not build in a clean chroot, git is missing from makedepends (not part of base-devel or required by).
Oggz commented on 2020-09-22 00:12
@FredBezies: There has been some activity in the comments on the bug report that you filed upstream. From the information posted there about -pie being added to the LDFLAGS from the configure script, they were able to get it to build.
I was also able to replicate this and get 5.1.0.r1440 to compile by interrupting makepkg after it cloned source to srcdir and modifying src/qemu/configure.sh such that it does not add -pie to LDFLAGS. Then run 'makepkg -e' which prevents makepkg from clobbering your changes to configure.sh.
Just manually comment the following lines starting with LDFLAGS and CFLAGS in the following conditional block:
elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then
CFLAGS="-fPIE -DPIE $CFLAGS"
LDFLAGS="-pie $LDFLAGS"
Alternatively a sed one liner could be added to the prepare() in the PKGBUILD to automate the process.
Edit: This is a hack for now and may have unintended consequences. I needed my VM up and running and didn't have time to check too deeply into the ramifications of removing this compile option.
FredBezies commented on 2020-09-17 17:54
Opened a bug report about building crashes: https://bugs.launchpad.net/qemu/+bug/1896096
Edit: bug closed as invalid. Looks like this PKGBUILD is going to be busted for a long time. Sorry.
Using nixnack comment, I fixed qemu-git on a buildable version until a fix is provided. Sorry once again.
nixknack commented on 2020-09-17 03:07
Still not building :( you would think they would leave the main repo for stable-ish releases.
For those that absolutely need to compile from source, the v5.0.1 (r4? it's the latest one) tagged commit is d0ed6a69d399ae193959225cdeaa9382746c91cc. This could be common knowledge, but I had to RTFM a bit to figure it out.
source=("git://git.qemu.org/qemu.git#commit=d0ed6a69d399ae193959225cdeaa9382746c91cc"
qemu-ga.service
65-kvm.rules)
Patched and built without complaining. Obviously this is a one time fix for this single release.
rudolf commented on 2020-09-10 14:27
@FredBezies sorry, the patch should be included and is for a raspbian issue.
but i got the same problem as you.
build fails with the same error. At least building works for me:
cd .cache/pikaur/build/qemu-git/src/qemu/build-headless
../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/qemu --extra-ldflags=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now --smbd=/usr/bin/smbd --enable-modules --enable-sdl --disable-werror --enable-vhost-user --enable-slirp=system --enable-xfsctl --audio-drv-list="pa alsa sdl" --audio-drv-list= \
--disable-sdl \
--disable-gtk \
--disable-vte \
--disable-brlapi \
--disable-opengl \
--disable-virglrenderer
make -j5
cd .cache/pikaur/build/qemu-git/src/qemu/build-full
../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/qemu --extra-ldflags=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now --smbd=/usr/bin/smbd --enable-modules --enable-sdl --disable-werror --enable-vhost-user --enable-slirp=system --enable-xfsctl --audio-drv-list="pa alsa sdl"
make -j5
The weird thing is, that it should be exactly the same as the PKGBUILD is doing
Edit: weirder: After doing the above manually recalling pikaur -S qemu-git builds...
FredBezies commented on 2020-09-10 11:12
@rudolf: will test it right now and we'll see :)
Well, still broken in block/gluster.c
So, your patch is not fixing building process.
rudolf commented on 2020-09-10 10:33
FredBezies commented on 2020-09-06 09:31
@nixknack: it is an upstream issue. They're making a lot of modifications to build process.
Pinned Comments
FredBezies commented on 2021-02-22 12:03
February, 22nd 2021 update: in order to avoid https://bugs.launchpad.net/qemu/+bug/1916394 I set a commit in this PKGBUILD. Will remove it asap bug 1916394 is fixed.