Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > The Linux Kernel
Reload this Page gcc 2.95.3 to gcc 3.4.3
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Linux Kernel Compiling, theory, programming or other discussion about the linux kernel

Reply
 
Thread Tools Display Modes
Old 05-10-2008   #1 (permalink)
alexram
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.
alexram is offline   Reply With Quote
Old 05-10-2008   #2 (permalink)
bryansmith
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,616
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.
bryansmith is offline   Reply With Quote
Old 05-11-2008   #3 (permalink)
alexram
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
alexram is offline   Reply With Quote
Old 05-12-2008   #4 (permalink)
bryansmith
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,616
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.
bryansmith is offline   Reply With Quote
Old 05-12-2008   #5 (permalink)
alexram
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
alexram is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 11:41 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0