Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc compiler problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lightning
n00b
n00b


Joined: 14 Nov 2007
Posts: 65

PostPosted: Wed Jun 24, 2009 7:01 pm    Post subject: gcc compiler problem Reply with quote

Since I have performed emerge --deplean, I have problem with compiling any package. I get following error, for every attempt to use portage.

Code:
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
 *
 * ERROR: sys-devel/gcc-4.3.2-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4818:  Called toolchain_src_compile
 *             environment, line 5344:  Called gcc_src_compile
 *             environment, line 3068:  Called gcc_do_configure
 *             environment, line 2782:  Called die
 * The specific snippet of code:
 *       "${S}"/configure "$@" || die "failed to run configure";
 *  The die message:
 *   failed to run configure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'.
 *

>>> Failed to emerge sys-devel/gcc-4.3.2-r3, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'

 * Messages for package sys-devel/gcc-4.3.2-r3:

 *
 * ERROR: sys-devel/gcc-4.3.2-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4818:  Called toolchain_src_compile
 *             environment, line 5344:  Called gcc_src_compile
 *             environment, line 3068:  Called gcc_do_configure
 *             environment, line 2782:  Called die
 * The specific snippet of code:
 *       "${S}"/configure "$@" || die "failed to run configure";
 *  The die message:
 *   failed to run configure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'.
 *

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.



When tried to compile menuconfig:

Code:
bow linux-2.6.29-gentoo-r5 # make menuconfig
  HOSTCC  scripts/basic/fixdep
gcc-config: error: could not run/locate 'gcc'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


Any ideas? revdep-rebuild says:
Code:
bow linux-2.6.29-gentoo-r5 # revdep-rebuild
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Found existing 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Found existing 2_ldpath.rr.
 * Checking dynamic linking consistency
 * Found existing 3_broken.rr.
 * Assigning files to packages
 * Found existing 4_raw.rr
 * Cleaning list of packages to rebuild
 * Found existing 4_pkgs.rr
 * Assigning packages to ebuilds
 * Found existing 4_ebuilds.rr
 * Evaluating package order
 *
 * Portage could not find any version of the following packages it could build:
 *  media-plugins/gmpc-serverstats:0
 *
 * (Perhaps they are masked, blocked, or removed from portage.)
 * Try to emerge them manually.
 *
 * Warning: Portage cannot rebuild any of the necessary packages.


I cannot recompile gcc from portage as the compiler doesn't work properly...
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 24, 2009 7:37 pm    Post subject: Reply with quote

See GF20: C compiler cannot create executables and the threads linked from there.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Thu Jun 25, 2009 9:29 am    Post subject: Reply with quote

Or see if you have emerged binutils with "gold" useflag. If you have, the linker does not know any special LDFLAGS, and every configure will fail.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum