selfupdate fails

Joshua Root jmr at macports.org
Thu Jun 17 12:29:34 PDT 2010


On 2010-6-18 05:14 , Ryan Schmidt wrote:
> 
> On Jun 17, 2010, at 13:58, Marko Käning wrote:
> 
>>> Well, can your C compiler create executables? Is Xcode properly installed? Check the config.log for more details!
>>
>> up to now i never had problems with my macports and Xcode installation…
>>
>> config.log says this:
>> ---
>> configure:3002: checking for gcc
>> configure:3018: found /opt/local/bin/no_default_gcc/gcc
>> configure:3029: result: gcc
>> configure:3258: checking for C compiler version
>> configure:3267: gcc --version >&5
>> gcc --version
>> gcc: Error: You should be using ${configure.cc}
>> See http://trac.macports.org/wiki/UsingTheRightCompiler
> 
> [snip]
> 
>> UsingTheRightCompiler rings a bell! :) You hinted that out to me when I introduced the makeicns port.
>> But I didn't expect to see a message like this when I do an upgrade to 1.9.0…
>>
>> I wonder how to proceed from here.
> 
> You made the changes described in UsingTheRightCompiler to discover when ports are not using the configure.cc etc. variables. You have now discovered that MacPorts itself does not use configure.cc when selfupdating. See:
> 
> http://trac.macports.org/ticket/23095
> 
> That ticket says this was supposed to have been fixed.... If it's not, the ticket should be re-opened.
> 
> Until it's fixed, you will need to undo the changes described in UsingTheRightCompiler in order to proceed. (I generally just edit the binpath and change /opt/local/bin/no_default_gcc by one character, e.g. change it to /opt/local/bin/no_default_gccx (a path that doesn't exist) so that when I later want to re-enable it again I just have to change one character to do so.

The base configure script removes $prefix from its PATH. When it's
running from within MacPorts, 'gcc' *is* the right compiler for it to
use, so #23095 is a complete non-issue unless you've messed with
extra_env (unsupported) or actually changed what /usr/bin/gcc points to
(also unsupported).

- Josh


More information about the macports-users mailing list