Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th January 2007, 21:37
joelee joelee is offline
Member
 
Join Date: Sep 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error running Make Menuconfig - Debian Etch

Hi All, I trying to compile a new kernel on a fresh installed Debian Etch (test) system which came with 2.6.17-2. I need the new kernel to be 2.6.9...
I am following this how-to guide:

http://www.howtoforge.com/howto_linu...compile_debian

After running make menuconfig I get the following error:

Code:
debian:/usr/src/linux# make menuconfig
  HOSTCC  scripts/basic/fixdep
/bin/sh: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
debian:/usr/src/linux# uname -a
Linux debian 2.6.17-2-686 #1 SMP Wed Sep 13 16:34:10 UTC 2006 i686 GNU/Linux
* Based on the output above it seems like I am missing GCC package or something. But, I think the how-to first command installs this.

Any thoughts on what this problem could be. Thanks in advance for any help!

FYI: I am new with linux this is my first few attempts to building a system. Apologies for obvious problem I should perhaps know about.
-Joe
Reply With Quote
Sponsored Links
  #2  
Old 10th January 2007, 21:50
joelee joelee is offline
Member
 
Join Date: Sep 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Per last post by me, I come to find out that first step of how-to:
http://www.howtoforge.com/howto_linu...compile_debian
is missing some options that should install GCC package.

I found this other similar how-to:
http://www.howtoforge.com/kernel_compilation_debian
That has options that installs GCC...

Falko, perhaps you can update document! See below:

1st how-to:
apt-get install kernel-package ncurses-dev fakeroot wget bzip2
2nd how-to:
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential udev

After running second command all seems to work for me now.

-Joe
Reply With Quote
  #3  
Old 10th January 2007, 23:05
joelee joelee is offline
Member
 
Join Date: Sep 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default New error problem compiling new kernel.

I am now running into this error when compiling new kernel. Would appreciate any help with fixing this problem. Below is partial error output:

After running cmd (as per how-to debian-kernel-compile_2.6):
make-kpkg clean
fakeroot make-kpkg --revision=custom.1.0 kernel_image
(of course, I have change --revision= to my kernel name.)

Code:
include/asm/mpspec_def.h:78: warning: ‚packed‚ attribute ignored for field of type ‚unsigned char[6]‚
init/initramfs.c: In function ‚flush_window‚:
init/initramfs.c:401: warning: pointer targets in passing argument 1 of ‚flush_buffer‚ differ in signedness
init/initramfs.c: In function ‚unpack_to_rootfs‚:
init/initramfs.c:442: warning: pointer targets in assignment differ in signedness
  LD      init/built-in.o
  HOSTCC  usr/gen_init_cpio
  CPIO    usr/initramfs_data.cpio
  GZIP    usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      arch/i386/kernel/process.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:17,
                 from include/linux/sched.h:23,
                 from arch/i386/kernel/process.c:17:
include/asm/mpspec_def.h:78: warning: ‚packed‚ attribute ignored for field of type ‚unsigned char[6]‚
arch/i386/kernel/process.c: In function ‚show_regs‚:
arch/i386/kernel/process.c:252: warning: pointer targets in passing argument 2 of ‚show_trace‚ differ in signedness
{standard input}: Assembler messages:
{standard input}:654: Error: suffix or operands invalid for `mov'
{standard input}:655: Error: suffix or operands invalid for `mov'
{standard input}:846: Error: suffix or operands invalid for `mov'
{standard input}:847: Error: suffix or operands invalid for `mov'
{standard input}:918: Error: suffix or operands invalid for `mov'
{standard input}:919: Error: suffix or operands invalid for `mov'
{standard input}:1023: Error: suffix or operands invalid for `mov'
{standard input}:1024: Error: suffix or operands invalid for `mov'
{standard input}:1034: Error: suffix or operands invalid for `mov'
{standard input}:1046: Error: suffix or operands invalid for `mov'
make[2]: *** [arch/i386/kernel/process.o] Error 1
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9'
make: *** [debian/stamp-build-kernel] Error 2
Thanks for any help!
joe
Reply With Quote
  #4  
Old 11th January 2007, 19:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

I suggest you install Debian Sarge instead of Etch if you need an old kernel. If you downgrade from 2.6.17 to 2.6.9, you will get problems with udev and devfs (new kernels use udev, old ones devfs).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 12th January 2007, 01:58
joelee joelee is offline
Member
 
Join Date: Sep 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks for the info!
Reply With Quote
Reply

Bookmarks

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Etch OpenVZ & Raid TonA HOWTO-Related Questions 1 30th December 2006 21:20
clamav spamassassin with simscan @ debian Shamael Anwar Installation/Configuration 2 15th December 2006 20:06
install Net::DNS chrno Installation/Configuration 4 5th September 2006 17:01
64-bit Debian 3.1 Install Issue naruto Installation/Configuration 14 5th September 2006 04:12
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 17:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.