Opened 9 years ago

Closed 9 years ago

#49202 closed defect (worksforme)

Error installing new MacPorts base

Reported by: maisarojas@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.4
Keywords: Cc: jchrklein@…
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

maisas-MacBook-Pro:~ maisa$ sudo port -d selfupdate
DEBUG: Copying /Users/maisa/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/base
--->  Updating MacPorts base sources using rsync
receiving file list ... done
./
deleting config.log

sent 42 bytes  received 30280 bytes  6738.22 bytes/sec
total size is 25420143  speedup is 838.34
MacPorts base version 2.3.3 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.3.4 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 813891 bytes  70777.74 bytes/sec
total size is 41893831  speedup is 51.47
DEBUG: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/ports/PortIndex_darwin_14_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/ports
receiving file list ... done

sent 36 bytes  received 70 bytes  42.40 bytes/sec
total size is 13131586  speedup is 123882.89
--->  MacPorts base is outdated, installing new version 2.3.4
DEBUG: Permissions OK
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.0.1
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/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/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
DEBUG: Error installing new MacPorts base: command execution failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
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 (3)

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

Component: portsbase
Description: modified (diff)

Could you attach the config.log, please? It may tell us why your C compiler cannot create executables.

comment:2 in reply to:  description Changed 9 years ago by jchrklein@…

I actually had the same issue. The problem was an automatic update to Xcode, which meant that I had to agree to the T&Cs again before the command line tools would work. In at terminal, type

sudo xcodebuild

Review and accept the license, and see if that fixes your problem.
Best,
Johannes

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Cc: jchrklein@… added
Resolution: worksforme
Status: newclosed

jchrklein, yes, not agreeing to the Xcode license is one possible cause of this type of error, but there are other possibilities. We won't know for sure until we see the config.log file.

maisarojas, if you would like help diagnosing this problem, please attach your config.log file and re-open this ticket.

Note: See TracTickets for help on using tickets.