From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAbim-0000KP-NE for qemu-devel@nongnu.org; Fri, 03 Nov 2017 09:09:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAbig-0008In-D3 for qemu-devel@nongnu.org; Fri, 03 Nov 2017 09:09:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44532) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eAbig-0008IT-3e for qemu-devel@nongnu.org; Fri, 03 Nov 2017 09:09:10 -0400 Date: Fri, 3 Nov 2017 13:09:03 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20171103130903.GA3119@work-vm> References: <1509697171.31823.9.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] capstone broke mingw cross build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: Gerd Hoffmann , "qemu-devel@nongnu.org" * Philippe Mathieu-Daud=E9 (f4bug@amsat.org) wrote: > Hi Gerd, >=20 > On 11/03/2017 05:19 AM, Gerd Hoffmann wrote: > > Hi, > >=20 > > see $subject > >=20 > > make: Entering directory `/home/kraxel/projects/qemu/build-win64' > > mkdir -p dtc/libfdt > > mkdir -p dtc/tests > > make[1]: `/home/kraxel/projects/qemu/build-win64/capstone/capstone.li= b'=20 > > is up to date. > > =A0 LINK=A0=A0=A0=A0qemu-ga.exe > > =A0 LINK=A0=A0=A0=A0qemu-img.exe > > /home/kraxel/projects/qemu/build-win64/capstone/capstone.lib: error > > adding symbols: Archive has no index; run ranlib to add one > > collect2: error: ld returned 1 exit status > > =A0 LINK=A0=A0=A0=A0qemu-io.exe > > make: *** [qemu-img.exe] Error 1 > > make: *** Waiting for unfinished jobs.... > > /home/kraxel/projects/qemu/build-win64/capstone/capstone.lib: error > > adding symbols: Archive has no index; run ranlib to add one > > collect2: error: ld returned 1 exit status > > make: *** [qemu-io.exe] Error 1 > > make: Leaving directory `/home/kraxel/projects/qemu/build-win64' >=20 > I can't reproduce your error running: I had the same problem as Gerd with my fedora23 mingw build. Dave > $ docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u) \ > qemu:debian-win32-cross bash -c \ > 'mkdir -p build/win32 && cd build/win32 && ../../configure > $QEMU_CONFIGURE_OPTS && make qemu-img.exe' > Install prefix c:/Program Files/QEMU > BIOS directory c:/Program Files/QEMU > ... > GIT submodules ui/keycodemapdb dtc capstone > C compiler i686-w64-mingw32.shared-gcc > Host C compiler cc > C++ compiler i686-w64-mingw32.shared-g++ > Objective-C compiler clang > ARFLAGS rv > ... > capstone git > mkdir -p dtc/libfdt > mkdir -p dtc/tests > CC cs.o > CC utils.o > CC SStream.o > CC MCInstrDesc.o > CC MCRegisterInfo.o > CC arch/ARM/ARMDisassembler.o > CC arch/ARM/ARMInstPrinter.o > CC arch/ARM/ARMMapping.o > CC arch/ARM/ARMModule.o > CC arch/AArch64/AArch64BaseInfo.o > CC arch/AArch64/AArch64Disassembler.o > CC arch/AArch64/AArch64InstPrinter.o > CC arch/AArch64/AArch64Mapping.o > CC arch/AArch64/AArch64Module.o > CC arch/Mips/MipsDisassembler.o > CC arch/Mips/MipsInstPrinter.o > CC arch/Mips/MipsMapping.o > CC arch/Mips/MipsModule.o > CC arch/PowerPC/PPCDisassembler.o > CC arch/PowerPC/PPCInstPrinter.o > CC arch/PowerPC/PPCMapping.o > CC arch/PowerPC/PPCModule.o > CC arch/Sparc/SparcDisassembler.o > CC arch/Sparc/SparcInstPrinter.o > CC arch/Sparc/SparcMapping.o > CC arch/Sparc/SparcModule.o > CC arch/SystemZ/SystemZDisassembler.o > CC arch/SystemZ/SystemZInstPrinter.o > CC arch/SystemZ/SystemZMapping.o > CC arch/SystemZ/SystemZModule.o > CC arch/SystemZ/SystemZMCTargetDesc.o > CC arch/X86/X86DisassemblerDecoder.o > CC arch/X86/X86Disassembler.o > CC arch/X86/X86IntelInstPrinter.o > CC arch/X86/X86ATTInstPrinter.o > CC arch/X86/X86Mapping.o > CC arch/X86/X86Module.o > CC arch/XCore/XCoreDisassembler.o > CC arch/XCore/XCoreInstPrinter.o > CC arch/XCore/XCoreMapping.o > CC arch/XCore/XCoreModule.o > CC MCInst.o > AR capstone.lib > i686-w64-mingw32.shared-ar: creating > /home/phil/source/qemu/build/win32/capstone/capstone.lib > RC version.o > ... > GEN nbd/trace.c > GEN scsi/trace.c > mkdir -p dtc/libfdt > mkdir -p dtc/tests > make[1]: '/home/phil/source/qemu/build/win32/capstone/capstone.lib' is > up to date. > GEN qemu-img-cmds.h > CC qemu-img.o > ... > CC stubs/xen-hvm.o > CC stubs/pci-host-piix.o > AR libqemuutil.a > LINK qemu-img.exe >=20 > $ file build/win32/qemu-img.exe > build/win32/qemu-img.exe: PE32 executable (console) Intel 80386, for MS > Windows >=20 > and with: >=20 > $ docker run --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u) \ > qemu:debian-win64-cross bash -c \ > 'mkdir -p build/win64 && cd build/win64 && ../../configure > --cross-prefix=3Dx86_64-w64-mingw32.shared- && make qemu-img.exe' > ... > CC arch/XCore/XCoreMapping.o > CC arch/XCore/XCoreModule.o > CC MCInst.o > AR capstone.lib > x86_64-w64-mingw32.shared-ar: creating > /home/phil/source/qemu/build/win64/capstone/capstone.lib > RC version.o > GEN qemu-options.def > ... > AR libqemuutil.a > LINK qemu-img.exe > $ file build/win64/qemu-img.exe > build/win64/qemu-img.exe: PE32+ executable (console) x86-64, for MS Win= dows >=20 > What mingw toolchain are you using? >=20 > Regards, >=20 > Phil. >=20 -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK