ranlib: malformed objects on 10.6
Mojca Miklavec
mojca at macports.org
Tue Sep 4 06:58:21 UTC 2018
Hi,
On Mon, 3 Sep 2018 at 21:51, Christopher Jones wrote:
>
> 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.
Thank you very much to both of you. It seems that "port reclaim"
removed cctools. Reinstalling it immediately fixed all the problems
without any additional settings (but I needed a couple of hours to
wait for the build to finish to confirm that).
Thanks again,
Mojca
> > On 3 Sep 2018, at 8:40 pm, Mojca Miklavec 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
>
More information about the macports-dev
mailing list