[MacPorts] #35580: Lion selfupdate fails

MacPorts noreply at macports.org
Tue Aug 7 18:50:17 PDT 2012


#35580: Lion selfupdate fails
------------------------------------------------------------------------------------------------------------------------------+
 Reporter:  justindesantis@…                                                                                                  |       Owner:  macports-tickets@…                   
     Type:  defect                                                                                                            |      Status:  new                                  
 Priority:  Normal                                                                                                            |   Milestone:                                       
Component:  ports                                                                                                             |     Version:  2.1.1                                
 Keywords:  Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed  |        Port:                                       
------------------------------------------------------------------------------------------------------------------------------+
 Hi folks, on a different machine from my last ticket I'm getting the
 following error when running a selfupdate.
 Here is the debug output.

 {{{
 justin$ sudo port -d selfupdate
 DEBUG: Copying /Users/justin/Library/Preferences/com.apple.dt.Xcode.plist
 to /opt/local/var/macports/home/Library/Preferences
 DEBUG: MacPorts sources location:
 /opt/local/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 3543040  speedup is 33743.24
 receiving file list ... done

 sent 36 bytes  received 76 bytes  74.67 bytes/sec
 total size is 512  speedup is 4.57
 DEBUG: successful verification with key /opt/local/share/macports
 /macports-pubkey.pem
 DEBUG: /usr/bin/tar -C
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/tmp
 -xf
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base.tar
 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://rsync.macports.org/release/ports/
 DEBUG: /usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*'
 rsync://rsync.macports.org/release/ports/
 /opt/local/var/macports/sources/rsync.macports.org/release/ports
 receiving file list ... done

 sent 53 bytes  received 686050 bytes  196029.43 bytes/sec
 total size is 35916284  speedup is 52.35
 DEBUG: /usr/bin/rsync -rtzv --delete-after
 rsync://rsync.macports.org/release/ports/PortIndex_darwin_11_i386/PortIndex
 /opt/local/var/macports/sources/rsync.macports.org/release/ports
 receiving file list ... done

 sent 36 bytes  received 70 bytes  70.67 bytes/sec
 total size is 8683991  speedup is 81924.44
 --->  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-darwin11.4.0
 checking host system type... i386-apple-darwin11.4.0
 checking target system type... i386-apple-darwin11.4.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.7.4
 checking Xcode location... /Applications/Xcode.app/Contents/Developer
 checking Xcode version... 4.4.1
 checking for gcc... /usr/bin/cc
 checking whether the C compiler works... no
 configure: error: in
 `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base':
 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/tarballs/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
 downstairs-imac:~ justin$
 }}}

 I saw a post on usenet (I'm old school) that I should completely remove
 Xcode and reinstall it.
 If that's the solution, how do I do that?

-- 
Ticket URL: <https://trac.macports.org/ticket/35580>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list