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 Version 2

Reported by: rlhamil Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: larryv (Lawrence Velázquez), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: clang-3.9

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (2)

comment:1 Changed 7 years ago by rlhamil

Cc: rlhamil added

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: larryv MarcusCalhoun-Lopez added; rlhamil removed
Description: modified (diff)
Owner: set to jeremyhu
Status: newassigned
Note: See TracTickets for help on using tickets.