Click to See Complete Forum and Search --> : Two Machines, Two GCC Installation Problems (One Stupid User Problem)


TySoft
07-27-2002, 06:44 PM
Heya folks, I'd be quite grateful for any help on this - been pulling out my hair for a few hours now...

I'm running Mandrake 8.2 with no extra crap, completely fresh install.

I have two clean installations of mandrake (im talking 5 minute installations before I install GCC). On both computers, I download the 25mb tar.gz that has GCC 3.1.1 in it - here it what I did on both computers (they both got different results:

1) tar xvzf whateveritwascalled.tar.gz
2) cd whereverItExtractedTo
3) ./configure
4) make
5) make install

Results:

PC 1:
It lasts about 5 minutes on the make step and spits out a nice Error 1 & Error 2, here's the last few lines:

insn-attrtab.c: In function 'pent_np_unit_blockage':
insn-attrtab.c:36801: Internal error: Segmentation fault.
Please submit a full bug report.
make[1]: *** [insn-attrtab.o] Error 1
make[1]: Leaving directory '/home/gcc-3.1.1/gcc'
make: *** [all-gcc] Error 2


The second machine installs fine, however I have no clue how to make Linux use the new 3.1.1 compiler which is located in a directory alongside the old 2.96 compiler.

How do I switch it over to 3.1.1? - I read it somewhere but I can't find it now :/


Please, oh please someone have some ideas - I can't figure it out!

Thanks!
- Ty

fancypiper
07-27-2002, 06:55 PM
:D Bleedin' edgers get to lead the way and tell the rest of us how great and easy it is. :D Show us the path!

You might try a search on this bulletin board (http://forums.gentoo.org/viewforum.php?f=29) as quite a few of them are trying it out.

TySoft
07-27-2002, 07:01 PM
Thanks, I would never have thought to look on the gentoo forums, I appreciate it. /me crosses fingers and hopes to find something

TySoft
07-27-2002, 07:13 PM
Ok, after finding out that they have an entire forum dedicated to GCC3 problems I'm going to attempt to downgrade my GCC 2.96 to 2.95 which is supposed to be more stable...

Any special tricks for this?

Once I install 2.95 how do I force my OS to use 2.95 instead of 2.96 - or is there a way to make it use 2.95 on a compile-by-compile basis - I saw something like that, I forget what it was - you could direct a make command to the directory where GCC 2.95 or whatever GCC you want to use was located.... help? :o

fancypiper
07-27-2002, 07:22 PM
If Mandrake's package manager won't do it, perhaps Red Carpet will.

If you compiled from source, I doubt that they included a make uninstall, did they?

TySoft
07-27-2002, 07:23 PM
I'll just reinstall Mandrake once more so I get it working how it should from the start.

2.96 is included with Mandrake, can't they co-exist?

mindcooler
07-27-2002, 07:26 PM
After you have completed 'make install', there are some things you need to do. GCC installs its binaries into /usr/local/bin, and that directory is not in the PATH by default on Mandrake 8.2. To add it to the PATH, open up the file .bashrc and add /usr/local/bin: directly after PATH. Save the file and close it and close the terminal. Fire up a new terminal and do: gcc --version and g++ --version. You should now see 3.1.1. The next thing you want to do is to open the file etc/ld.so.conf and insert a new line at the top with the text /usr/local/lib. Save the file and close it, run ldconfig, close and restart the terminal. Now you should be able to run your newly compiled c++ programs without it complaining that it cannot find shared library libstdc++.so.4

Good luck!

TySoft
07-27-2002, 07:30 PM
I'm about to try that on the system that installed gcc3 correctly.

if this works (sounds like it will), i love you.

edit: update:
sure didnt work :(

I'm trying to make GCC 3.1.1 again on that box, maybe it borked itself during compilage and didn't tell me. :confused:

Will I have to do those same things if I take a shot at GCC 2.95?

TySoft
07-27-2002, 08:54 PM
I feel even dumber than I did an hour ago. All these problems that I've been having over the past few days were caused by a damned BIOS setting that made Windows crash like hell and Linux refuse to compile anything.

Wow, it just dawned on me.

Sigh...

Thanks for the help everyone :]