qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] capstone broke mingw cross build
@ 2017-11-03  8:19 Gerd Hoffmann
  2017-11-03 13:06 ` Philippe Mathieu-Daudé
  2017-11-03 13:08 ` Peter Maydell
  0 siblings, 2 replies; 10+ messages in thread
From: Gerd Hoffmann @ 2017-11-03  8:19 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

  Hi,

see $subject

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.lib' 
is up to date.
  LINK    qemu-ga.exe
  LINK    qemu-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
  LINK    qemu-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'

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-03  8:19 [Qemu-devel] capstone broke mingw cross build Gerd Hoffmann
@ 2017-11-03 13:06 ` Philippe Mathieu-Daudé
  2017-11-03 13:09   ` Dr. David Alan Gilbert
  2017-11-03 13:08 ` Peter Maydell
  1 sibling, 1 reply; 10+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-11-03 13:06 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel@nongnu.org

Hi Gerd,

On 11/03/2017 05:19 AM, Gerd Hoffmann wrote:
>   Hi,
> 
> see $subject
> 
> 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.lib' 
> is up to date.
>   LINK    qemu-ga.exe
>   LINK    qemu-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
>   LINK    qemu-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'

I can't reproduce your error running:

$ 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

$ file build/win32/qemu-img.exe
build/win32/qemu-img.exe: PE32 executable (console) Intel 80386, for MS
Windows

and with:

$ 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=x86_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 Windows

What mingw toolchain are you using?

Regards,

Phil.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-03  8:19 [Qemu-devel] capstone broke mingw cross build Gerd Hoffmann
  2017-11-03 13:06 ` Philippe Mathieu-Daudé
@ 2017-11-03 13:08 ` Peter Maydell
  2017-11-03 13:22   ` Gerd Hoffmann
  1 sibling, 1 reply; 10+ messages in thread
From: Peter Maydell @ 2017-11-03 13:08 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org

On 3 November 2017 at 08:19, Gerd Hoffmann <kraxel@redhat.com> wrote:
>   Hi,
>
> see $subject
>
> 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.lib'
> is up to date.
>   LINK    qemu-ga.exe
>   LINK    qemu-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
>   LINK    qemu-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'

Works for me for the crossbuild I do with mingw64, so I wonder
what's different about your setup?

thanks
-- PMM

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-03 13:06 ` Philippe Mathieu-Daudé
@ 2017-11-03 13:09   ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 10+ messages in thread
From: Dr. David Alan Gilbert @ 2017-11-03 13:09 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: Gerd Hoffmann, qemu-devel@nongnu.org

* Philippe Mathieu-Daudé (f4bug@amsat.org) wrote:
> Hi Gerd,
> 
> On 11/03/2017 05:19 AM, Gerd Hoffmann wrote:
> >   Hi,
> > 
> > see $subject
> > 
> > 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.lib' 
> > is up to date.
> >   LINK    qemu-ga.exe
> >   LINK    qemu-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
> >   LINK    qemu-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'
> 
> 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
> 
> $ file build/win32/qemu-img.exe
> build/win32/qemu-img.exe: PE32 executable (console) Intel 80386, for MS
> Windows
> 
> and with:
> 
> $ 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=x86_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 Windows
> 
> What mingw toolchain are you using?
> 
> Regards,
> 
> Phil.
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-03 13:08 ` Peter Maydell
@ 2017-11-03 13:22   ` Gerd Hoffmann
  2017-11-03 13:28     ` Peter Maydell
  0 siblings, 1 reply; 10+ messages in thread
From: Gerd Hoffmann @ 2017-11-03 13:22 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel@nongnu.org

  Hi,

> Works for me for the crossbuild I do with mingw64, so I wonder
> what's different about your setup?

It's RHEL-7, with the mingw packages from epel.

