Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Upgrading gcc-4.6.3 - C compiler cannot create exec
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Mon Mar 24, 2014 1:25 am    Post subject: [solved] Upgrading gcc-4.6.3 - C compiler cannot create exec Reply with quote

I've searched several topics and have also attempted to remove my CFLAG's as well as other flags i thought might cause issues but i'm still unable to move forward. Any assistance would be greatly appreciated.

Code:
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/sys-devel/gcc-4.8.2/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
 * ERROR: sys-devel/gcc-4.8.2::gentoo failed (configure phase):
 *   failed to run configure
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3784:  Called toolchain_src_configure
 *   environment, line 4801:  Called die
 * The specific snippet of code:
 *       "${S}"/configure "${confgcc[@]}" || die "failed to run configure";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.8.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.8.2::gentoo'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-build-logs.tar.bz2 in your bug report.
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.8.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.8.2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-4.8.2/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2'

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

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

 * Messages for package sys-devel/gcc-4.8.2:

 * ERROR: sys-devel/gcc-4.8.2::gentoo failed (configure phase):
 *   failed to run configure
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3784:  Called toolchain_src_configure
 *   environment, line 4801:  Called die
 * The specific snippet of code:
 *       "${S}"/configure "${confgcc[@]}" || die "failed to run configure";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.8.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.8.2::gentoo'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-build-logs.tar.bz2 in your bug report.
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.8.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.8.2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-4.8.2/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2'


gcc-4.8.2 emerge: http://pastebin.com/cF7WayK2
emerge-info: http://pastebin.com/0jN2Rsgw

While i've been tempted to just jump the gentoo ship and go elsewhere, I'd like to at least keep one system running gentoo while my other 15 are running something a bit more easier to maintain.


Last edited by apryan on Mon Mar 24, 2014 5:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13864

PostPosted: Mon Mar 24, 2014 3:00 am    Post subject: Reply with quote

Based on the output provided, we can confirm that you are unable to create executables. I suggest following the printed hint and examining config.log to see why it fails.
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Mon Mar 24, 2014 3:56 am    Post subject: Reply with quote

not much help there.
perhaps I should include the related threads which were already reviewed to no end:
https://forums.gentoo.org/viewtopic-t-27486-postdays-0-postorder-asc-start-275.html
https://forums.gentoo.org/viewtopic-t-986156.html


**** found answer in https://forums.gentoo.org/viewtopic-t-945630-start-0.html which reported a hidden mpc library was breaking it. Really though, I would have thought this sort of disaster could have been avoided especially since the original thread was opened in 2004. It's sad to see Gentoo die like it is :(
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13864

PostPosted: Tue Mar 25, 2014 1:55 am    Post subject: Reply with quote

The config.log may not have seemed helpful to you, but I strongly suspect it would have shown us exactly the problem that you eventually traced to one of the cited threads. I do not understand why you think Gentoo is dying because you managed to break your system. If you had provided more information, we might have been able to explain exactly how you broke the system so that you could avoid future problems. Many of us have had Gentoo systems that outlived their host hardware without needing a reinstall.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Tue Mar 25, 2014 8:12 pm    Post subject: Reply with quote

This is often the result of a configuration problem (eg. incorrect setting in make.conf; try the default make.conf, it might fix it), a lack of support for the executable type (eg. 32-bit or 64-bit support disabled in the kernel) or a compiler that is broken (much less common; at the very least, check that `gcc-config` is set alright); as suggested before, if the default make.conf doesn't help then config.log can easily show what is going in more detail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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