<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">> <span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">After upgrading ports on 10.6 (I probably didn't touch the machine </span><span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">since about May this year) I ran into issue compiling software with </span><span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">clang-5.0 against libc++:</span><pre>/usr/bin/ranlib: object: .libs/libfoo.a(libfoo_la-bar-file.o)
malformed object (unknown load command 2)
ar: internal ranlib command failed

</pre><div><br></div><div>Starting with clang-3.9, I found the objects could no longer be handled by the default /usr/bin/* tools, and you had to force them to use the cctools versions in /opt/local/bin/*</div><div><br></div><div>sometimes that was as easy as having cctools installed.</div><div><br></div><div>sometimes you had to send in the correct AR or RANLIB in the environment.</div><div><br></div><div>clang-3.7 generates objects that the default /usr/bin/* tools can handle, as did clang-3.8 I recall.</div><div><br></div><div>Best,</div><div><br></div><div>Ken</div></body></html>