Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc broken after "emerge world" installs 3.3.5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Mon Jun 06, 2005 6:13 am    Post subject: gcc broken after "emerge world" installs 3.3.5 Reply with quote

It'd been about a month since my last run of emerge world (which was a bumpy process...) but everything seemed to be going just fine until gcc came up... I had no intervention at all, but now I get errors regarding "no c compiler found"... and such. here is the relevant output from "emerge gcc" The version is 3.3.5.2005.0130-r1

Code:

...
*   31_all_gcc331-pr495.patch.bz2 ...                                    [ ok ]
 *   34_all_gcc-3.3.5-ffecom_gfrt_basictype-prototype.patch.bz2 ...       [ ok ]
 *   35_all_gcc-3.3.5-no-COPYING-cross-compile.patch.bz2 ...              [ ok ]
 *   40_all_gcc33-warn-unused-result.patch.bz2 ...                        [ ok ]
 *   50_all_gcc33-coreutils-compat.patch.bz2 ...                          [ ok ]
 *   60_all_loop.patch.bz2 ...                                            [ ok ]
 *   61_all_arm-bigendian.patch.bz2 ...                                   [ ok ]
 * Done with patching
 * Applying uClibc patches ...
 *   81_all_gcc-uclibc-3.3-100-conf.patch.bz2 ...                         [ ok ]
 *   82_all_gcc-uclibc-3.3-110-conf.patch.bz2 ...                         [ ok ]
 *   83_all_gcc-uclibc-3.3-120-softfloat.patch.bz2 ...                    [ ok ]
 *   84_all_gcc-uclibc-3.3-200-code.patch.bz2 ...                         [ ok ]
 * Done with patching
 * Applying stub patch for htb ...                                        [ ok ]
 * Applying protector.dif ...                                             [ ok ]
 * Applying pro-police-docs.patch ...                                     [ ok ]
gcc-config error: Could not run/locate "gcc"
gcc-config error: Could not run/locate "gcc"
readelf: Error: 'libctest': No such file
 * Applying upstream pie patches ...
 *   00_all_gcc-3.3-pie-3.patch.bz2 ...                                   [ ok ]
 *   01_all_gcc-4.0-cvs-for-3.3.5-pic.patch.bz2 ...                       [ ok ]
 *   02_all_gcc-4.0-cvs-mips-pic.patch.bz2 ...                            [ ok ]
 *   11_all_gcc-3.3.5-rs6000-pic.patch.bz2 ...                            [ ok ]
 *   12_all_gcc-3.3.5-v8.7.6.8-sparc-pic.patch.bz2 ...                    [ ok ]
 *   31_all_gcc-4.0-cvs-incompat.patch.bz2 ...                            [ ok ]
 *   41_all_gcc-3.3.3-v8.7.1-pie-generic.patch.bz2 ...                    [ ok ]
 *   51_all_gcc-3.3.3-v8.7.5-pie-ia64.patch.bz2 ...                       [ ok ]
 *   52_all_gcc-3.3.3-v8.7.5-pie-sparc.patch.bz2 ...                      [ ok ]
 *   53_all_gcc-3.3.3-v8.7.5-pie-sparc64.patch.bz2 ...                    [ ok ]
 *   54_all_gcc-3.3.5-v8.7.1-pie-rs6000.patch.bz2 ...                     [ ok ]
 *   55_all_gcc-3.3.5-v8.7.5-pie-alpha.patch.bz2 ...                      [ ok ]
 *   56_all_gcc-3.3.5-v8.7.5-pie-arm.patch.bz2 ...                        [ ok ]
 *   57_all_gcc-3.4.0-v8.7.6.1-pie-arm.patch.bz2 ...                      [ ok ]
 *   61_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 ...               [ ok ]
 * Done with patching
 * Applying non-default pie patches ...
 *   02_all_gcc-3.3.5-v8.7.1-pie-rs6000-nondefault.patch.bz2 ...          [ ok ]
 *   03_all_gcc-3.3.5-v8.7.6.7-pie-sparc-nondefault.patch.bz2 ...         [ ok ]
 * Done with patching
 * Applying default pie patches ...
 *   01_all_gcc-3.3.5-v8.7.7-pie-generic-default.patch.bz2 ...            [ ok ]
 *   02_all_gcc-3.3.3-v8.7.1-pie-alpha-default.patch.bz2 ...              [ ok ]
 *   03_all_gcc-3.3.3-v8.7.1-pie-arm-default.patch.bz2 ...                [ ok ]
 *   04_all_gcc-3.3.3-v8.7.1-pie-ia64-default.patch.bz2 ...               [ ok ]
 *   11_all_gcc-3.3.5-v8.7.7-pie-rs6000-default.patch.bz2 ...             [ ok ]
 *   12_all_gcc-3.3.5-v8.7.7-pie-sparc-default.patch.bz2 ...              [ ok ]
 * Done with patching
 * Replacing obsolete head/tail with POSIX compliant ones
 *  - fixed contrib/test_summary
 *  - fixed boehm-gc/configure
 *  - fixed fastjar/configure
 *  - fixed gcc/configure
 *  - fixed libf2c/configure
 *  - fixed libffi/configure
 *  - fixed libiberty/configure
 *  - fixed libjava/configure
 *  - fixed libobjc/configure
 *  - fixed libstdc++-v3/configure
 *  - fixed zlib/configure
 *  - fixed ltcf-c.sh
 *  - fixed ltcf-cxx.sh
 *  - fixed ltcf-gcj.sh
 *  - fixed ltmain.sh
 * patching gcc version: 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)
 * Patching ${S}/ltmain.sh ...
 *   Applying portage-1.4.0.patch ...
 *   Applying relink-1.4.0a-GCC3.0-2.patch ...
 *   Applying sed-1.4.0.patch ...
 *   Applying tmp-1.3.5.patch ...
 * Using GNU config files from /usr/share/gnuconfig
 *   Updating config.sub                                                  [ ok ]
 *   Updating boehm-gc/config.sub                                         [ ok ]
 *   Updating gcc/config.guess                                            [ ok ]
 *   Updating config.guess                                                [ ok ]
 *   Updating boehm-gc/config.guess                                       [ ok ]
 * Applying gcc-spec-env.patch ...                                        [ ok ]