For some reason just using x86_64-w64-mingw32-ar seems to not be
enough.  When running "x86_64-w64-mingw32-ranlib capstone/capstone.lib"
(as suggested by the error msg) manually, then kick "make" again the
build finishes successfully.

"x86_64-w64-mingw32-ar --version" says "GNU ar (GNU Binutils) 2.25"

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-03 13:22   ` Gerd Hoffmann
@ 2017-11-03 13:28     ` Peter Maydell
  2017-11-03 13:40       ` Gerd Hoffmann
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Maydell @ 2017-11-03 13:28 UTC (permalink / raw)
  To: Gerd Hoffmann, Richard Henderson; +Cc: qemu-devel@nongnu.org

On 3 November 2017 at 13:22, Gerd Hoffmann <kraxel@redhat.com> wrote:
>> Works for me for the crossbuild I do with mingw64, so I wonder
>> what's different about your setup?
>
> It's RHEL-7, with the mingw packages from epel.
>
> For some reason just using x86_64-w64-mingw32-ar seems to not be
> enough.  When running "x86_64-w64-mingw32-ranlib capstone/capstone.lib"
> (as suggested by the error msg) manually, then kick "make" again the
> build finishes successfully.
>
> "x86_64-w64-mingw32-ar --version" says "GNU ar (GNU Binutils) 2.25"

Hmm, I guess this 'ar' isn't capable of avoiding the requirement for
ranlib. The capstone makefiles look like they have support for
running ranlib, though...

Probably unrelatedly, when you build on OSX ranlib complains a lot:
  AR      libcapstone.a
ar: creating archive /Users/pm215/src/qemu/build/x86/capstone/libcapstone.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /Users/pm215/src/qemu/build/x86/capstone/libcapstone.a(MipsDisassembler.o)
has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /Users/pm215/src/qemu/build/x86/capstone/libcapstone.a(MipsInstPrinter.o)
has no symbols
[etc etc etc for 40 or 50 files]
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /Users/pm215/src/qemu/build/x86/capstone/libcapstone.a(XCoreModule.o)
has no symbols


thanks
-- PMM

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-03 13:28     ` Peter Maydell
@ 2017-11-03 13:40       ` Gerd Hoffmann
  2017-11-07 17:52         ` Alistair Francis
  0 siblings, 1 reply; 10+ messages in thread
From: Gerd Hoffmann @ 2017-11-03 13:40 UTC (permalink / raw)
  To: Peter Maydell, Richard Henderson; +Cc: qemu-devel@nongnu.org

  Hi,

> > "x86_64-w64-mingw32-ar --version" says "GNU ar (GNU Binutils) 2.25"
> 
> Hmm, I guess this 'ar' isn't capable of avoiding the requirement for
> ranlib. The capstone makefiles look like they have support for
> running ranlib, though...

Ah, the recursive call in the qemu Makefile doesn't set RANLIB.
So it probably works if that happens to be set correctly in the
environment.  I'm using 'configure --cross-prefix=x86_64-w64-mingw32-'
for cross builds though.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-03 13:40       ` Gerd Hoffmann
@ 2017-11-07 17:52         ` Alistair Francis
  2017-11-07 17:53           ` Peter Maydell
  0 siblings, 1 reply; 10+ messages in thread
From: Alistair Francis @ 2017-11-07 17:52 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Peter Maydell, Richard Henderson, qemu-devel@nongnu.org

On Fri, Nov 3, 2017 at 6:40 AM, Gerd Hoffmann <kraxel@redhat.com> wrote:
>   Hi,
>
>> > "x86_64-w64-mingw32-ar --version" says "GNU ar (GNU Binutils) 2.25"
>>
>> Hmm, I guess this 'ar' isn't capable of avoiding the requirement for
>> ranlib. The capstone makefiles look like they have support for
>> running ranlib, though...
>
> Ah, the recursive call in the qemu Makefile doesn't set RANLIB.
> So it probably works if that happens to be set correctly in the
> environment.  I'm using 'configure --cross-prefix=x86_64-w64-mingw32-'
> for cross builds though.

I'm seeing the same problem on RHEL7.2 as well. Did you find a nicer
solution then manually running runlib?

Thanks,
Alistair

>
> cheers,
>   Gerd
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-07 17:52         ` Alistair Francis
@ 2017-11-07 17:53           ` Peter Maydell
  2017-11-07 23:21             ` Alistair Francis
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Maydell @ 2017-11-07 17:53 UTC (permalink / raw)
  To: Alistair Francis; +Cc: Gerd Hoffmann, Richard Henderson, qemu-devel@nongnu.org

