[MacPorts] #54985: clang-3.9 @3.9.1_6 wrappers broken at least with Snow Leopard/Xcode 3.2.6
MacPorts
noreply at macports.org
Tue Oct 3 18:22:55 UTC 2017
#54985: clang-3.9 @3.9.1_6 wrappers broken at least with Snow Leopard/Xcode 3.2.6
------------------------+----------------------
Reporter: rlhamil | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Resolution: | Keywords:
Port: clang-3.9 |
------------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* cc: rlhamil (removed)
* cc: larryv, MarcusCalhoun-Lopez (added)
* owner: => jeremyhu
Old description:
> 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
>
> (all the /opt/local/bin/*-3.9 wrappers are of that form)
>
> have a problem on Snow Leopard, at least with Xcode 3.2.6:
>
> 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
>
> myeye:tmp root# xcode-select -print-path
> /Developer-3.2.6
>
> Clearly, at least that version of xcrun doesn't cope with a full pathname
> of the executable to be found; and it
> presumably wouldn't find something in /opt/local/libexec anyway; so why
> use it?
>
> This further breaks anything that uses clang-3.9 to build it.
New description:
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
}}}
(all the /opt/local/bin/*-3.9 wrappers are of that form)
have a problem on Snow Leopard, at least with Xcode 3.2.6:
{{{
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
myeye:tmp root# xcode-select -print-path
/Developer-3.2.6
}}}
Clearly, at least that version of xcrun doesn't cope with a full pathname
of the executable to be found; and it
presumably wouldn't find something in /opt/local/libexec anyway; so why
use it?
This further breaks anything that uses clang-3.9 to build it.
--
--
Ticket URL: <https://trac.macports.org/ticket/54985#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list