On 09/09/2014 22:38, Mick wrote:
On Tuesday 09 Sep 2014 20:15:09 Joseph wrote:
On 09/09/14 14:46, Todd Goodman wrote:
* Joseph <syscon...@gmail.com> [140909 14:37]:
I was installing an application gimp and all of a sudden I got an error:
[SNIP]

configure: error: in
`/var/tmp/portage/media-gfx/gimp-2.8.10-r1/work/gimp-2.8.10':
configure: error: C compiler cannot create executables
See `config.log' for more details

What does 'gcc-config -l' show?

I tried to set blindly gcc to active one: "gcc-config 1" but I get the same
error

  * gcc-config: Could not get portage CHOST!
  * gcc-config: You should verify that CHOST is set in one of these places:
  * gcc-config:  - //etc/portage/make.conf
  * gcc-config:  - active environment

It is a new installation on SSD and it is broken.
I can't proceed with gcc upgrade/setting, in fact my system is currently
broken.

You do not have an /etc/portage/make.conf file, or you have not configured the
default with the correct settings?

This is not pertinent to the matter at hand. Even if make.conf cannot be sourced, CHOST will be sourced from the profile and portage is perfectly capable of functioning.

There is no need for a user to define CHOST. At best, it is a no-op and, at worst, the user may screw up and define it in such a way that it is at odds with the profile.

The error message from gcc-config isn't particularly helpful because it falsely implies that make.conf or the "active environment" - as opposed to portage's environment - are the only valid sources.

--Kerin

Reply via email to