[MacPorts] #30628: C compiler cannot create executables under Lion

MacPorts noreply at macports.org
Sat Aug 6 18:42:58 PDT 2011


#30628: C compiler cannot create executables under Lion
------------------------------------+---------------------------------------
 Reporter:  whittaker007@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:                                       
Component:  ports                   |     Version:  2.0.1                                
 Keywords:                          |        Port:                                       
------------------------------------+---------------------------------------
 I am a long time user of Macports, and when I upgraded my existing
 installation everything seemed to be working until I tried to install a
 new port and got the "C compiler cannot create executables" error. I was
 able to run selfupdate, but upgrade outdated failed with the same error.

 I decided to start from scratch, uninstalled and cleaned all my ports,
 downloaded the latest Xcode package from the Apple App Store and installed
 it, then downloaded the latest MacPorts installer for Lion from the
 website, and installed that.

 All seemed to go OK until I tried to install my first port under the new
 installation, and it fails with the above error again. Here's what I get:


 $ sudo port install -v coreutils
 Password:
 --->  Computing dependencies for coreutils
 --->  Dependencies to be installed: autoconf help2man gettext expat
 libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.12 perl5 m4
 automake gmp libtool
 --->  Configuring expat
 Error: Target org.macports.configure returned: configure failure: shell
 command failed (see log for details)
 Error: Failed to install expat
 Log for expat is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log
 Error: The following dependencies were not installed: autoconf help2man
 gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5
 perl5.12 perl5 m4 automake gmp libtool
 Error: Status 1 encountered during processing.
 To report a bug, see <http://guide.macports.org/#project.tickets>



 $ cat
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log
 version:1
 :debug:main changing euid/egid - current euid: 0 - current egid: 0
 :debug:main egid changed to: 501
 :debug:main euid changed to: 502
 :debug:main Executing org.macports.main (expat)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.archivefetch (expat)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.fetch (expat)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.checksum (expat)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.extract (expat)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:main Skipping completed org.macports.patch (expat)
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:configure configure phase started at Sun Aug  7 13:37:11 NZST 2011
 :notice:configure --->  Configuring expat
 :debug:configure Using compiler 'Mac OS X llvm-gcc 4.2'
 :debug:configure Executing org.macports.configure (expat)
 :debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2
 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch
 x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7'
 CXX='/Developer/usr/bin/llvm-g++-4.2'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/.CC_PRINT_OPTIONS'
 F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64'
 OBJC='/Developer/usr/bin/llvm-gcc-4.2' FCFLAGS='-pipe -O2 -m64'
 INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64'
 FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/Developer/usr/bin
 /llvm-gcc-4.2'
 :debug:configure Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.0.1"
 && ./configure --prefix=/opt/local --mandir=/opt/local/share/man'
 :debug:configure Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.0.1"
 && ./configure --prefix=/opt/local --mandir=/opt/local/share/man
 :info:configure checking build system type... i386-apple-darwin11.0.0
 :info:configure checking host system type... i386-apple-darwin11.0.0
 :info:configure checking for gcc... /Developer/usr/bin/llvm-gcc-4.2
 :info:configure checking for C compiler default output file name...
 configure: error: C compiler cannot create executables
 :info:configure See `config.log' for more details.
 :info:configure shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.0.1"
 && ./configure --prefix=/opt/local --mandir=/opt/local/share/man "
 returned error 77
 :error:configure Target org.macports.configure returned: configure
 failure: shell command failed (see log for details)
 :debug:configure Backtrace: configure failure: shell command failed (see
 log for details)
     while executing
 "$procedure $targetname"
 :info:configure Warning: the following items did not execute (for expat):
 org.macports.activate org.macports.configure org.macports.build
 org.macports.destroot org.macports.install
 :error:configure Failed to install expat
 :notice:configure Log for expat is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log



 Is there something I'm missing?

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


More information about the macports-tickets mailing list