Opened 13 years ago

Closed 12 years ago

#31619 closed defect (worksforme)

selfupdate fails on 10.6.8 + XCode 4.2

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

Description

Was running 1.9.2.

monster:~ root# port -v selfupdate
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
receiving file list ... done
./

sent 59 bytes  received 540596 bytes  360436.67 bytes/sec
total size is 30279260  speedup is 56.00
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/ports

Total number of ports parsed:	0 
Ports successfully parsed:	0 
Ports failed:			0 
Up-to-date ports skipped:	8164

--->  Updating MacPorts base sources using rsync
receiving file list ... done
./
deleting config.log

sent 42 bytes  received 6819 bytes  4574.00 bytes/sec
total size is 2966591  speedup is 432.38
MacPorts base version 1.9.2 installed,
MacPorts base version 2.0.3 downloaded.
--->  MacPorts base is outdated, installing new version 2.0.3
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking MacPorts version... 2.0.3
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.6.8
checking Xcode location... /Developer
checking Xcode version... 4.2
checking for gcc... /usr/bin/gcc-4.2
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
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && CC=/usr/bin/gcc-4.2 ./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" returned error 77
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)
monster:~ root# /usr/bin/gcc-4.2
bash: /usr/bin/gcc-4.2: No such file or directory

Change History (5)

comment:1 Changed 13 years ago by macports@…

This fixed it.

sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

I'm on SL 10.6.8 and XCode 4.2, 2011 i7 MBP

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase

As I told you in the other ticket, don't make such a symlink. Please delete the symlink again.

What does the config.log say?

It is unusual that it decided to use /usr/bin/gcc-4.2 as the compiler, if that did not exist; indeed, it is not expected for any gcc to exist in Xcode 4.2 anymore. Apple now only ships llvm-gcc-4.2 and clang.

comment:3 Changed 13 years ago by macports@…

Well I'm not in a position to say now, having since rerun it with the hack. Are you talking about sources/rsync.macports.org/release/base/config.log? If so its been nuked by the successful update. You want me to uninstall it and have another go?

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

You could remove the symlink, then force MacPorts to try selfupdate again. "sudo port -f selfupdate". If it fails then you can look at the config.log.

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

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