From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXIqC-0002yM-4K for qemu-devel@nongnu.org; Fri, 18 Oct 2013 18:48:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXIq6-00038T-3B for qemu-devel@nongnu.org; Fri, 18 Oct 2013 18:48:20 -0400 Received: from know-smtprelay-omc-8.server.virginmedia.net ([80.0.253.72]:54936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXIq5-000388-NE for qemu-devel@nongnu.org; Fri, 18 Oct 2013 18:48:14 -0400 Date: Fri, 18 Oct 2013 23:48:12 +0100 From: Ken Moffat Message-ID: <20131018224811.GA11252@milliways> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] Build failure with make-4.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I'm working through the packages in Beyond Linux From Scratch in the expectation that make-4.0 would break something. Got about halfway through and started to doubt that. Then I tried qemu. Initially 1.6.0, which failed, so tried 1.6.1 and that fails the same way. Found some comments in the June and July archives about ARFLAGS being empty, and particularly a comment from Peter Maydell (http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg02952.html) |However, it's not the cause of the problem: | |> 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 | |...which is that the top level makefile is passing ARFLAGS="" |and so we don't specify any operation to ar at all. For me |the submake is invoked with ARFLAGS ="rv" (which is Make's |default for when ARFLAGS wasn't specified). | |QEMU's configure and makefile don't fiddle with ARFLAGS at all: |are you passing some odd values in from your environment? So I tried make-3.82 and 1.6.0 built. Here is the output from 1.6.1 mith "V=1", configured with--prefix=/usr --sysconfdir=/etc --target-list=x86_64-softmmu (sorry about the reformatting when I paste) : make -I/scratch/ken/qemu-1.6.1/dtc VPATH=/scratch/ken/qemu-1.6.1/dtc -C dtc V="1" LIBFDT_srcdir=/scratch/ken/qemu-1.6.1/dtc/libfdt CPPFLAGS="-I/scratch/ken/qemu-1.6.1/dtc -I/scratch/ken/qemu-1.6.1/dtc -I/scratch/ken/qemu-1.6.1/dtc/libfdt" CFLAGS="-O2 -D_FORTIFY_SOURCE=2 -g -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all -I/usr/include/libpng16 -I/usr/include/nss -I/usr/include/nspr -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/scratch/ken/qemu-1.6.1/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/scratch/ken/qemu-1.6.1/tests" LDFLAGS="-Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g " ARFLAGS="" CC="cc" AR="ar" LD="ld" BUILD_DIR=/scratch/ken/qemu-1.6.1 libfdt/libfdt.a make[1]: Entering directory '/scratch/ken/qemu-1.6.1/dtc' from which I see that ARFLAGS are empty and at the place where it fails cc -I/scratch/ken/qemu-1.6.1/dtc -I/scratch/ken/qemu-1.6.1/dtc -I/scratch/ken/qemu-1.6.1/dtc/libfdt -O2 -D_FORTIFY_SOURCE=2 -g -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all -I/usr/include/libpng16 -I/usr/include/nss -I/usr/include/nspr -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/scratch/ken/qemu-1.6.1/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/scratch/ken/qemu-1.6.1/tests -o libfdt/fdt_strerror.o -c libfdt/fdt_strerror.c 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 Makefile:234: recipe for target 'libfdt/libfdt.a' failed make[1]: *** [libfdt/libfdt.a] Error 1 make[1]: Leaving directory '/scratch/ken/qemu-1.6.1/dtc' Makefile:153: recipe for target 'subdir-dtc' failed make: *** [subdir-dtc] Error 2 Any suggestions for how to fix this, please ? ĸen -- das eine Mal als Tragödie, dieses Mal als Farce