qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] capstone broke mingw cross build


From: Peter Maydell
Subject: Re: [Qemu-devel] capstone broke mingw cross build
Date: Fri, 3 Nov 2017 13:28:00 +0000

On 3 November 2017 at 13:22, Gerd Hoffmann <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]