Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

I unmerged gcc what can I do to fix it?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
eyexer0
Tux's lil' helper
Tux's lil' helper
Posts: 75
Joined: Sat Dec 13, 2003 4:20 pm
Location: Fort Smith, Arkansas
Contact:
Contact eyexer0
Website

I unmerged gcc what can I do to fix it?

  • Quote

Post by eyexer0 » Sun Jun 18, 2006 5:28 am

I unmerge gcc and I can't get the new one to compile because I don't have a c compiler how can I fix this?

checking for C compiler default output file name... configure: error: C compiler cannot create executables

Code: Select all

emerge glibc

checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile

Code: Select all

emerge =gcc-3.4.1-r3

>>> Compiling source in /var/tmp/portage/gcc-3.4.1-r3/work/gcc-3.4.1 ...
QA Notice: USE Flag 'elibc_uclibc' not in IUSE for sys-devel/gcc-3.4.1-r3
 * CFLAGS="   "
 * CXXFLAGS="   "
 * GCJFLAGS="   "
 * Configuring GCC...
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
*** 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.)
Could not run/locate "gcc"
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.4.1-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  gcc-3.4.1-r3.ebuild, line 632:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Top
CptnObvious999
Apprentice
Apprentice
Posts: 292
Joined: Sun Dec 19, 2004 11:55 pm

  • Quote

Post by CptnObvious999 » Sun Jun 18, 2006 6:00 am

there's a wiki page just for you ;-)
http://gentoo-wiki.com/HOWTO_Recover_fr ... merge_gcc"

don't forget to add yourself to the Wall of Shame :P
Top
eyexer0
Tux's lil' helper
Tux's lil' helper
Posts: 75
Joined: Sat Dec 13, 2003 4:20 pm
Location: Fort Smith, Arkansas
Contact:
Contact eyexer0
Website

  • Quote

Post by eyexer0 » Mon Jun 19, 2006 12:25 am

ok I did everything on that part but now I get this......

Code: Select all

cdimage / # gcc-config -l
 * /usr/sbin/gcc-config: Profile does not exist!

cdimage / # gcc-config i686-pc-linux-gnu-3.3.4-r1
 * /usr/sbin/gcc-config: Profile does not exist!
Top
r0shi
n00b
n00b
Posts: 62
Joined: Tue Jul 20, 2004 7:18 am

  • Quote

Post by r0shi » Mon Jul 24, 2006 9:00 pm

im having the same problem
gcc-config can't find any configs when running gcc-config -l
Top
eyexer0
Tux's lil' helper
Tux's lil' helper
Posts: 75
Joined: Sat Dec 13, 2003 4:20 pm
Location: Fort Smith, Arkansas
Contact:
Contact eyexer0
Website

  • Quote

Post by eyexer0 » Mon Jul 24, 2006 9:04 pm

basicly what I had to do is just completely re-install with a fresh install
Top
hvengel
Guru
Guru
Posts: 515
Joined: Sun Sep 19, 2004 1:29 am

  • Quote

Post by hvengel » Mon Jul 24, 2006 10:28 pm

I somehow had gcc get corrupted doing a:

emerge -u --newuse world

The change to my use variable caused a rebuild of gcc and the next item to be built failed. Slightly different from unmerging gcc but I found the Wiki very useful and was able to recover gcc without too much difficulty.

Because I did not do a unmerge of gcc my situation is slightly different and I did not extract the files to / (I did not use -C / in the tar command). As a result I ended up selectively copying directories from the downloaded extracted tar file into the correct places on my root file system (/). Be careful only copy the stuff that is specific to the "new" (downloaded binary) version of gcc. By looking at the extracted directories and files it was fairly simple to figure out what needed to be copied. At that point the gcc-config stuff worked and I was able to re-emerge gcc and got it working by following the remaining steps in the Wiki. I was then able to finish up the emerge -u --newuse world with the recovered gcc. Overall a very useful Wiki entry.
Top
Sachankara
l33t
l33t
User avatar
Posts: 696
Joined: Fri Jun 11, 2004 5:04 pm
Location: Stockholm, Sweden

Re: I unmerged gcc what can I do to fix it?

  • Quote

Post by Sachankara » Mon Jul 24, 2006 11:53 pm

In the future, add FEATURES="buildpkg" to /etc/make.conf so that portage creates binary packages of every compiled package. Thus you can simply install the old binary if you manage to f*** something up... ;)
Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak)
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic