LinuxQuestions.org
Review your favorite Linux distribution.
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 01-08-2005, 05:29 PM   #1
TaNeK
Member
 
Registered: Dec 2004
Posts: 59

Rep: Reputation: 15
Kernel make-kpkg error


Hi

I spent e few hours configuring my new kernel, but when I finally used make-kpkg to make the .deb package I got this error:

Code:
[...LOTS of output]
  CC      lib/zlib_deflate/deftree.o
  CC      lib/zlib_deflate/deflate_syms.o
  LD      lib/zlib_deflate/zlib_deflate.o
  LD      lib/zlib_deflate/built-in.o
  CC      lib/zlib_inflate/infblock.o
  CC      lib/zlib_inflate/infcodes.o
  CC      lib/zlib_inflate/inffast.o
  CC      lib/zlib_inflate/inflate.o
  CC      lib/zlib_inflate/inftrees.o
  CC      lib/zlib_inflate/infutil.o
  CC      lib/zlib_inflate/inflate_syms.o
  LD      lib/zlib_inflate/zlib_inflate.o
  LD      lib/zlib_inflate/built-in.o
  LD      lib/built-in.o
  CC      lib/bitmap.o
  CC      lib/bust_spinlocks.o
  CC      lib/cmdline.o
  CC      lib/ctype.o
  CC      lib/div64.o
  CC      lib/dump_stack.o
  CC      lib/errno.o
  CC      lib/extable.o
  CC      lib/idr.o
  CC      lib/int_sqrt.o
  CC      lib/kobject.o
  CC      lib/parser.o
  CC      lib/radix-tree.o
  CC      lib/rbtree.o
  CC      lib/rwsem.o
  CC      lib/string.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  LD      arch/i386/lib/built-in.o
  CC      arch/i386/lib/bitops.o
  AS      arch/i386/lib/checksum.o
  CC      arch/i386/lib/dec_and_lock.o
  CC      arch/i386/lib/delay.o
  AS      arch/i386/lib/getuser.o
  CC      arch/i386/lib/memcpy.o
  CC      arch/i386/lib/mmx.o
  CC      arch/i386/lib/strstr.o
  CC      arch/i386/lib/usercopy.o
  AR      arch/i386/lib/lib.a
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xd094): In function `powernow_acpi_init':
: undefined reference to `acpi_processor_register_performance'
arch/i386/kernel/built-in.o(.text+0xd0bb): In function `powernow_acpi_init':
: undefined reference to `acpi_processor_unregister_performance'
arch/i386/kernel/built-in.o(.exit.text+0x3b): In function `powernow_exit':
: undefined reference to `acpi_processor_unregister_performance'
drivers/built-in.o(.init.text+0x726c): In function `init_sc520cdp':
: undefined reference to `mtd_concat_create'
drivers/built-in.o(.exit.text+0x1cbf): In function `cleanup_sc520cdp':
: undefined reference to `mtd_concat_destroy'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [stamp-build] Error 2
Beeing the first time I compile a kernel (done it a few times, but never got a working kernel ;D), I cannot figure it out.

Any help is much appreciated.

BTW: What does --initrd do? It has something to do with starting modules i think, but I that's as far as I can understand

Last edited by TaNeK; 01-08-2005 at 06:06 PM.
 
Old 01-08-2005, 06:11 PM   #2
ernobe
Member
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian SID
Posts: 33

Rep: Reputation: 15
Having compiled the kernel several times, it seems that your problem
is probably related to something you did to your kernel source,
like a patch. Can you tell us everything you did to it from the
moment you downloaded it?
 
Old 01-08-2005, 06:32 PM   #3
TaNeK
Member
 
Registered: Dec 2004
Posts: 59

Original Poster
Rep: Reputation: 15
I downloaded it using apt-get, then I extracted it, put up a symlink to linux, ran make xconfig, configured it, and ran make-kpkg clean and then standard make-kpkg --append-to-version=-050108 kernel_image. It worked fine a while, then this happened. I guess it's something to do with my config
 
Old 01-08-2005, 07:48 PM   #4
ernobe
Member
 
Registered: Nov 2004
Location: Costa Rica
Distribution: Debian SID
Posts: 33

Rep: Reputation: 15
The only other thing that comes to mind is that you are not using the
appropriate version of your C compiler. I've read in a file called
changes.gz in the /usr/share/doc directory of the debian package of
the kernel I created, that the recommended compiler for the kernel
( 2.6 ) is gcc-2.95 because recent compilers have not been tested in
kernel compilation, and most likely contain bugs. You can switch to
it by with :~# MAKEFLAGS="CC=gcc-2.95" make-kpkg ...
 
Old 01-09-2005, 05:51 AM   #5
TaNeK
Member
 
Registered: Dec 2004
Posts: 59

Original Poster
Rep: Reputation: 15
It's compiling atm, but I wonder what an older compiler can do, that a newer cannot? I used 3.3 before...
 
Old 01-09-2005, 06:02 AM   #6
TaNeK
Member
 
Registered: Dec 2004
Posts: 59

Original Poster
Rep: Reputation: 15
"finished" compiling, got the same error as above
 
Old 01-09-2005, 10:10 AM   #7
elfoozo
Member
 
Registered: Feb 2004
Location: MI
Distribution: debian unstable
Posts: 252

Rep: Reputation: 32
I always use make menuconfig when I'm recompiling so I just hopped into my 2.6.10 kernel tree and did a forward slash mtd_concat (which looks like / mtd_concat and that returns:

│ MTD concatenating support (MTD_CONCAT)
│ Location:
│ -> Device Drivers
│ -> Memory Technology Devices (MTD)
│ -> Memory Technology Device (MTD) support (MTD)
│ Depends:
│ MTD
│ Selects:
│ None
│ Selected by:
│ None

So if I were you, I'd try navigating in your config to:

│ -> Device Drivers
│ -> Memory Technology Devices (MTD)
│ -> Memory Technology Device (MTD) support (MTD)

Determine if that hardware is really in your system or not. I've found in my kernel re-compiling efforts that errors like this almost always end up being some hardware flipped to ON when my system doesn't really have that device.
 
Old 01-09-2005, 01:24 PM   #8
TaNeK
Member
 
Registered: Dec 2004
Posts: 59

Original Poster
Rep: Reputation: 15
BIG thanks, it's compiled, and all but networking is running like a charm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 10:11 AM
build kernel with make-kpkg wrong processor type stockerz Debian 4 02-04-2005 12:14 AM
make-kpkg not working, so no kernel includes genixpro Linux - Hardware 3 09-14-2004 07:56 PM
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3) Duukkis Debian 14 05-23-2004 04:58 AM
Need some advice on upgrading kernel via make-kpkg davidas Debian 4 04-07-2004 08:02 PM


All times are GMT -5. The time now is 11:43 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration