Opened 7 years ago

Last modified 7 years ago

#54985 closed defect

clang-3.9 @3.9.1_6 wrappers broken at least with Snow Leopard/Xcode 3.2.6 — at Initial Version

Reported by: rlhamil Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc:
Port: clang-3.9

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.

Change History (0)

Note: See TracTickets for help on using tickets.