LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2003, 11:26 PM   #1
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
Gcc diead and I can't even install it!!!


Ok... I had a few problems after NINE failed windows installations.. all due to some wired problem with my HDD... I don't know what happen so I decided NOT to install windows... Well... during one of these failed installations... during the formatting part specifically... it just STOPPED responding... (common error with windows) and I had to restart my computer... after that and a few recoverys of the system (re-installing lilo, re-formatting the partition and stuff) my linux partition was 'damaged'... as I solved the problem with FSCK some THINGS got lost... for example... a part of GNOME (I had to re-install to make it work) and xchat. Today, while trying to install winex I found out that there was a problem with GCC... so I decided to install from the CD's RPMs... and I did so... but somehow it didn't work... so I thought of downloading the source and compile it... but when I tried to do so... wel... my compiler is not working... so there is no way to compile the new compiler...

I have only one question to do after explaining the problem... WHAT CAN I DO!!! I NEED MY COMPILER!!!!

I'm quiet good a troubleshooting some problems... but this is clearly beyond my skills.. I beg for help now.


BTW: i just wanted to point that ALL the problems I've ever had with linux were caused by windows or one of it's apis.
 
Old 05-09-2003, 12:48 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i think you can make gcc compile itself with something
like make bootstrap
or something similar.
look in the gcc readme.
 
Old 05-09-2003, 02:43 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
Hola, well, the only think that comes to my mind is to install a newer RPM version of gcc. You could look for it in www.pbone.net and try to install it. Buena suerte.
 
Old 05-09-2003, 10:28 AM   #4
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Original Poster
Rep: Reputation: 30
aizkorri:

Well... I tried re-installing with --force option the version included in Mandrake's CD (I use Mandrake 9.1) and it didn't work... I'll try now to install glibc and stuff like that... but gcc should be working... I really don't know what's happening...

whansard:

I will and I have read the README and the index.html in the INSTALL directory... if it were that easy I could have done it by myself.
 
Old 05-12-2003, 02:11 AM   #5
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
another thing..., it could be that the gcc you have installed is there with one other name like gcc-3.x.x. Once it happened to me that I needed a newer version and at last, I don't think it's the best way to do it, I had to save somewhere else the actual gcc executable, copy to /var/tmp/gcc, and rename the /usr/bin/gcc-3.0.4 to /usr/bin/gcc and it worked.
Hope this helps.
 
Old 05-12-2003, 02:45 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i just meant that i wasn't sure about the build command
to make without a preexisting gcc, and i thought that
was where i had read it.
maybe your make or path or ld.so.conf is messed up.
rpm -Uvh file.rpm --nodeps --force is the most violent
way to install an rpm.

i was originally talking about this part below with the
make bootstrap. i wasn't rtfming you.




Building a native compiler

For a native build issue the command make bootstrap. This will build the entire GCC system, which includes the following steps:

* Build host tools necessary to build the compiler such as texinfo, bison, gperf.
* Build target tools for use by the compiler such as binutils (bfd, binutils, gas, gprof, ld, and opcodes) if they have been individually linked or moved into the top level GCC source tree before configuring.
* Perform a 3-stage bootstrap of the compiler.
* Perform a comparison test of the stage2 and stage3 compilers.
* Build runtime libraries using the stage3 compiler from the previous step.
 
Old 05-12-2003, 05:21 PM   #7
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Original Poster
Rep: Reputation: 30
this is my output when doing make bootstrap
Code:
[root@gandalf gcc-3.2.3]# make bootstrap
Bootstrapping the compiler
make[1]: Entering directory `/root/gcc-3.2.3/gcc'
make[1]: *** No hay ninguna regla para construir el objetivo 
Quote:
##in the line above it says: make[1]: *** There is no rule to build the obj (or something alike... I have the spanish version and that is my best shot for the translation to english...)
`bootstrap'. Alto.make[1]: Leaving directory `/root/gcc-3.2.3/gcc' make: *** [bootstrap] Error 2 [root@gandalf gcc-3.2.3]#
 
Old 05-12-2003, 05:56 PM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i don't know if this will do you any good or not.
i just tried the make bootstrap, and it was using
my other gcc to build. i moved the gcc to a different
name, and tried configure. it said i must have a working
c compiler set to environment variable CC. I have
the intel c compiler installed, which you can download
for free from intel, so i set my export CC=/usr/bin/icc,
then configured, and make bootstrap, and it started
building gcc with icc. maybe you also have yacc,
or something else you could build gcc with. I just
tried yacc, and it didn't work. anyway i guess you could
try the icc if you wanted.
 
Old 05-13-2003, 02:41 PM   #9
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Original Poster
Rep: Reputation: 30
I will try that... though there SHOULD be a way to do it without another compiler installed.... I don't know which... now, a question... how am I supposed to install this icc without a working compiler???? is there a MDK rpm???? (i'll search the CDs.)

I might try any other compiler included with the CDs... but no other, since I wouldn't be able to install it... right??

thanks a lot.
 
Old 05-13-2003, 07:31 PM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you don't compile icc. it comes pre-compiled, like your
rpm'd precompiled gcc that comes with your
distribution.
oh, you have to download icc from intel.com

http://developer.intel.com/software/...lobal/eval.htm

Last edited by whansard; 05-13-2003 at 07:35 PM.
 
Old 05-14-2003, 01:36 AM   #11
quinte17
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
its not always a problem with gcc...
gcc links to some other libs dynamically like binutils...
it can be that gcc is ok but other libs are damaged... if it isnt to hard for u i appologise u to make a fresh install from linux. (its not the best idea but then nothing is damaged.)

do this on a 2. partition... because if u need some confs u dont remember at this point...

cu greetz
 
Old 05-14-2003, 05:52 PM   #12
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Original Poster
Rep: Reputation: 30
work arround???

solved the problem (and many more) by backing up my home and my /root, re-installing and extracting the tar.gz

not really a work arround... but solved the problem... and I didn't loose any data... all I lost was my dignity (I swore never to solve a problem re-installing the whole OS... at least with linux)... I hope to know better the next time....


troubleshooting this kind of problem would have taken me forever... I need my PC working 100%... so reinstalling WAS my best choice at the moment.
 
Old 05-14-2003, 05:53 PM   #13
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Original Poster
Rep: Reputation: 30
Thanks everyone... I think we could consider this thread closed.... right?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant install gcc nikoz Linux - Software 4 12-02-2004 01:23 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
how to install gcc big_bailey Linux - Software 3 07-23-2004 12:47 AM
Install GCC BizHat.com Linux - Software 10 07-19-2004 04:26 PM
Must have gcc to install gcc? thafusion Linux - Software 4 05-28-2004 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration