Question 'bout gcc and kernel

This is a discussion on Question 'bout gcc and kernel within the Linux Programming forums, part of the Platform Specific Boards category; 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 ...

  1. #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).
    Last edited by Jaguar; 11-19-2002 at 01:24 AM.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  2. #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

  3. #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

  4. #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
    Last edited by Jaguar; 11-19-2002 at 12:10 PM.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  5. #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

  6. #6
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question - linux - gcc - c standards
    By AMAMH in forum C Programming
    Replies: 12
    Last Post: 12-03-2009, 02:49 AM
  2. GCC and SSE multplication
    By Kernel Sanders in forum C Programming
    Replies: 5
    Last Post: 09-19-2008, 06:08 PM
  3. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10:38 AM
  4. Including kernel header files
    By carmaa in forum C Programming
    Replies: 0
    Last Post: 02-03-2008, 03:43 PM
  5. GCC bool undefined
    By Stack Overflow in forum Linux Programming
    Replies: 3
    Last Post: 07-06-2004, 01:54 PM

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