LinuxQuestions.org
Review your favorite Linux distribution.
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 09-29-2005, 05:27 PM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
compling kernel using gcc4


ebian:/usr/src/linux# make menuconfig
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
debian:/usr/src/linux#

why do i get those errors? is it not the correct kernel source i typed i
apt-get install kernel-source

Last edited by linuxmandrake; 09-29-2005 at 05:29 PM.
 
Old 09-29-2005, 06:42 PM   #2
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
Try from /usr/src not /usr/src/linux
 
Old 09-29-2005, 06:59 PM   #3
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
debian:/usr/src# make menuconfig
make: *** No rule to make target `menuconfig'. Stop.
debian:/usr/src#

Last edited by linuxmandrake; 09-29-2005 at 07:01 PM.
 
Old 09-29-2005, 10:32 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
will make xconfig work?
I had the same error before my video drivers were in and menuconfig wouldnt work.....xconfig did.
 
Old 09-29-2005, 11:24 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Compile a 2.6.12 or newer kernel or use export CC=/usr/bin/gcc-3.3 maybe even gcc-3.4 depending on which is installed in the shell before starting. GCC 4.0 has problems compiling any kernels older than 2.6.12.
 
Old 09-30-2005, 10:41 AM   #6
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
/usr/gcc is just a symbolic link to what ever version of gcc right? Because when I compiled vmware it said although the cc enviorment variable was set to 3.4 the kernel is using gcc4.0. And i need to setup some symbolic link. So basically i point /usr/bin/gcc to gcc3.4 right?

Last edited by linuxmandrake; 09-30-2005 at 10:46 AM.
 
Old 09-30-2005, 11:10 AM   #7
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
help! I just reinstalled gcc but it deleted the /usr/bin/gcc so now i dont have a link
debian:/home/sc# ls -s /usr/bin/gcc-3.3 /usr/bin/gcc
ls: /usr/bin/gcc: No such file or directory
92 /usr/bin/gcc-3.3
 
Old 09-30-2005, 02:01 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by linuxmandrake
help! I just reinstalled gcc but it deleted the /usr/bin/gcc so now i dont have a link
debian:/home/sc# ls -s /usr/bin/gcc-3.3 /usr/bin/gcc
ls: /usr/bin/gcc: No such file or directory
92 /usr/bin/gcc-3.3
That is telling you that gcc 3.3 is not installed what does this show you?

Code:
ls -l /usr/bin/gcc*
lrwxrwxrwx  1 root root      7 2005-08-21 13:42 /usr/bin/gcc -> gcc-4.0
-rwxr-xr-x  1 root root  95416 2005-08-23 05:54 /usr/bin/gcc-3.4
-rwxr-xr-x  1 root root 102056 2005-09-24 12:19 /usr/bin/gcc-4.0
lrwxrwxrwx  1 root root     10 2005-08-21 13:42 /usr/bin/gccbug -> gccbug-4.0
-rwxr-xr-x  1 root root  16133 2005-08-23 05:51 /usr/bin/gccbug-3.4
-rwxr-xr-x  1 root root  16280 2005-09-24 12:10 /usr/bin/gccbug-4.0
To answer your question above yes it is just a symbolic link, you can either change the link or use the export command I suggested when compiling to make it use a different compiler.
 
  


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
How to Compile Linux kernel by GCC4.0.0 puretears Linux - General 5 04-25-2005 02:55 PM
Compling A New Kernel mullet Slackware 7 08-26-2004 05:04 PM
problem in compling kernel 2.6.6 rexhack Linux - Software 0 05-25-2004 02:21 AM
kernel compling examples deneme1984 Linux From Scratch 3 09-15-2003 03:51 AM
When compling kernel... nutshell Linux - General 1 03-09-2002 08:12 AM

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

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