I was rebuilding app-emulation/qemu-1.6.1 after changing it's use flags to enable "static-user" and it would fail with the following: ar libfdt/libfdt.a libfdt/fdt.o libfdt/fdt_ro.o libfdt/fdt_wip.o libfdt/fdt_sw.o libfdt/fdt_rw.o libfdt/fdt_strerror.o ar: two different operation options specified It seems that in the makefiles something like ARFLAGS="$(ARFLAGS)" is going on, which sets ARFLAGS="" Defining ARFLAGS for the ebuild let it build successfully: ARFLAGS="rv" emerge qemu http://lists.nongnu.org/archive/html/qemu-devel/2013-11/msg00487.html Reproducible: Always
1) Please attach the entire build log to this bug report. 2) Please post your `emerge --info app-emulation/qemu' output in a comment.
Created attachment 365864 [details] build.log
Created attachment 365866 [details] emerge --info app-emulation/qemu
Created attachment 365868 [details, diff] arflags-gmake-4.0.patch
As is obvious from the mailing list link Reuben Martin posted, this is a GNU make 4.0 error, that previously relied on some dubious ARFLAGS defaults. I took the patch from that link and tested it, and qemu compiled fine for me.
Reopening as he has provided the info. I have also verified that adding Ted's attached 'arflags-gmake-4.0.patch' to the 1.6.1 ebuild solves the issue.
this is fixed in at least qemu-2.0.0 which is in the tree now