On 7 November 2017 at 17:52, Alistair Francis <alistair23@gmail.com> wrote:
> On Fri, Nov 3, 2017 at 6:40 AM, Gerd Hoffmann <kraxel@redhat.com> wrote:
>>   Hi,
>>
>>> > "x86_64-w64-mingw32-ar --version" says "GNU ar (GNU Binutils) 2.25"
>>>
>>> Hmm, I guess this 'ar' isn't capable of avoiding the requirement for
>>> ranlib. The capstone makefiles look like they have support for
>>> running ranlib, though...
>>
>> Ah, the recursive call in the qemu Makefile doesn't set RANLIB.
>> So it probably works if that happens to be set correctly in the
>> environment.  I'm using 'configure --cross-prefix=x86_64-w64-mingw32-'
>> for cross builds though.
>
> I'm seeing the same problem on RHEL7.2 as well. Did you find a nicer
> solution then manually running runlib?

Does adding RANLIB to the Makefile rune that calls the capstone
makefile work? (I guess we might need to set it up in configure too.)

thanks
-- PMM

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] capstone broke mingw cross build
  2017-11-07 17:53           ` Peter Maydell
@ 2017-11-07 23:21             ` Alistair Francis
  0 siblings, 0 replies; 10+ messages in thread
From: Alistair Francis @ 2017-11-07 23:21 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Gerd Hoffmann, Richard Henderson, qemu-devel@nongnu.org

On Tue, Nov 7, 2017 at 9:53 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 7 November 2017 at 17:52, Alistair Francis <alistair23@gmail.com> wrote:
>> On Fri, Nov 3, 2017 at 6:40 AM, Gerd Hoffmann <kraxel@redhat.com> wrote:
>>>   Hi,
>>>
>>>> > "x86_64-w64-mingw32-ar --version" says "GNU ar (GNU Binutils) 2.25"
>>>>
>>>> Hmm, I guess this 'ar' isn't capable of avoiding the requirement for
>>>> ranlib. The capstone makefiles look like they have support for
>>>> running ranlib, though...
>>>
>>> Ah, the recursive call in the qemu Makefile doesn't set RANLIB.
>>> So it probably works if that happens to be set correctly in the
>>> environment.  I'm using 'configure --cross-prefix=x86_64-w64-mingw32-'
>>> for cross builds though.
>>
>> I'm seeing the same problem on RHEL7.2 as well. Did you find a nicer
>> solution then manually running runlib?
>
> Does adding RANLIB to the Makefile rune that calls the capstone
> makefile work? (I guess we might need to set it up in configure too.)

It does, I'll send a patch out.

Thanks for the help Peter

Alistair

>
> thanks
> -- PMM

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-07 23:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-03  8:19 [Qemu-devel] capstone broke mingw cross build Gerd Hoffmann
2017-11-03 13:06 ` Philippe Mathieu-Daudé
2017-11-03 13:09   ` Dr. David Alan Gilbert
2017-11-03 13:08 ` Peter Maydell
2017-11-03 13:22   ` Gerd Hoffmann
2017-11-03 13:28     ` Peter Maydell
2017-11-03 13:40       ` Gerd Hoffmann
2017-11-07 17:52         ` Alistair Francis
2017-11-07 17:53           ` Peter Maydell
2017-11-07 23:21             ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).