Opened 13 years ago

Closed 12 years ago

#32925 closed defect (invalid)

expat configure failure with Xcode 4.3 beta

Reported by: alex.godbehere@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: dkocher@…
Port: expat

Description

I'm trying to install dnsmasq to use my PC as a siri server. When I execute the command: sudo port install dnsmasq I get the following error.

--->  Computing dependencies for dnsmasq
--->  Dependencies to be installed: xz gettext expat libiconv gperf ncurses ncursesw
--->  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_tarballs_ports_textproc_expat/expat/main.log
Error: The following dependencies were not installed: xz gettext expat libiconv gperf ncurses ncursesw
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (2)

main.log (7.1 KB) - added by alex.godbehere@… 13 years ago.
Log
main.2.log (3.6 KB) - added by alex.godbehere@… 13 years ago.
Expat Log

Download all attachments as: .zip

Change History (18)

Changed 13 years ago by alex.godbehere@…

Attachment: main.log added

Log

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Milestone: MacPorts 2.0.4
Owner: changed from macports-tickets@… to ryandesign@…
Port: expat added
Summary: Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)expat configure failure

The log you attached was not complete. Please run the following and attach the new log if it fails.

sudo port clean expat
sudo port install expat

comment:2 Changed 13 years ago by alex.godbehere@…

When I run install expat, I get

--->  Fetching archive for expat
--->  Attempting to fetch expat-2.0.1_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/expat
--->  Fetching expat
--->  Verifying checksum(s) for expat
--->  Extracting expat
--->  Configuring expat
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for expat is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

comment:3 Changed 13 years ago by mf2k (Frank Schima)

You did not attach the log as requested. You have not told us anything useful.

comment:4 Changed 13 years ago by alex.godbehere@…

No, i can't execute the commands that you asked me, as the second one produces the above error.

comment:5 Changed 13 years ago by alex.godbehere@…

Oh, my bad. I'll attach the logs.

Changed 13 years ago by alex.godbehere@…

Attachment: main.2.log added

Expat Log

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

Ok, the log says:

:info:configure checking for gcc... /Applications/Xcode.app/Contents/Developer/usr/bin/clang

I have not seen compilers installed in this location before, but perhaps that's where Xcode downloaded from the Mac App Store is putting it these days. What version of Xcode is this, and how did you install it?

:info:configure checking for C compiler default output file name... configure: error: C compiler cannot create executables

MacPorts may be having trouble using clang from this (up to now?) unusual location. This may be what r88540 / r88541 were supposed to fix. If so, you'll need a newer version of MacPorts than 2.0.3; since we haven't released a newer version yet, you could try building MacPorts from trunk. Alternately, the problem might be that you haven't installed Xcode correctly, as per the FAQ entry for this error message.

:info:configure See `config.log' for more details.

This file may contain additional insight; you could attach it and we could have a look.

comment:7 Changed 13 years ago by drkp (Dan Ports)

Are you using a prerelease of Xcode 4.3?

comment:8 Changed 13 years ago by alex.godbehere@…

Yes, I have the Beta.

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

Resolution: invalid
Status: newclosed
Summary: expat configure failureexpat configure failure with Xcode 4.3

Ok, then this is solved by the aforementioned fix, and you need to build MacPorts from trunk. By the time Xcode 4.3 is released hopefully we will have a new release of MacPorts incorporating this fix. In general we don't support the use of pre-release versions of Xcode or OS X with MacPorts.

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

Summary: expat configure failure with Xcode 4.3expat configure failure with Xcode 4.3 beta

comment:11 Changed 13 years ago by alex.godbehere@…

Thanks, when I do this however, I get the error

Warning: No index(es) found! Have you synced your source indexes?

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

Run "sudo port sync" to sync your ports and rebuild the index.

comment:13 Changed 12 years ago by dkocher@…

Resolution: invalid
Status: closedreopened

There is still the same issue with Xcode 4.4 installed.

xcodebuild -version
Xcode 4.4
Build version 4F250

comment:14 Changed 12 years ago by dkocher@…

Latest log file

version:1
:warn:main The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
:warn:main See http://guide.macports.org/chunked/installing.xcode.html for more information.
:debug:main expat has no conflicts
:debug:main Executing org.macports.main (expat)
:debug:archivefetch archivefetch phase started at Thu Jul 26 11:10:50 CEST 2012
:msg:archivefetch --->  Fetching archive for expat
:debug:archivefetch Executing org.macports.archivefetch (expat)
:info:archivefetch --->  expat-2.1.0_0.darwin_12.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch expat-2.1.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/expat
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:debug:fetch fetch phase started at Thu Jul 26 11:10:51 CEST 2012
:notice:fetch --->  Fetching distfiles for expat
:debug:fetch Executing org.macports.fetch (expat)
:debug:checksum checksum phase started at Thu Jul 26 11:10:51 CEST 2012
:notice:checksum --->  Verifying checksum(s) for expat
:debug:checksum Executing org.macports.checksum (expat)
:info:checksum --->  Checksumming expat-2.1.0.tar.gz
:debug:checksum Correct (rmd160) checksum for expat-2.1.0.tar.gz
:debug:checksum Correct (sha256) checksum for expat-2.1.0.tar.gz
:debug:extract extract phase started at Thu Jul 26 11:10:51 CEST 2012
:notice:extract --->  Extracting expat
:debug:extract Executing org.macports.extract (expat)
:info:extract --->  Extracting expat-2.1.0.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/expat/expat-2.1.0.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' 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' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/expat/expat-2.1.0.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/expat/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/expat/expat-2.1.0.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:debug:patch patch phase started at Thu Jul 26 11:10:51 CEST 2012
:debug:patch Executing org.macports.patch (expat)
:debug:configure configure phase started at Thu Jul 26 11:10:51 CEST 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 x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' CXX='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC_PRINT_OPTIONS='YES' CC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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'
: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 
:info:configure checking build system type... x86_64-apple-darwin12.0.0
:info:configure checking host system type... x86_64-apple-darwin12.0.0
:info:configure checking how to print strings... printf
:info:configure checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
:info:configure checking whether the C compiler works... yes
:info:configure checking for C compiler default output file name... a.out
:info:configure checking for suffix of executables... 
:info:configure checking whether we are cross compiling... 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: cannot run C compiled programs.
:info:configure If you meant to cross compile, use `--host'.
: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 
:info:configure Exit code: 1
: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.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
: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

comment:15 Changed 12 years ago by dkocher@…

As per the warning in the log file, reinstalling the Command Line Tools after upgrading XCode (from XCode → Preferences → Downloads → Components will fix this.

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

Cc: dkocher@… added
Resolution: invalid
Status: reopenedclosed

As you've already discovered, you must install (or upgrade) the command line tools after installing (or upgrading) Xcode, as we document in our installation instructions.

Note: See TracTickets for help on using tickets.