ranlib: malformed objects on 10.6

Christopher Jones jonesc at hep.phy.cam.ac.uk
Mon Sep 3 19:51:25 UTC 2018


Hi,

I’ve seen similar in the past, and it normal results when the compiler used is too new for the toolkit you are using (for ar etc.) and is generating code the assembler cannot understand.

Do you have cctools installed ? Try updating your build to use the toolkit that provides instead.

Chris

> On 3 Sep 2018, at 8:40 pm, Mojca Miklavec <mojca at macports.org> wrote:
> 
> Hi,
> 
> After upgrading ports on 10.6 (I probably didn't touch the machine
> since about May this year) I ran into issue compiling software with
> clang-5.0 against libc++:
> 
> /usr/bin/ranlib: object: .libs/libfoo.a(libfoo_la-bar-file.o)
> malformed object (unknown load command 2)
> ar: internal ranlib command failed
> 
> Does anyone have any ideas what to check for?
> 
> Thank you,
>    Mojca

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1910 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180903/7da36a5f/attachment.bin>


More information about the macports-dev mailing list