Opened 11 years ago

Closed 11 years ago

#37354 closed defect (invalid)

expat: C compiler cannot create executables

Reported by: mr_pogey_bait@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: expat

Description (last modified by ci42)

I'm trying to install wine but am getting this error:

sudo port install wine
--->  Configuring expat
Error: org.macports.configure for port expat returned: configure failure: command execution failed
Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade expat failed

I have done a self-update for macports, I have cleaned expat and installed it with no issue, but every time I try to install wine I get the error. Here is my log:

version:1
:debug:main expat has no conflicts
:debug:main Executing org.macports.main (expat)
:debug:main Skipping completed org.macports.archivefetch (expat)
:debug:main Skipping completed org.macports.fetch (expat)
:debug:main Skipping completed org.macports.checksum (expat)
:debug:main Skipping completed org.macports.extract (expat)
:debug:main Skipping completed org.macports.patch (expat)
:debug:configure configure phase started at Thu Dec 20 08:14:13 CST 2012
:notice:configure --->  Configuring expat
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing org.macports.configure (expat)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch i386 -arch ppc' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386 -arch ppc' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' CXX='/usr/bin/clang++' 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='-O2' LDFLAGS='-L/opt/local/lib -arch i386 -arch ppc' OBJC='/usr/bin/clang' FCFLAGS='-O2' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch i386 -arch ppc' FFLAGS='-O2' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
: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.1.0" && ./configure --prefix=/opt/local --disable-dependency-tracking'
: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.1.0" && ./configure --prefix=/opt/local --disable-dependency-tracking
:info:configure configure: WARNING: unrecognized options: --disable-dependency-tracking
:info:configure checking build system type... x86_64-apple-darwin11.4.2
:info:configure checking host system type... x86_64-apple-darwin11.4.2
:info:configure checking how to print strings... printf
:info:configure checking for gcc... /usr/bin/clang
:info:configure checking whether the C compiler works... no
:info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0':
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local --disable-dependency-tracking
:info:configure Exit code: 77
:error:configure org.macports.configure for port expat returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for expat: org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log

Any help would be appreciated. Thanks.

Attachments (4)

main.log (3.2 KB) - added by mr_pogey_bait@… 11 years ago.
main.log
main.2.log (3.2 KB) - added by mr_pogey_bait@… 11 years ago.
2nd attempt
main.3.log (5.7 KB) - added by mr_pogey_bait@… 11 years ago.
3rd attempt
config.log (6.5 KB) - added by mr_pogey_bait@… 11 years ago.
config log after 3rd attempt

Download all attachments as: .zip

Change History (14)

Changed 11 years ago by mr_pogey_bait@…

Attachment: main.log added

main.log

comment:1 Changed 11 years ago by ci42

Cc: jwa@… added
Description: modified (diff)
Keywords: expat removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: wine added
Summary: Error: org.macports.configure for port expat returned: configure failure: command execution failedwine: install fails

This was not a clean attempt. Please try again and attach the log file if it fails:

$ sudo port -d install wine

In the future please remember to use WikiFormatting, fill in the port field and to Cc the maintainer.

Changed 11 years ago by mr_pogey_bait@…

Attachment: main.2.log added

2nd attempt

comment:2 Changed 11 years ago by mr_pogey_bait@…

Still failing:

Code highlighting:

  sudo port -d install wine
