ranlib: malformed objects on 10.6

Mojca Miklavec mojca at macports.org
Mon Sep 3 19:40:54 UTC 2018


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,

More information about the macports-dev mailing list