LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-14-2005, 03:13 PM   #1
tsurc
LQ Newbie
 
Registered: Jan 2005
Distribution: core 3
Posts: 8

Rep: Reputation: 0
Breezey GCC


Badger's kernel was compiled with GCC 3.4, but installes GCC4.0.....

So how do you compile a kernel using 4 when it always asks for 3.4

short and to the point i know, but i'm trying to get my wifi to work.
using Hedgehog compiling the latest ndiswrapper was easy, and it worked.

using badger i can't get it to work with the installed ndis, so compiling the newer version has just been a run around, cant find gcc 3.4, as the kernel has to match. but again i can't re-compile the kernel because it needs 3.4........ so where/how does the circle end.


Regards
Alistair Crust
Newbie-ish
 
Old 09-14-2005, 08:13 PM   #2
chavo
LQ Newbie
 
Registered: Nov 2004
Posts: 12

Rep: Reputation: 0
First install gcc-3.4 ->
sudo apt-get install gcc-3.4

Now whenever you need to use 3.4 do this ->
export CC=/usr/bin/gcc-3.4 CXX=/usr/bin/g++-3.4

Gcc 4.0 will be the default still, but exporting those variables will tell the makefile to use gcc-3.4.
Also if you find yourself not using 4.0 as much, just change the symlinks in /usr/bin ->
sudo rm /usr/bin/gcc /usr/bin/g++
sudo ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
sudo ln -s /usr/bin/g++-3.4 /usr/bin/g++

That will make 3.4 the defaqult compile. You can use the export thing to set 4.0 as you need it.
 
Old 09-15-2005, 12:15 PM   #3
tsurc
LQ Newbie
 
Registered: Jan 2005
Distribution: core 3
Posts: 8

Original Poster
Rep: Reputation: 0
Which came first the chicken or the egg.

Am i right in thinking that:

without network access i can't get the wifi working (apt-get needs to find gcc3.4 off the net right, cos i don't think it on the cd)


and without the wifi working i cant get net access..... Go figure!

Help.
 
  


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
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

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

All times are GMT -5. The time now is 01:07 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