Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-11-2002, 01:20 AM   #1
Registered: Apr 2002
Location: Albuquerque, NM USA
Distribution: Slackware, Ubuntu, Debian, Maemo
Posts: 464

Rep: Reputation: 30
Unhappy Compiling the 2.0.39 kernel

I've never had any trouble compiling the Linux 2.2.x or 2.4.x series kernels before. I'm now trying to compile the vintage 2.0.39 kernel and the whole procedure is giving me fits!

I downloaded it from

First I did the usual, "make xconfig" and selected what I wanted.

Next I did the "make dep" and it bombed out in the /drivers/char directory with an "*** [fastdep] Error 135" error.

After messing around with it trying different configs, all with the same results. I decided to patch the kernel with the "latest 2.0.40-pre 4" patch.

This time the "make dep" was successful!

So I did the "make clean" just to play it safe.

Then the "make bzImage"
But I started getting errors that said "Invalid `asm' statement:"
and "fixed or forbidden register [some machine register] was spilled for [some class] "

I am compiling this on a Slack-8 machine (gcc version 2.95.3) that has successfully compiled other kernels.

So what is the trick to this?

Last edited by wartstew; 06-11-2002 at 01:24 AM.
Old 06-11-2002, 08:52 PM   #2
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Well, it's old stuff... Probably requires old compilers/libraries to compile...
Old 06-13-2002, 07:26 AM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Besides being cool, what is the reason for wanting to compile an old kernel? Maybe you don't have the correct assembler. I am not sure, but I think that's what asm stands for. If this is on an old system, that originally came with the 2.0 kernel, then I would make sure I had all the development packages installed from the old CD as well. Or floppy, or whatever medium was used.
Old 06-13-2002, 09:00 AM   #4
Registered: Apr 2002
Location: Albuquerque, NM USA
Distribution: Slackware, Ubuntu, Debian, Maemo
Posts: 464

Original Poster
Rep: Reputation: 30
Originally posted by MasterC
Besides being cool, what is the reason for wanting to compile an old kernel?
Two reasons currently:

1) One of my favorite "mini" distros is MuLinux. It is based on the 2.0.36 kernel. This kernel however, will not read ext2 filesystems created with the "Sparse" inode spacing mode enabled, which is now in common practice. The 2.0.39 will. I was simply going to replace the kernel.

2) Somebody here at posted for some information on a linux distro that would run in 2 megs of RAM but still had network connectivity. I only knew of Small-Linux, which he already tried. I then suggested he compile his own kernel, putting in just what he needed. I wanted to do a quick minimal compile on this kernel just to see if it would be possible to run this kernel in such a small memory space and have enough RAM left over to do anything. I think Small-Linux used the 1.3 kernel of something.


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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Compiling new kernel joseph Linux - Software 2 10-14-2003 07:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration