LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gcc diead and I can't even install it!!! (https://www.linuxquestions.org/questions/linux-software-2/gcc-diead-and-i-cant-even-install-it-58849/)

Ciccio 05-08-2003 11:26 PM

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.

whansard 05-09-2003 12:48 AM

i think you can make gcc compile itself with something
like make bootstrap
or something similar.
look in the gcc readme.

aizkorri 05-09-2003 02:43 AM

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.

Ciccio 05-09-2003 10:28 AM

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.

aizkorri 05-12-2003 02:11 AM

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.

whansard 05-12-2003 02:45 AM

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.

Ciccio 05-12-2003 05:21 PM

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]#


whansard 05-12-2003 05:56 PM

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.

Ciccio 05-13-2003 02:41 PM

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.

whansard 05-13-2003 07:31 PM

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

quinte17 05-14-2003 01:36 AM

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

Ciccio 05-14-2003 05:52 PM

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.

Ciccio 05-14-2003 05:53 PM

Thanks everyone... I think we could consider this thread closed.... right?


All times are GMT -5. The time now is 02:14 PM.