clang-3.9 wrappers now broken on Snow Leopard

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


The wrappers with the clang-3.9 port  that look like

#!/bin/bash

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


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
/Developer-3.2.6

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20171002/5078dfa3/attachment.sig>


More information about the macports-users mailing list