clang-3.9 wrappers now broken on Snow Leopard

Ryan Schmidt ryandesign at macports.org
Mon Oct 2 23:35:42 UTC 2017


On Oct 2, 2017, at 07:18, Richard L. Hamilton wrote:

> 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


Please do file a bug report for this in our issue tracker (if one has not already been filed).





More information about the macports-users mailing list