Opened 8 years ago

Closed 8 years ago

#50774 closed defect (invalid)

sudo port selfupdate fails

Reported by: olwe@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port:

Description

When trying to update macports with sudo port selfupdate it fails.

sudo port -v selfupdate gets the following outputs:

sudo port -v selfupdate ---> Updating MacPorts base sources using rsync receiving file list ... done

sent 36 bytes received 69 bytes 70.00 bytes/sec total size is 27013120 speedup is 257267.81 receiving file list ... done

sent 36 bytes received 76 bytes 44.80 bytes/sec total size is 512 speedup is 4.57 MacPorts base version 2.3.3 installed, MacPorts base version 2.3.4 downloaded. ---> Updating the ports tree Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar receiving file list ... done

sent 36 bytes received 70 bytes 42.40 bytes/sec total size is 63334400 speedup is 597494.34 receiving file list ... done

sent 36 bytes received 77 bytes 75.33 bytes/sec total size is 512 speedup is 4.53 receiving file list ... done

sent 36 bytes received 70 bytes 42.40 bytes/sec total size is 10708291 speedup is 101021.61 receiving file list ... done

sent 36 bytes received 77 bytes 75.33 bytes/sec total size is 512 speedup is 4.53 ---> MacPorts base is outdated, installing new version 2.3.4 Installing new MacPorts release in /opt/local as root:admin; permissions 0755

checking build system type... i386-apple-darwin14.5.0 checking host system type... i386-apple-darwin14.5.0 checking target system type... i386-apple-darwin14.5.0 checking MacPorts version... 2.3.4 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.10.5 checking Xcode location... /Applications/Xcode.app/Contents/Developer checking Xcode version... 7.2.1 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 OBJC=/usr/bin/cc ./configure --prefix=/opt/local --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1 Exit code: 77 Error: Error installing new MacPorts base: command execution failed To report a bug, follow the instructions in the guide:

http://guide.macports.org/#project.tickets

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

Change History (1)

comment:1 in reply to:  description Changed 8 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

Replying to olwe@…:

configure: error: C compiler cannot create executables See `config.log' for more details

You probably missed one of the steps (1-3) in the Installing MacPorts section on https://www.macports.org/install.php

(ie., you upgraded Xcode and forgot to do steps 2&3).

Note: See TracTickets for help on using tickets.