Oddity using Xcode 4.4 on OS 10.7.

William Gallafent william at gallaf.net
Thu Jul 26 08:13:04 PDT 2012


Hi All,

This is slightly OT, for which apologies, but might have an impact on
a MacPorts installation, and I suspect people here might know how to
fix it.

I'm running up-to-date Mac OS 10.7, and have just installed Xcode 4.4
using the App Store. Next step is to install the Command Line Tools.

When I click on "Install" for the Command Line Tools in the
Preferences/Downloads pane, a progress bar appears, and after a while
changes to "Installed". A quick look in /var/log/install.log indicates
that the installation succeeded. Last few lines follow:

…
Jul 26 16:04:29 Humber installd[2842]: PackageKit: xpchelper
--rebuild-cache --overlay
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At
Startup/PKInstallSandbox-tmp/Root
Jul 26 16:04:29 Humber installd[2842]: PackageKit: Executing script
"preinstall" in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup
At Startup/PKInstallSandbox-tmp/Scripts/com.apple.pkg.DeveloperToolsCLI.0qBcl9
Jul 26 16:04:30 Humber installd[2842]: PackageKit: Shoving
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At
Startup/PKInstallSandbox-tmp/Root (3 items) to /
Jul 26 16:05:23 Humber installd[2842]: PackageKit: Executing script
"postinstall" in
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At
Startup/PKInstallSandbox-tmp/Scripts/com.apple.pkg.DeveloperToolsCLI.0qBcl9
Jul 26 16:05:23 Humber _securityagent[2875]: Running Install Scripts . . .
Jul 26 16:05:23 Humber _securityagent[2877]: Begin script: postflight
Jul 26 16:05:34 Humber _securityagent[2883]: End script: postflight
Jul 26 16:05:34 Humber _securityagent[2884]: 1 Install Scripts run.
Jul 26 16:05:34 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.BluetoothSDKLeo to /private/var/db/receipts
Jul 26 16:05:34 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.clang to /private/var/db/receipts
Jul 26 16:05:34 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.CoreAudioSDKLeo to /private/var/db/receipts
Jul 26 16:05:34 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.DeveloperToolsCLI to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.DevSDKLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.FireWireSDKLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.JavaSDKLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.llvm-gcc4.2 to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.OpenGLSDKLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.QuickTimeSDKLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.WebKitSDKLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.X11DocumentationLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Writing receipt for
com.apple.pkg.X11SDKLeo to /private/var/db/receipts
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Registered bundle
file://localhost/usr/share/git-gui/lib/Git%20Gui.app/
Jul 26 16:05:36 Humber installd[2842]: PackageKit: Registered bundle
file://localhost/System/Library/CoreServices/ManagedClient.app/
Jul 26 16:05:36 Humber installd[2842]: PackageKit: ----- End install -----

However, my /usr/bin/clang is still the old version, and does not
match the one below /Applications/Xcode.app:

Humber:RailEasy williamg$ /usr/bin/clang --version
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
Humber:RailEasy williamg$
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
--version
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix

Is this expected behaviour? It seems very odd to me. The other thing
that's odd is that if I quit and restart Xcode, the Command Line Tools
have an "Install" button again, instead of saying "Installed". So
clearly Xcode doesn't think the installation has worked either.

Any help welcome!

-- 
Bill Gallafent.


More information about the macports-users mailing list