Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I am facing a pbm regarding gcc.I am having linux 2.6 EL4 system. for comiling 2.4 kernel i downloaded gcc-2.95.3 and installed.2.4 kernel & was successfully comipled. Now system ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    9

    Thumbs up gcc 2.95.3 to gcc 3.4.3


    Hi,

    I am facing a pbm regarding gcc.I am having linux 2.6 EL4 system.
    for comiling 2.4 kernel i downloaded gcc-2.95.3 and installed.2.4 kernel & was successfully comipled.
    Now system showing only gcc-2.95.3. If i try to reinstall gcc-3.4.3 agaain it is saying that gcc-3.4.3 already installed.How can i come back to gcc 3.4.3
    again.

    thank you in advance.

  2. #2
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    Have you tried uninstalling gcc-2.95.3? This would likely be the easiest method.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    9
    when iam doing
    rpm -e gcc-2.95.3. message coming up as
    package is not installed.
    how can remove gcc-2.95.3

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    I take it you installed gcc 2 with an rpm. What does the following return:
    Code:
    rpm -qa gcc
    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  6. #5
    Just Joined!
    Join Date
    Apr 2008
    Posts
    9
    As you said when running
    #rpm -qa gcc.

    giving gcc-3.4.3-9.EL4

    if i try to erase it by
    #rpm -e gcc-3.4.3-9.EL4

    error: Failed dependencies:
    gcc = 3.4.3-9.EL4 is needed by (installed) gcc-c++-3.4.3-9.EL4.i386
    gcc = 3.4.3-9.EL4 is needed by (installed) gcc-g77-3.4.3-9.EL4.i386
    gcc = 3.4.3-9.EL4 is needed by (installed) gcc-gnat-3.4.3-9.EL4.i386
    gcc = 3.4.3-9.EL4 is needed by (installed) gcc-java-3.4.3-9.EL4.i386
    gcc = 3.4.3-9.EL4 is needed by (installed) gcc-objc-3.4.3-9.EL4.i386
    gcc is needed by (installed) lam-7.0.6-5.i386

    here what should i do.

    earlier i compiled a char driver with gcc-3.4.3 before installing gcc-2.95.3.
    Now if i compile it giving out following error message

    make -C /lib/modules/2.6.9-5.EL/build M=/home/rajkumar/DEVICEDRIVERS/chardev modules
    make[1]: Entering directory `/usr/src/kernels/2.6.9-5.EL-i686'
    CC [M] /home/rajkumar/DEVICEDRIVERS/chardev/chardev.o
    cc1: Invalid option `32'
    /home/rajkumar/DEVICEDRIVERS/chardev/chardev.c:28: warning: initialization from incompatible pointer type
    make[2]: *** [/home/rajkumar/DEVICEDRIVERS/chardev/chardev.o] Error 1
    make[1]: *** [_module_/home/rajkumar/DEVICEDRIVERS/chardev] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.9-5.EL-i686'
    make: *** [all] Error 2

    wht might be the pbm here.i think the driver code written for 2.6. is not compiling with gcc-2.95.3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •