Gcc not compiling source

Anything that pertains to Portage

Moderator: Moderators

Gcc not compiling source

Postby microtechno » Wed Oct 28, 2009 12:33

Hi
I am having trouble with GCC. Not sure what I have done but for some reason the GCC that is installed wont run. I have tried to update it with entropy and that 'worked' but then after updating the compiler it still hasnt worked. Tried a few things and looked online and nothing seems to happen.
what GCC i have installed
Code: Select all
gcc-config -l
 [1] x86_64-pc-linux-gnu-4.2.4
 [2] x86_64-pc-linux-gnu-4.3.2 *

I have tried with 4.2.4, but that throws an error about not having a $PATH, and 4.3.2 gives me an error about not being able to compile the code 'configure: error: C compiler cannot create executables'
I can include the config.log, havent to keep the post small.
Microtechno

This is what is thrown up when i tried to emerge pidgin-facebookchat
Code: Select all
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/dev-libs/json-glib-0.7.6/work/json-glib-0.7.6':
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/json-glib-0.7.6/work/json-glib-0.7.6/config.log
 * ERROR: dev-libs/json-glib-0.7.6 failed:
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   49:  Called src_configure
 *   environment, line 2902:  Called gnome2_src_configure
 *   environment, line 2266:  Called econf '--disable-gtk-doc'
 *     ebuild.sh, line  545:  Called die
 * The specific snippet of code:
 *            die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =dev-libs/json-glib-0.7.6',
 * the complete build log and the output of 'emerge -pqv =dev-libs/json-glib-0.7.6'.
 * The complete build log is located at '/var/lib/entropy/logs/dev-libs:json-glib-0.7.6:20091028-112206.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/json-glib-0.7.6/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/json-glib-0.7.6/work/json-glib-0.7.6'

>>> Failed to emerge dev-libs/json-glib-0.7.6, Log file:

>>>  '/var/lib/entropy/logs/dev-libs:json-glib-0.7.6:20091028-112206.log'
microtechno
Baby Hen
 
Posts: 1
Joined: Wed Oct 28, 2009 12:27

Re: Gcc not compiling source

Postby albfneto » Wed Oct 28, 2009 13:10

First, you may update your GCC, using portageitself or using equo, thai is easier.
the current versions are series of GCC 4...

For the errors that cannot make executables, may be the bin utils configuration.
see:

http://forum.sabayonlinux.org/viewtopic.php?f=59&t=18208&p=104133&hilit=binutils#p104133
Image
ALBERTO FEDERMAN NETO
albfneto
albfneto@fcfrp.usp.br
Favorite Distros: Sabayon, Gentoo, Mandriva and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1297
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests

cron