Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 493568

Summary: app-emulation/qemu-1.6.1[static-user]: with =sys-devel/make-4.0-r1 - ar: two different operation options specified
Product: Gentoo Linux Reporter: Reuben Martin <reuben.m>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED FIXED    
Severity: normal CC: marduk, qemu+disabled
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info app-emulation/qemu
arflags-gmake-4.0.patch

Description Reuben Martin 2013-12-07 21:41:57 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-10 10:36:46 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info app-emulation/qemu' output in a comment.
Comment 2 Ted Tanberry 2013-12-22 00:21:06 UTC
Created attachment 365864 [details]
build.log
Comment 3 Ted Tanberry 2013-12-22 00:21:31 UTC
Created attachment 365866 [details]
emerge --info app-emulation/qemu
Comment 4 Ted Tanberry 2013-12-22 00:21:58 UTC
Created attachment 365868 [details, diff]
arflags-gmake-4.0.patch
Comment 5 Ted Tanberry 2013-12-22 00:23:16 UTC
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.
Comment 6 Jim Ramsay (lack) (RETIRED) gentoo-dev 2014-01-07 14:57:02 UTC
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.
Comment 7 SpanKY gentoo-dev 2014-04-19 17:44:58 UTC
this is fixed in at least qemu-2.0.0 which is in the tree now