Upgrade coreutils failed - Leopard

Thorsten Zörner mail at thorstenzoerner.de
Wed Oct 31 16:00:52 PDT 2007


On 31.10.07, at 19:32, N_Ox wrote:

>
> Le 31 oct. 07 à 19:06, Michael Hernandez a écrit :
>
>>
>> On Oct 31, 2007, at 1:50 PM, Thorsten Zörner wrote:
>>
>>> MacBook Pro, Intel CoreDuo, 2 GHz, MacOS 10.5, MacPorts 1.520
>>>
>>>
>>> Just got my Leopard installed yesterday,
>>> checking for outdated ports... coreutils
>>> Fine so far, then this happens:
>>>
>>> Macintosh:~ thorsten$ sudo port upgrade coreutils
>>> Password:
>>> --->  Configuring coreutils
>>> Error: Target org.macports.configure returned: configure failure:  
>>> shell command " cd "/opt/local/var/macports/build/ 
>>> _opt_local_var_macports_sources_rsync 
>>> .macports.org_release_ports_sysutils_coreutils/work/coreutils-6.9"  
>>> && ./configure --prefix=/opt/local --program-prefix=g --disable- 
>>> nls " returned error 77
>>> Command output: checking build system type... i386-apple-darwin9.0.0
>>> checking host system type... i386-apple-darwin9.0.0
>>> configure: autobuild project... GNU coreutils
>>> configure: autobuild revision... 6.9
>>> configure: autobuild hostname... Macintosh.local
>>> configure: autobuild timestamp... 20071031-184539
>>> checking for a BSD-compatible install... /opt/local/bin/ginstall -c
>>> checking whether build environment is sane... yes
>>> checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
>>> checking for gawk... no
>>> checking for mawk... no
>>> checking for nawk... no
>>> checking for awk... awk
>>> checking whether make sets $(MAKE)... yes
>>> checking for style of include used by make... GNU
>>> checking for gcc... gcc
>>> checking for C compiler default output file name...
>>> configure: error: C compiler cannot create executables
>>> See `config.log' for more details.
>>>
>>> Error: Unable to upgrade port: 1
>>> Macintosh:~ thorsten$
>>>
>>> What seems to be the problem?
>>> Cheers, Thorsten.
>>>
>>> _______________________________________________
>>> macports-users mailing list
>>> macports-users at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo/macports-users
>>
>>
>> do you have any environment vars like CFLAGS set? that might be the  
>> culprit. Check the config.log to see where the gcc test is failing.
>>
>> --Mike H
>>
>
> AFAIK MacPorts build process does not inherit user environment  
> variables.
> I would rather say Thorsten didn't install Xcode, or something among  
> those lines.
>
> Could you give us the full debug output (by running sudo port -d  
> upgrade coreutils)?
>
> Regards,
> --
> Anthony Ramine.
> nox at macports.org

@Mike:
Checking my env, I have no CFLAGS set - as long as they appear as such  
when I do "env".

@Anthony:
I have XCode 2.4.1 installed, already long before installing Leopard,  
which was yesterday...

Okay, here's the full debug output as requested.
Thanks for your help!

Macintosh:~ thorsten$ sudo port -d upgrade coreutils
Password:
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/coreutils
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: coreutils 6.9_1 exists in the ports tree
DEBUG: coreutils 6.9_0 is installed
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libiconv 1.11_6 exists in the ports tree
DEBUG: libiconv 1.11_6 is installed
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: gperf is *not* installed by MacPorts
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/devel/gperf
DEBUG: Requested variant darwin is not provided by port gperf.
DEBUG: Requested variant i386 is not provided by port gperf.
DEBUG: Requested variant macosx is not provided by port gperf.
DEBUG: Searching for dependency: gperf
DEBUG: Didn't find receipt, going to depspec regex for: gperf
DEBUG: Found Dependency: path: /usr/bin filename: gperf regex: ^gperf$
DEBUG: gperf installed outside the MacPorts system
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gperf 3.0.3_0 exists in the ports tree
DEBUG: gperf 3.0.3_0 is installed
DEBUG: Not following dependencies
DEBUG: No need to upgrade! gperf 3.0.3_0 >= gperf 3.0.3_0
DEBUG: No need to upgrade! libiconv 1.11_6 >= libiconv 1.11_6
DEBUG: variants to install
DEBUG: available variants are : universal with_default_names nls  
darwin_9
DEBUG: new portvariants:
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/sysutils/coreutils
DEBUG: Requested variant darwin is not provided by port coreutils.
DEBUG: Requested variant i386 is not provided by port coreutils.
DEBUG: Requested variant macosx is not provided by port coreutils.
DEBUG: Executing variant darwin_9 provides darwin_9
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Changing to port directory: /opt/local/var/macports/sources/ 
rsync.macports.org/release/ports/textproc/libiconv
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant i386 is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Skipping completed org.macports.main (coreutils)
DEBUG: Skipping completed org.macports.fetch (coreutils)
DEBUG: Skipping completed org.macports.checksum (coreutils)
DEBUG: setting option extract.cmd to /usr/bin/bzip2
DEBUG: Skipping completed org.macports.extract (coreutils)
DEBUG: Skipping completed org.macports.patch (coreutils)
--->  Configuring coreutils
DEBUG: Executing org.macports.configure (coreutils)
DEBUG: No compiler collection selected explicitly
DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include'  
CFLAGS='-O2' ac_cv_header_sys_acl_h='no' jm_cv_func_svid_putenv='yes'  
LDFLAGS='-L/opt/local/lib'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_sysutils_coreutils/work/coreutils-6.9"  
&& ./configure --prefix=/opt/local --program-prefix=g --disable-nls'
checking build system type... i386-apple-darwin9.0.0
checking host system type... i386-apple-darwin9.0.0
configure: autobuild project... GNU coreutils
configure: autobuild revision... 6.9
configure: autobuild hostname... Macintosh.local
configure: autobuild timestamp... 20071031-235623
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Error: Target org.macports.configure returned: configure failure:  
shell command " cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_sysutils_coreutils/work/coreutils-6.9"  
&& ./configure --prefix=/opt/local --program-prefix=g --disable-nls "  
returned error 77
Command output: checking build system type... i386-apple-darwin9.0.0
checking host system type... i386-apple-darwin9.0.0
configure: autobuild project... GNU coreutils
configure: autobuild revision... 6.9
configure: autobuild hostname... Macintosh.local
configure: autobuild timestamp... 20071031-235623
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

Warning: the following items did not execute (for coreutils):  
org.macports.destroot org.macports.configure org.macports.build
DEBUG: Registry error: gperf not registered as installed.
    invoked from within
"registry_installed ${portname}"
    invoked from within
"$workername eval registry_installed \${portname}"
Error: Unable to upgrade port: 1







More information about the macports-users mailing list