Upgrade of MacPorts fails

Jasper Frumau jasperfrumau at gmail.com
Tue Jul 31 01:13:11 PDT 2012

Just upgraded xCode to the latest version and upgraded to Mountain Lion.
Wanted to upgrade MacPorts now as well. Got stuck:

sudo port -d selfupdate
DEBUG: Copying /Users/jasper/Library/Preferences/com.apple.dt.Xcode.plist
to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/
--->  Updating MacPorts base sources using rsync
receiving file list ... done
deleting config.log

sent 42 bytes  received 8238 bytes  1840.00 bytes/sec
total size is 3261808  speedup is 393.94
MacPorts base version 2.1.1 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://
DEBUG: /usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://
rsync.macports.org/release/ports/ /opt/local/var/macports/sources/
receiving file list ... done

sent 59 bytes  received 684965 bytes  13564.83 bytes/sec
total size is 35704166  speedup is 52.12
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://
receiving file list ... done

sent 36 bytes  received 70 bytes  42.40 bytes/sec
total size is 8547616  speedup is 80637.89
--->  MacPorts base is outdated, installing new version 2.1.2
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin; permissions
0755; Tcl-Package in /Library/Tcl

checking build system type... i386-apple-darwin12.0.0
checking host system type... i386-apple-darwin12.0.0
checking target system type... i386-apple-darwin12.0.0
checking MacPorts version... 2.1.2
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.8
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 4.4
checking for gcc... /usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/
configure: error: C compiler cannot create executables
See `config.log' for more details
Command failed: cd /opt/local/var/macports/sources/
rsync.macports.org/release/base && CC=/usr/bin/cc ./configure
--prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root
--with-install-group=admin --with-directory-mode=0755 --enable-readline &&
make && make install SELFUPDATING=1
Exit code: 77
DEBUG: Error installing new MacPorts base: command execution failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new
MacPorts base: command execution failed

Any ideas how I can get MacPorts to do it all without these errors?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120731/4ec1e0d2/attachment.html>

More information about the macports-users mailing list