[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 17:23:56 UTC 2017


#54985: clang-3.9 @3.9.1_6 wrappers broken at least with Snow Leopard/Xcode 3.2.6
---------------------+-----------------------
 Reporter:  rlhamil  |      Owner:
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.4.1
 Keywords:           |       Port:  clang-3.9
---------------------+-----------------------
 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>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list