Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78154 - How to re-install gcc and gcc-config?
Summary: How to re-install gcc and gcc-config?
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-15 17:27 UTC by Jairo O. Pineros
Modified: 2005-01-15 20:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jairo O. Pineros 2005-01-15 17:27:59 UTC
I was having trouble compiling gtk+, after trying many things i emerge -C gcc gcc-config so i could re-install them, but it is not working.
 emerge -uvD gcc-config >> scr
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
readelf: Error: 'libctest': No such file
QA Notice: USE Flag 'altivec' not in IUSE for sys-devel/gcc-3.4.3-r1
*** 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.)
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
*** The command 'gcc -o conftest       conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: sys-devel/gcc-3.4.3-r1 failed.
!!! Function gcc_do_configure, Line 954, Exitcode 1
!!! failed to run configure
!!! If you need support, post the topmost build error, NOT this status message.
cat scr
Calculating dependencies  >>> Unpacking source...
>>> Unpacking gcc-3.4.3.tar.bz2 to /var/tmp/portage/gcc-3.4.3-r1/work
 * Applying gcc-3.4.3-branch-update-20041125.patch.bz2 ...                [ ok ]
>>> Unpacking gcc-3.4.3-patches-1.1.tar.bz2 to /var/tmp/portage/gcc-3.4.3-r1/wor
k
>>> Unpacking protector-3.4.3-0.tar.gz to /var/tmp/portage/gcc-3.4.3-r1/work/gcc
-3.4.3
>>> Unpacking gcc-3.4.3-piepatches-v8.7.7.tar.bz2 to /var/tmp/portage/gcc-3.4.3-
r1/work
 * Applying various patches (bugfixes/updates) ...
 *   02_all_gcc34-ice-hack.patch.bz2 ...                                  [ ok ]
 *   03_all_gcc34-ppc64-m32-m64-multilib-only.patch.bz2 ...               [ ok ]
 *   04_all_gcc34-java-nomulti.patch.bz2 ...                              [ ok ]
 *   05_all_gcc34-ia64-libunwind.patch.bz2 ...                            [ ok ]
 *   06_all_gcc34-ppc64-pr17751.patch.bz2 ...                             [ ok ]
 *   07_all_gcc34-gnuc-rh-release.patch.bz2 ...                           [ ok ]
 *   08_all_gcc34-chk.patch.bz2 ...                                       [ ok ]
 *   09_all_gcc34-pr18282.patch.bz2 ...                                   [ ok ]
 *   10_all_gcc34-cc1-non-existent-ice.patch.bz2 ...                      [ ok ]
 *   11_all_gcc34-ia64-sibcall-unw.patch.bz2 ...                          [ ok ]
 *   12_all_gcc34-strict_low_part.patch.bz2 ...                           [ ok ]
 *   20_all_gcc34-visibility1.patch.bz2 ...                               [ ok ]
 *   21_all_gcc34-visibility2-20041025.patch.bz2 ...                      [ ok ]
 *   22_all_gcc34-visibility3.patch.bz2 ...                               [ ok ]
 *   30_all_gcc34-arm-ldm-peephole.patch.bz2 ...                          [ ok ]
 *   31_all_gcc34-arm-ldm.patch.bz2 ...                                   [ ok ]
 *   32_all_sdk-libstdc++-includes.patch.bz2 ...                          [ ok ]
 *   33_all_pr15068-fix.patch.bz2 ...                                     [ ok ]
 *   34_all_arm-bigendian.patch.bz2 ...                                   [ ok ]
 *   50_all_gcc-3.4.0-posix-1.patch.bz2 ...                               [ ok ]
 *   51_all_gcc-3.4-libiberty-pic.patch.bz2 ...                           [ ok ]
 *   53_all_c-decl-rename-builtin.patch.bz2 ...                           [ ok ]
 *   90_all_uclibc-conf.patch.bz2 ...                                     [ ok ]
 *   91_all_uclibc-locale.patch.bz2 ...                                   [ ok ]
 * Done with patching
 * Applying gcc_3_4_3.dif ...                                             [ ok ]
 * Applying various patches (bugfixes/updates) ...
 *   00_all_gcc-4.0-cvs-incompat.patch.bz2 ...                            [ ok ]
 *   00_all_gcc-4.0-cvs-mips-pic-for-3.4.3.patch.bz2 ...                  [ ok ]
 *   00_all_gcc-4.0-cvs-pic.patch.bz2 ...                                 [ ok ]
 *   00_all_gcc-4.0-cvs-start_endfile-for-3.4.3.patch.bz2 ...             [ ok ]
 *   03_all_gcc-3.4.0-v8.7.6.1-pie-arm.patch.bz2 ...                      [ ok ]
 *   04_all_gcc-3.4.0-v8.7.6.1-pie-arm-uclibc.patch.bz2 ...               [ ok ]
 * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   02_all_gcc-3.4.3-v8.7.1-pie-rs6000-nondefault.patch.bz2 ...          [ ok ]
 *   02_all_gcc-3.4.3-v8.7.6.7-pie-sparc-nondefault.patch.bz2 ...         [ ok ]
 * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   00_all_gcc-3.4.3-v8.7.6.7-incompat-default.patch.bz2 ...             [ ok ]
 *   01_all_gcc-3.4.3-v8.7.7-pie-generic-default.patch.bz2 ...            [ ok ]
 *   02_all_gcc-3.4.3-v8.7.6.7-pie-alpha-default.patch.bz2 ...            [ ok ]
 *   02_all_gcc-3.4.3-v8.7.6.7-pie-arm-default.patch.bz2 ...              [ ok ]
 *   02_all_gcc-3.4.3-v8.7.6.7-pie-ia64-default.patch.bz2 ...             [ ok ]
 *   02_all_gcc-3.4.3-v8.7.6.7-pie-rs6000-default.patch.bz2 ...           [ ok ]
 *   02_all_gcc-3.4.3-v8.7.6.7-pie-sparc-default.patch.bz2 ...            [ ok ]
 * Done with patching
 * patching gcc version: 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7
)
 * Patching ${S}/ltmain.sh ...
 *   Applying portage-1.4.1.patch ...
 *   Applying relink-1.4.0a-GCC3.0-2.patch ...
 *   Applying sed-1.4.3.patch ...
 *   Applying tmp-1.3.5.patch ...
 * Using GNU config files from /usr/share/libtool
 *  Updating config.sub                                                   [ ok ]
 *  Updating boehm-gc/config.sub                                          [ ok ]
 *  Updating libjava/libltdl/config.sub                                   [ ok ]
 *  Updating config.guess                                                 [ ok ]
 *  Updating boehm-gc/config.guess                                        [ ok ]
 *  Updating libjava/libltdl/config.guess                                 [ ok ]
 * Applying gcc34-reiser4-fix.patch ...                                   [ ok ]
 * Applying gcc-spec-env.patch ...                                        [ ok ]
 * Applying 810-arm-bigendian-uclibc.patch ...                            [ ok ]
 * Applying gcc34-m32-no-sse2.patch ...                                   [ ok ]
 * Applying gcc34-fix-sse2_pinsrw.patch ...                               [ ok ]
 * Applying gcc-3.4.3-cross-compile.patch ...                             [ ok ]
