[MacPorts] #41236: selfupdate to 2.2.1 fails: configure: error: cannot run C compiled programs.

MacPorts noreply at macports.org
Wed Nov 6 11:50:15 PST 2013


#41236: selfupdate to 2.2.1 fails: configure: error: cannot run C compiled
programs.
--------------------+--------------------------------
 Reporter:  paul@…  |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  base    |    Version:  2.2.0
 Keywords:          |       Port:
--------------------+--------------------------------
 I'm on OSX 10.9.0 (13A603) with MacPorts 2.2.0 installed, and apparently
 Xcode version 4.4.1.  Trying to selfupdate to MacPorts 2.2.1
 I run
 sudo port -v selfupdate
 and everything starts off well until we get to:

 {{{
 --->  MacPorts base is outdated, installing new version 2.2.1
 Installing new MacPorts release in /opt/local as root:admin; permissions
 0755; Tcl-Package in /Library/Tcl

 checking build system type... x86_64-apple-darwin13.0.0
 checking host system type... x86_64-apple-darwin13.0.0
 checking target system type... x86_64-apple-darwin13.0.0
 checking MacPorts version... 2.2.1
 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.9
 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... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... configure: error: in
 `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base':
 configure: error: cannot run C compiled programs.
 If you meant to cross compile, use `--host'.
 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-
 tclpackage=/Library/Tcl --with-install-user=root --with-install-
 group=admin --with-directory-mode=0755 --enable-readline && make
 SELFUPDATING=1 && make install SELFUPDATING=1
 Exit code: 1
 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
 }}}


 I would attach the config.log that's mentioned, but I looked for it and
 can't find it.  Not even sure where it would be.  Best guess is
 /opt/local/var/log/ but that log directory doesn't exist under var on my
 computer.

 I also tried changing the sources.conf file to point to
 rsync://rsync.macports.org/release/ports/ but that gave the same error.

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


More information about the macports-tickets mailing list