id summary reporter owner description type status priority milestone component version resolution keywords cc port 30545 Update of MacPorts base to version 2.0.1 fails michelle.lynn.gill@… macports-tickets@… "Just attempted to selfupdate MacPorts and the update fails when attempting to install version 2.0.1 of MacPorts base. The output of port -d selfupdate is below, but the relevant portion seems to involve a failure to find a working C compiler. I tried switching the compiler to both llvm-gcc42 and gcc42 (the ones from XCode) just in case the issue arose from having my default compiler set to one provided by MacPorts. In both cases, the error generated was the same. According to the debugging output, there is a log file. I searched recursively through my MacPorts install and couldn't find it. If someone tells me where it is, I'm happy to post it. I'm on Lion using XCode 4.1. {{{ % sudo port -d selfupdate ---> Updating the ports tree DEBUG: Synchronizing ports tree(s) Synchronizing local ports tree from file:///Volumes/Files/macports/build Creating port index in /Volumes/Files/macports/build Total number of ports parsed: 0 Ports successfully parsed: 0 Ports failed: 0 Up-to-date ports skipped: 1 Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/ports.tar /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs receiving file list ... done sent 36 bytes received 70 bytes 70.67 bytes/sec total size is 44920320 speedup is 423776.60 DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/ports.tar.rmd160 /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs receiving file list ... done sent 36 bytes received 77 bytes 226.00 bytes/sec total size is 512 speedup is 4.53 DEBUG: successful verification with key /Volumes/Files/macports/share/macports/macports-pubkey.pem DEBUG: /usr/bin/tar -C /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs/ports.tar Creating port index in /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs/ports Total number of ports parsed: 0 Ports successfully parsed: 0 Ports failed: 0 Up-to-date ports skipped: 8257 DEBUG: MacPorts sources location: /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs ---> Updating MacPorts base sources using rsync receiving file list ... done sent 36 bytes received 69 bytes 70.00 bytes/sec total size is 3219456 speedup is 30661.49 receiving file list ... done sent 36 bytes received 76 bytes 224.00 bytes/sec total size is 512 speedup is 4.57 DEBUG: successful verification with key /Volumes/Files/macports/share/macports/macports-pubkey.pem DEBUG: /usr/bin/tar -C /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs/tmp -xf /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs/base.tar MacPorts base version 2.0.0 installed, DEBUG: Rebuilding and reinstalling MacPorts if needed MacPorts base version 2.0.1 downloaded. ---> MacPorts base is outdated, installing new version 2.0.1 DEBUG: Permissions OK Installing new MacPorts release in /Volumes/Files/macports as root:admin; permissions 0755; Tcl-Package in /Volumes/Files/macports/Library/Tcl checking build system type... i386-apple-darwin11.0.0 checking host system type... i386-apple-darwin11.0.0 checking target system type... i386-apple-darwin11.0.0 checking MacPorts version... 2.0.1 checking for sw_vers... /usr/bin/sw_vers checking for defaults... /usr/bin/defaults checking for xcode-select... no checking Mac OS X version... 10.7 checking Xcode version... 4.1 checking for gcc... /usr/bin/cc checking whether the C compiler works... no configure: error: in `/Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs/base': configure: error: C compiler cannot create executables See `config.log' for more details shell command ""cd /Volumes/Files/macports/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/Volumes/Files/macports --with-tclpackage=/Volumes/Files/macports/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install"" returned error 77 DEBUG: Error installing new MacPorts base: shell command failed (see log for details) while executing ""macports::selfupdate [array get global_options] base_updated"" Error: /Volumes/Files/macports/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details) }}} " defect closed Normal base 2.0.1 invalid