[MacPorts] #32925: Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
#32925: Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details) --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 2.0.4 Component: ports | Version: 2.0.3 Keywords: | Port: --------------------------------------+------------------------------------- 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> }}} -- Ticket URL: <https://trac.macports.org/ticket/32925> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => ryandesign@… * milestone: MacPorts 2.0.4 => * port: => expat Comment: 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Comment(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> }}} -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Comment(by macsforever2000@…): You did not attach the log as requested. You have not told us anything useful. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Comment(by alex.godbehere@…): No, i can't execute the commands that you asked me, as the second one produces the above error. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Comment(by alex.godbehere@…): Oh, my bad. I'll attach the logs. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Comment(by ryandesign@…): 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 [http://guide.macports.org/chunked/installing.macports.html#installing.macpor... building MacPorts from trunk]. Alternately, the problem might be that you haven't installed Xcode correctly, as per the [wiki:FAQ#missingxcode 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. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Comment(by dports@…): Are you using a prerelease of Xcode 4.3? -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure --------------------------------------+------------------------------------- Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: expat --------------------------------------+------------------------------------- Comment(by alex.godbehere@…): Yes, I have the Beta. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: expat | ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 beta ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: expat | ---------------------------------------+------------------------------------ -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 beta ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: expat | ---------------------------------------+------------------------------------ Comment(by alex.godbehere@…): Thanks, when I do this however, I get the error {{{ Warning: No index(es) found! Have you synced your source indexes? }}} -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 beta ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: expat | ---------------------------------------+------------------------------------ Comment(by ryandesign@…): Run "`sudo port sync`" to sync your ports and rebuild the index. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 beta ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: expat | ---------------------------------------+------------------------------------ Changes (by dkocher@…): * status: closed => reopened * resolution: invalid => Comment: There is still the same issue with Xcode 4.4 installed. {{{ xcodebuild -version Xcode 4.4 Build version 4F250 }}} -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 beta ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: expat | ---------------------------------------+------------------------------------ Comment(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 }}} -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 beta ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: Port: expat | ---------------------------------------+------------------------------------ Comment(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. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32925: expat configure failure with Xcode 4.3 beta ---------------------------------------+------------------------------------ Reporter: alex.godbehere@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: expat | ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * cc: dkocher@… (added) * status: reopened => closed * resolution: => invalid Comment: As you've already discovered, you must install (or upgrade) the command line tools after installing (or upgrading) Xcode, as we document in our [http://guide.macports.org/#installing.xcode.lion.43 installation instructions]. -- Ticket URL: <https://trac.macports.org/ticket/32925#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts