Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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.
[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...)
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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.
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??
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
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
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.