Question 'bout gcc and kernel [Archive] - C Board

PDA

View Full Version : Question 'bout gcc and kernel


Jaguar
11-08-2002, 11:17 AM
1. I downloaded gcc-3.2.tar.gz from gnu.org, I untarred and unzipped it. Then follow with commands...
#./configure
#make
#make install
But gcc/g++ does not work at all. What I did wrong?
My previous version is gcc-2.96.

2. How to rebuild kernel? Please anyone give me any web sites providing that (Red Hat 7.2 with downloaded patch-2.4.19.gz).

Jaguar
11-18-2002, 10:59 AM
Please anyone give me the answer. At least for the first question.

Thanks

unixOZ
11-18-2002, 12:58 PM
Did you erase your previous version of GCC???
We need more details in order to help you

Jaguar
11-19-2002, 01:15 AM
I did not erase the previous version and I put new version in a new directory.
It works when I go with a small program like "hello world".
But when the code is a little bigger it doesn't work.
Such as a single source file consisting 2 functions, it can't be compiled anyway.
Compiler always gives the same error message for all source...

/tmp/ccI6FhAV.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status


Note that all tested files are very simple.
And all of them were tested with gcc-2.96, they are ok.
(My platform is Redhat 7.2)

In addition, I can't get source file compiled and I don't know how to remove new gcc (make uninstall is not supported) I want to go back to the previous version (gcc-2.96) sometimes?

Thanks

DarkViper
11-20-2002, 03:39 PM
ok, this is dumb, remember this, when upgrading to a new version (im talking full numbers here, like your old one was 2.9 right? the new one is 3.1, see, a different full number) it means thats its almost a complete rebuild, and you WILL have to uninstall it in order to work. its the sanme with all programs.cept that flash mx can be on the same comp as flash 5 and still work, but thats probably one of the very few exceptions.

hope ive been a help.

DarkViper
11-20-2002, 03:40 PM
Originally posted by DarkViper
ok, this is dumb, remember this, when upgrading to a new version (im talking full numbers here, like your old one was 2.9 right? the new one is 3.1, see, a different full number) it means thats its almost a complete rebuild, and you WILL have to uninstall it in order to work. its the sanme with all programs.cept that flash mx can be on the same comp as flash 5 and still work, but thats probably one of the very few exceptions.

hope ive been a help.

sorry,meant 3.2. and i cant edit my own posts >:(