LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-04-2005, 07:08 PM   #1
SMurf7
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian 3.x etch (testing)
Posts: 24

Rep: Reputation: 0
Error when attempting to compile kernel


Hello,

It's been a while since I tried compiling the kernel (The last time was under Woody, last year) and now that I'd installed Sarge I thought I'd have a go again. Unfortunately it didn't go so well this time...
Code:
mm/mm.o(.text+0x6ae6): In function `do_mremap':
: undefined reference to `unlikely'
make[1]: *** [vmlinux] Error 1
make[1]: Leaving directory `/usr/src/kernel-source-2.4.16'
make: *** [stamp-build] Error 2
Not sure what the problem is. I've checked the headers included in mm.c and unlikely is there (in complier.h). I also know this worked under Woody, which suggests something has changed. Installing gcc-2.95 got rid of some earlier parse errors, do I need anything else?
 
Old 04-04-2005, 07:45 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Could be a package you don't have. You definitely need these and their dependencies: tk8.3 debhelper, modutils, kernel-package, libc6-dev, libncurses5-dev, libqt3-mt-dev (last one if using xconfig)

And I suppose you need the module-init-tools and the kernel-kbuild-x.xx.xx and kernel-headers.

The dev's I have (and I only compile kernels):
autotools-dev
dpkg-dev
libaudio-dev
libc6-dev
libexpat1-dev
libfontconfig1-dev
libfreetype6-dev
libice-dev
libjpeg62-dev
liblcms1-dev
libmng-dev
libncurses5-dev
libpng12-dev
libqt3-mt-dev
libsm-dev
libstdc++5-3.3-dev
libx11-dev
libxcursor-dev
libxext-dev
libxft-dev
libxi-dev
libxmu-dev
libxrandr-dev
libxrender-dev
libxt-dev
libxv-dev
render-dev
x-dev
xlibmesa-gl-dev
xlibmesa-glu-dev
xlibs-static-dev
zlib1g-dev

Hope this helps.

Last edited by Moloko; 04-04-2005 at 07:46 PM.
 
Old 04-05-2005, 04:32 PM   #3
SMurf7
LQ Newbie
 
Registered: Feb 2004
Distribution: Debian 3.x etch (testing)
Posts: 24

Original Poster
Rep: Reputation: 0
Well after a bit of crying into my tea I decided to add:-
Code:
#include <linux/compiler.h>
to the top of mremap.c in the mm folder and it suddenly compiled correctly. Maybe having to override GCC to 2.95 meant that some preprocessor expansion wasn't being done or something?
 
Old 04-05-2005, 05:31 PM   #4
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
I didn't notice you mentioned an earlier version of gcc, but I also have no idea what the differences are with gcc-3.3. At least it works now
 
  


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 2.6.9 compile error burn0ut Linux - General 3 12-08-2004 08:05 AM
errors attempting to compile nvaudio module lasalsademuerte Slackware 2 12-02-2003 05:43 PM
Attempting to compile software - GTK+ problems vasudevadas Mandriva 2 11-24-2003 12:59 PM
Kernel compile error: what does it mean? Poorman Linux - Newbie 2 10-27-2003 09:12 PM
kernel compile error draker Linux - Newbie 1 08-14-2003 11:18 AM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
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