Password:
DEBUG: Copying /Users/mr_pogey_bait/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/wine
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
DEBUG: only one arch supported, so not adding the default universal variant
DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/wine/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/wine/work
DEBUG: Starting logging for wine
DEBUG: enforcing +universal upgrade for expat
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: expat 2.1.0_0 exists in the ports tree
DEBUG: expat 2.1.0_0  is the latest installed
DEBUG: expat 2.1.0_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: universal +
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Executing variant universal provides universal
DEBUG: variant override ... upgrading!
DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat/work
DEBUG: Starting logging for expat
DEBUG: expat has no conflicts
DEBUG: Executing org.macports.main (expat)
DEBUG: Skipping completed org.macports.archivefetch (expat)
DEBUG: Skipping completed org.macports.fetch (expat)
DEBUG: Skipping completed org.macports.checksum (expat)
DEBUG: Skipping completed org.macports.extract (expat)
DEBUG: Skipping completed org.macports.patch (expat)
DEBUG: configure phase started at Thu Dec 20 09:25:13 CST 2012
--->  Configuring expat
DEBUG: Using compiler 'Mac OS X clang'
DEBUG: Executing org.macports.configure (expat)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch i386 -arch ppc' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386 -arch ppc' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' CXX='/usr/bin/clang++' 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='-O2' LDFLAGS='-L/opt/local/lib -arch i386 -arch ppc' OBJC='/usr/bin/clang' FCFLAGS='-O2' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch i386 -arch ppc' FFLAGS='-O2' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local --disable-dependency-tracking'
DEBUG: 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.1.0" && ./configure --prefix=/opt/local --disable-dependency-tracking 
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... x86_64-apple-darwin11.4.2
checking how to print strings... printf
checking for gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local --disable-dependency-tracking 
Exit code: 77
Error: org.macports.configure for port expat returned: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
Warning: targets not executed for expat: org.macports.install org.macports.configure org.macports.build org.macports.destroot
Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log
DEBUG: couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
Error: Unable to upgrade port: 1
DEBUG: upgrade expat failed
    while executing
"macports::_upgrade_mport_deps $mport $target"
    (procedure "mportexec" line 39)
    invoked from within
"mportexec $workername $target"
Error: Unable to execute port: upgrade expat failed

comment:3 in reply to:  2 Changed 11 years ago by ci42

Replying to mr_pogey_bait@…:

Still failing:

Sorry, the instructions in my first comment were incomplete. You'll need to clean up first:

$ sudo port clean wine
$ sudo port clean expat
$ sudo port -d install wine

Please try again and attach the log file if it fails.

Changed 11 years ago by mr_pogey_bait@…

Attachment: main.3.log added

3rd attempt

comment:4 Changed 11 years ago by mr_pogey_bait@…

Same story. Still failing.

sudo port install wine
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.1.0_0+universal.darwin_11.i386-ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/expat
--->  Attempting to fetch expat-2.1.0_0+universal.darwin_11.i386-ppc.tbz2 from http://lil.fr.packages.macports.org/expat
--->  Attempting to fetch expat-2.1.0_0+universal.darwin_11.i386-ppc.tbz2 from http://packages.macports.org/expat
--->  Fetching distfiles for expat
--->  Verifying checksum(s) for expat
--->  Extracting expat
--->  Configuring expat
Error: org.macports.configure for port expat returned: configure failure: command execution failed
Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade expat failed

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

Cc: jwa@… removed
Port: expat added; wine removed
Summary: wine: install failsexpat: C compiler cannot create executables
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details

This usually means Xcode command line tools are not installed properly. Consult our installation instructions. If you believe they are installed properly, please attach the config.log.

Changed 11 years ago by mr_pogey_bait@…

Attachment: config.log added

config log after 3rd attempt

comment:6 Changed 11 years ago by mr_pogey_bait@…

I attached my config log. I used the xcode UI under preferences to install the command line tools. I'm not saying XCode didn't goof things up but the install looked as if it went well.

comment:7 in reply to:  6 Changed 11 years ago by mr_pogey_bait@…

Replying to mr_pogey_bait@…:

I attached my config log. I used the xcode UI under preferences to install the command line tools. I'm not saying XCode didn't goof things up but the install looked as if it went well.

By the way, I was referring to when I installed XCode 4.5.2 about a week ago, not just now.

comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

The config.log says:

configure:3215: /usr/bin/clang -O2 -arch i386 -arch ppc -I/opt/local/include -L/opt/local/lib -arch i386 -arch ppc conftest.c  >&5
clang: warning: not using the clang compiler for the 'powerpc' architecture

This probably means that at some point you upgraded from Leopard or earlier and haven't updated your macports.conf file to match. In particular your universal_archs setting is incorrect. See wiki:Migration for all the things you need to do when you upgrade to a new version of OS X.

comment:9 Changed 11 years ago by mr_pogey_bait@…

Thank you. That got it. I changed my macports.conf file's universal_archs to: x86_64 i386.

Users of 10.5 or earlier should use 'ppc i386'

comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Great! Glad we got it figured out.

Note: See TracTickets for help on using tickets.