Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493568 - app-emulation/qemu-1.6.1[static-user]: with =sys-devel/make-4.0-r1 - ar: two different operation options specified
Summary: app-emulation/qemu-1.6.1[static-user]: with =sys-devel/make-4.0-r1 - ar: two ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-12-07 21:41 UTC by Reuben Martin
Modified: 2014-04-19 17:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,47.84 KB, text/x-log)
2013-12-22 00:21 UTC, Ted Tanberry
Details
emerge --info app-emulation/qemu (emerge.info,7.39 KB, text/plain)
2013-12-22 00:21 UTC, Ted Tanberry
Details
arflags-gmake-4.0.patch (arflags-gmake-4.0.patch,1.03 KB, patch)
2013-12-22 00:21 UTC, Ted Tanberry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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