>>> Source unpacked.
 * -mcpu is deprecated on your arch^G^G^G
 * CFLAGS="   "
 * CXXFLAGS="   "
 * Configuring gcc ...
 * running gcc-compiler-configure
 * The f95 language is not supported by this release of gcc
 * configuring for GCC_LANG: c,c++,f77

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

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

creating cache ./config.cache
checking host system type... i386-pc-linux-gnu
checking target system type... i386-pc-linux-gnu
checking build system type... i386-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
 ...done!
>>> emerge (1 of 2) sys-devel/gcc-3.4.3-r1 to /
>>> md5 src_uri ;-) gcc-3.4.3.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.3-branch-update-20041125.patch.bz2
>>> md5 src_uri ;-) protector-3.4.3-0.tar.gz
>>> md5 src_uri ;-) gcc-3.4.3-manpages.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.3-patches-1.1.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.3-piepatches-v8.7.7.tar.bz2

Reproducible: Always
Steps to Reproduce:
1.emerge -C gcc gcc-config
2.emerge -uvD gcc gcc-config
3.

Actual Results:  
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
readelf: Error: 'libctest': No such file
QA Notice: USE Flag 'altivec' not in IUSE for sys-devel/gcc-3.4.3-r1
*** 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.)
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
sh: /usr/bin/gcc-config: No such file or directory
gcc-config error: Could not get compiler binary path: No such file or directory
*** The command 'gcc -o conftest       conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

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




IBM Thinkpad T23

emerge info
Portage 2.0.51-r12 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.9-gentoo i686)
=================================================================
System uname: 2.6.9-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 15 2004, 09:21:42)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.6.3, 1.4_p6, 1.9.4, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=pentium3 -fomit-frame-pointer -fPIC -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium3 -fomit-frame-pointer -fPIC -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://cudlug.cudenver.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd encode esd f77
fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib
ipv6 jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl
oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga
tcpd tiff truetype truetype-fonts type1-fonts x86 xml2 xmms xv zlib"
Unset:  LDFLAGS, PORTDIR_OVERLAY
Comment 1 Jairo O. Pineros 2005-01-15 17:37:31 UTC
version 2.6.9-gentoo

Comment 2 Scott Taylor (RETIRED) gentoo-dev 2005-01-15 20:32:24 UTC
you don't need to unmerge a package in order to reinstall it. the emerge process
builds everything in a separate location, tests it, then installs it over the
currently-installed version. The warning message is quite accurate in this case:

!!! Trying to unmerge package(s) in system profile. 'sys-devel/gcc'
!!! This could be damaging to your system.

Its not completely hopeless for you. From a running system (or boot off the
livecd and unpack a stage3 tarball into a separate drive/folder) you can then
"quickpkg gcc ; quickpkg gcc-config" which will create two files with a .tbz2
extension in /usr/portage/packages/All. Those two files can be copied to your
presently not-running-so-well system and unpacked with "cd / ; tar -xvjf /path/to/gcc-3*.tbz2 ; tar -xvjf /path/to/gcc-config*.tbz2" (insert the proper
path to each of the files. Ignore the message about trailing data at the end
of each of the tar commands. This will get you back to a compiler that exists
though its probably no longer the most recent version, so emerge sync and emerge
gcc-config and gcc again. And never unmerge them again. That makes bad things
happen.