C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-08-2002, 11:17 AM   #1
still a n00b
 
Jaguar's Avatar
 
Join Date: Jun 2002
Posts: 187
Angry Question 'bout gcc and kernel

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).
__________________
slackware 10.0; kernel 2.6.7
gcc 3.4.0; glibc 2.3.2; vim editor
migrating to freebsd 5.4

Last edited by Jaguar; 11-19-2002 at 01:24 AM.
Jaguar is offline   Reply With Quote
Old 11-18-2002, 10:59 AM   #2
still a n00b
 
Jaguar's Avatar
 
Join Date: Jun 2002
Posts: 187
Question

Please anyone give me the answer. At least for the first question.

Thanks
__________________
slackware 10.0; kernel 2.6.7
gcc 3.4.0; glibc 2.3.2; vim editor
migrating to freebsd 5.4
Jaguar is offline   Reply With Quote
Old 11-18-2002, 12:58 PM   #3
Registered User
 
unixOZ's Avatar
 
Join Date: Feb 2002
Posts: 91
Did you erase your previous version of GCC???
We need more details in order to help you
unixOZ is offline   Reply With Quote
Old 11-19-2002, 01:15 AM   #4
still a n00b
 
Jaguar's Avatar
 
Join Date: Jun 2002
Posts: 187
Question

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
__________________
slackware 10.0; kernel 2.6.7
gcc 3.4.0; glibc 2.3.2; vim editor
migrating to freebsd 5.4

Last edited by Jaguar; 11-19-2002 at 12:10 PM.
Jaguar is offline   Reply With Quote
Old 11-20-2002, 03:39 PM   #5
Emotionally Unstable
 
DarkViper's Avatar
 
Join Date: Oct 2002
Posts: 343
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.
__________________
~DJ DarkViper signing out
----------------------------------------
My Site:
Black Jaguar Studios

Languages:
Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt
DarkViper is offline   Reply With Quote
Old 11-20-2002, 03:40 PM   #6
Emotionally Unstable
 
DarkViper's Avatar
 
Join Date: Oct 2002
Posts: 343
Quote:
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 >
__________________
~DJ DarkViper signing out
----------------------------------------
My Site:
Black Jaguar Studios

Languages:
Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt
DarkViper is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
question - linux - gcc - c standards AMAMH C Programming 12 12-03-2009 02:49 AM
GCC and SSE multplication Kernel Sanders C Programming 5 09-19-2008 05:08 PM
Profiler Valgrind afflictedd2 C++ Programming 4 07-18-2008 09:38 AM
Including kernel header files carmaa C Programming 0 02-03-2008 03:43 PM
GCC bool undefined Stack Overflow Linux Programming 3 07-06-2004 12:54 PM


All times are GMT -6. The time now is 09:27 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22