Opened 12 years ago

Closed 12 years ago

#35580 closed defect (invalid)

Lion selfupdate fails

Reported by: justindesantis@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.1
Keywords: Cc:
Port:

Description

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?

Attachments (1)

Screen Shot 2012-08-07 at 10.13.50 PM.jpg (61.5 KB) - added by justindesantis@… 12 years ago.
Screen shot of Xcode Preferences Menu

Download all attachments as: .zip

Change History (4)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Keywords: Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed removed

"C compiler cannot create executables" usually means Xcode is not installed properly. Ensure you've used xcode-select to select your Xcode installation, and also that you've installed the command line tools, from within Xcode's preferences window's downloads section. Consult MacPorts documentation for further information.

Changed 12 years ago by justindesantis@…

Screen shot of Xcode Preferences Menu

comment:2 in reply to:  1 Changed 12 years ago by justindesantis@…

Replying to ryandesign@…:

"C compiler cannot create executables" usually means Xcode is not installed properly. Ensure you've used xcode-select to select your Xcode installation, and also that you've installed the command line tools, from within Xcode's preferences window's downloads section. Consult MacPorts documentation for further information.

BINGO! That was it! Thanks! selfupdate ran, and now 'upgrade outdated' is running. I'll run the 'uninstall inactive' as well. This will probably take a while on such an old machine! (Late 2006 17" C2D iMac.)

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.