clang-3.9 wrappers now broken on Snow Leopard

Richard L. Hamilton rlhamil at
Mon Oct 2 12:18:30 UTC 2017

The wrappers with the clang-3.9 port  that look like


if [ -x /usr/bin/xcrun ] ; then
    exec /usr/bin/xcrun /opt/local/libexec/llvm-3.9/bin/clang "${@}"
    exec /opt/local/libexec/llvm-3.9/bin/clang "${@}"

have a problem on Snow Leopard:

myeye:tmp root# clang-mp-3.9 hello.c -o hello
xcodebuild: error: invalid tool name - '/opt/local/libexec/llvm-3.9/bin/clang' contains '/' characters
/Developer-3.2.6/usr/bin/xcodebuild fails with 256 - Unknown error: 256

I gather that in the past, they didn't attempt to use xcrun, which at the very least, for the particular version of Xcode in use, doesn't seem to appreciate full pathnames.

myeye:tmp root# xcode-select -print-path

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: Message signed with OpenPGP
URL: <>

More information about the macports-users mailing list