>>> Source unpacked.
 * CFLAGS=""
 * CXXFLAGS=""
 * Configuring gcc ...
 * running gcc-compiler-configure
 * configuring for GCC_LANG: c,c++,f77

 * PREFIX:          /usr
 * BINPATH:         /usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130
 * LIBPATH:         /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130
 * DATAPATH:        /usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130
 * STDCXX_INCDIR:   /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3

 * Configuring GCC with:
        --enable-version-specific-runtime-libs
        --prefix=/usr
        --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130
        --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include
        --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130
        --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/man
        --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/info
        --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3
        --host=i686-pc-linux-gnu
        --disable-altivec
        --enable-nls
        --without-included-gettext
        --with-system-zlib
        --disable-checking
        --disable-werror
        --disable-libunwind-exceptions
        --disable-multilib
        --disable-libgcj
        --enable-languages=c,c++,f77
        --enable-shared
        --enable-threads=posix
        --enable-__cxa_atexit
        --enable-clocale=gnu

*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)
Created "Makefile" in /var/tmp/portage/gcc-3.3.5.20050130-r1/work/build using "mt-frag"
gcc-config error: Could not run/locate "gcc"
*** The command 'gcc -o conftest    conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: sys-devel/gcc-3.3.5.20050130-r1 failed.
!!! Function gcc_do_configure, Line 1118, Exitcode 1
!!! failed to run configure
!!! If you need support, post the topmost build error, NOT this status message.


Is there a particuler process i should do before emerging gcc?

I found this thread https://forums.gentoo.org/viewtopic-t-321340.html but i'm getting confused somewhere along the line... if someone can step me through this i'm sure it'll fix my problem..
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Jun 06, 2005 7:08 am    Post subject: Reply with quote

hi,

what tells :
Code:
gcc-config -l
:?:

thanks
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Mon Jun 06, 2005 7:29 am    Post subject: gcc-config -l output Reply with quote

this is what i get from gcc-config -l (the letter L)

Code:
gcc-config -l
/usr/bin/gcc-config: line 1: /etc/env.d/gcc/i686-pc-linux-gnu-3.3.4: No such file or directory
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.3.4
[1] i686-pc-linux-gnu-3.3.5-20050130
[2] i686-pc-linux-gnu-3.3.5-20050130-hardened
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-20050130-hardenednopiessp
[5] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Jun 06, 2005 7:31 am    Post subject: Reply with quote

ok, that's what I expected ... then do :
Code:
gcc-config 1
(1 (one) and not little 'L')

HTH.
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Mon Jun 06, 2005 8:04 am    Post subject: That seemed to work Reply with quote

Well, after I ran gcc-config 1 (number one) it changed the compiler and told me to "source /etc/profile" so I did that and reattempted the emerge... It seems to have made it to the point of compiling properly... This will take a while before i know for sure... gcc is a long process... Thanks for your help. It's people like you that keep me from ditching linux.
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Jun 06, 2005 8:08 am    Post subject: Re: That seemed to work Reply with quote

bravo911 wrote:
Thanks for your help. It's people like you that keep me from ditching linux.


Thanks a lot and you're welcome ..

just post a message one you're sure it's (not) fixed ;)
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Jun 06, 2005 2:55 pm    Post subject: Reply with quote

Please see https://forums.gentoo.org/viewtopic-t-344970.html

Moved from Portage & Programming.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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