LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-14-2005, 07:38 AM   #1
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Two gcc Versions On The Same Installation?


When I recently installed Etch via a net-install it placed both the gcc 3.3.5 and gcc 4.0.1 on my system. Neither can be removed by itself as there are too many deps, and so they remain together. Why is/would/should there be a need and purpose for both of them? They both show up in synaptic as being installed.

However this is the command output:

# gcc --version
gcc (GCC) 4.0.1 (Debian 4.0.1-2)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
Old 08-14-2005, 02:18 PM   #2
tomj88
Member
 
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334

Rep: Reputation: 30
I'm guessing it's because there are some major differences between 3.x and 4.x (I think I read something about this before), and so they have included both so you have the compatibility until they have stabilized 4.x... I'm not entirely sure though.
 
Old 08-15-2005, 01:14 AM   #3
jeru
Member
 
Registered: Feb 2003
Location: Arizona
Distribution: Debian Sid
Posts: 57

Rep: Reputation: 15
I thought if you wanted to go for compatability you could always do so

make CC=gcc-3.3

Atleast that is how I compile things for my 3.3 built kernel on sid. Seems more like the repo's are broken.
 
Old 08-15-2005, 11:47 PM   #4
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Until all packages are built with gcc 4.0 both gcc versions will have to co-exist.
It shouldn't hurt anything.Eventually gcc 4 will be the norm.
 
Old 08-16-2005, 02:07 AM   #5
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Original Poster
Rep: Reputation: 32
It was causing me issues as the 4.0 version won't build the 2.6.8 kernel source, but I was able to change the symlink in /usr/bin to the existing 3.3 install and it finished nicely.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to have two different versions of GCC in the same system ?? nasty_daemon Linux - Software 2 09-07-2005 10:49 AM
switching between gcc versions DrAMac Debian 2 08-30-2005 05:21 PM
multiple versions of gcc Avatar33 Linux - General 3 02-22-2005 02:06 PM
Can you have two different versions of gcc on the same system? the theorist Linux - Software 1 02-23-2004 04:53 PM
changing gcc versions SirRobbin Linux - Newbie 0 08-27-2003 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration