LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-12-2003, 01:37 PM   #1
Flecko
Member
 
Registered: Sep 2003
Distribution: Slackware 9-ish
Posts: 30

Rep: Reputation: 15
Oddball kernel compile problem(unexplainable)...


Hello all,

I have a question that I can't for the life of me find the answer to after searching all around the net, and I have no place else to turn.

My problem is this, I decided to give the new 2.6-test5 a go after using the default slack9 kernel since installation. I've built kernels before, and looked at many different sites on how to build the 2.6 series, but I think my problem is unexplainable.

When I get to the "make bzImage" step, the compile(with gcc 3.2.2 that comes with slack9) will invariable die at some .c file. The thing is, if I clean the make process, and redo everything, the process will die at an entirely different .c file. Each time I clean and retry, bam, another error at a different step. I have used the same config file, and using a default one. No luck, same thing.

The only thing I can think of is that my computer has some bad ram or the HD is messed up, but I've had no problems with it before. I've used mandrake, windows xp, gentoo, and slackware, and had nothing of the sort like this happen before.

I've compiled and built many other large programs(not quite as large as a kernel) with no problems at all. I don't get whats happening. Other people have had no problems compiling their kernels with the same setup, so my question is this: what gives?

Any, and I mean any, help would be greatly appreciated. My laptop is somewhat slow with the GUI, so the added speed would be much needed.

Thanks everyone,
-Flecko
 
Old 09-12-2003, 01:48 PM   #2
Modorf
LQ Newbie
 
Registered: Jul 2003
Location: Brooklyn, NY
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
What about getting 2.4.22 (current stable) and compiling that, see if you get the same kind of errors. There might be a bug in the current test kernel that you just stumbled on.

The other thing I can suggest is posting some of the compile time errors you are getting to this forum and the kernel developmen forum.
 
Old 09-12-2003, 02:30 PM   #3
zsejk
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 345
Blog Entries: 5

Rep: Reputation: 30
Yeah, maybe if you can remember some of the different .c files that caused the compilation to stop and post them here, that would be useful too.

-zsejk
 
Old 09-12-2003, 02:34 PM   #4
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Are you doing the make mrproper prior to doing the configure? I know the first kernel compile I did I inadvertently skipped this step and had some similar problems. Are you following the Kernel Compile HOWTO?

slight
 
Old 09-12-2003, 02:36 PM   #5
Flecko
Member
 
Registered: Sep 2003
Distribution: Slackware 9-ish
Posts: 30

Original Poster
Rep: Reputation: 15
I did follow the howto, and I did do the mrproper step. I've compiled kernels before, but this is just an oddball problem. As we speak, my laptop is furiously compiling 2.4.22 as per Modorfs suggestion. If it succeeds, I'll be sure to let you guys know. If it fails, then I'm clueless. Hopefully it succeeds and I can get working on 2.6.

If I get past the 2.4.22 build ok, then I'll try and post some of my error messages I get.

Thanks everyone,
-Flecko
 
Old 09-12-2003, 02:54 PM   #6
Flecko
Member
 
Registered: Sep 2003
Distribution: Slackware 9-ish
Posts: 30

Original Poster
Rep: Reputation: 15
Not good...while doing a "make zImage" on the 2.4.22 source...I get this...

memory.c: In function `do_wp_page':
memory.c:1004: internal error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [memory.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22/mm'
make: *** [_dir_mm] Error 2
bash-2.05b#


Anyone have any ideas? I'm gonna try cleaning and then doing a "make bzImage" for the time being...see what that does.

-Flecko
 
Old 09-12-2003, 03:07 PM   #7
Flecko
Member
 
Registered: Sep 2003
Distribution: Slackware 9-ish
Posts: 30

Original Poster
Rep: Reputation: 15
Ok...not good...after restarting the whole process, I got another error while doing the "make bzImage" step...

floppy.c: In function `redo_fd_request':
floppy.c:2985: internal error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [floppy.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.22/drivers/block'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22/drivers/block'
make[1]: *** [_subdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22/drivers'
make: *** [_dir_drivers] Error 2
bash-2.05b#

I'm stumped. Should I change gcc versions? This is really bugging me.

Thanks to everyone again,
-Flecko
 
Old 09-12-2003, 03:20 PM   #8
UnTamed
Member
 
Registered: Dec 2002
Location: Qc, Canada
Distribution: CRUX
Posts: 317

Rep: Reputation: 30
Try to patch to the latest -bk,
...and it might be a good idea to use "make" [...as suggested when your config is saved] instead of "make bzImage" and "make modules".
 
Old 09-12-2003, 03:31 PM   #9
Flecko
Member
 
Registered: Sep 2003
Distribution: Slackware 9-ish
Posts: 30

Original Poster
Rep: Reputation: 15
patch to the latest what? and I'll try just "make" in a few minutes....

-Flecko
 
Old 09-12-2003, 03:40 PM   #10
Flecko
Member
 
Registered: Sep 2003
Distribution: Slackware 9-ish
Posts: 30

Original Poster
Rep: Reputation: 15
just doing "make" caused yet another error in serial.c...

I'm totally clueless...I'm gonna reboot, and try building without being under X.

-Flecko
 
Old 09-12-2003, 03:48 PM   #11
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
the -bk that UnTamed referred to is a set of patches. You might also try the -ac line of patches, I've had good luck with the -ac patches. However considering it happens with both 2.4.22 and the 2.6.x kernels if I was you I would try to compile one of the old sources you previously compiled successfully to see if that works. Because if it doesn't it's probably not the new kernels.
 
Old 09-12-2003, 04:10 PM   #12
Modorf
LQ Newbie
 
Registered: Jul 2003
Location: Brooklyn, NY
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
Suggestion :: Do an MD5 verifictation of the source tar for linux-2.4.22

how much free space do you have, hard drive and ram? serious question.

Adding anything unusual to your kernel config (not sure how to clarify that further than post your .config file).
 
Old 09-12-2003, 04:10 PM   #13
zsejk
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 345
Blog Entries: 5

Rep: Reputation: 30
Something that would probably be completely annoying to do, but...



... perhaps you can try installing the latest stable gcc version, and then compile the newest kernel with that?

ftp://ftp.gnu.org/pub/gnu/gcc/gcc-3.3.1.tar.gz

-zsejk
 
Old 09-12-2003, 04:11 PM   #14
Flecko
Member
 
Registered: Sep 2003
Distribution: Slackware 9-ish
Posts: 30

Original Poster
Rep: Reputation: 15
Har...I dunno how or why, but getting the gcc version from slackware-current did the trick.

I would have never guessed it, but I'm in bizness. I'm building 2.6-test5 as we speak. Thanks everyone for putting up with me.

Note to other Toshiba 1625CDT users, compile the kernel with gcc3.2.3 or else =P

Thanks again!,
-Flecko
 
Old 09-13-2003, 12:57 AM   #15
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
I had faced this similar problem before. Build the kernel half way and encounter a gcc error.

However, (after some trial and error), I notice the problem seems to be related to hardware rather than software. Is your CPU overclocked? Or is your CPU overheated? You can try copy the same .config file and build it at antther system. After built, copy the bzImage to the target machine (remember to include the modules as well).

This is a work around that I can think of at the moment.

Built 2.6-test* kernel is easy, just make sure you have downloaded the new kernel module-init-toolsl from:

http://www.kernel.org/pub/linux/kern...rusty/modules/

Type make after the finish configure the kernel.

Refer to the kernel source Documentation/CHANGES files for details of dependancy to use 2.6-test kernel.

NOTE: 2.6.x compiling is a bit different from 2.4.x, so no all the steps for 2.4.x is same as 2.6.x

Hope this help...
 
  


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 problem kudos Fedora 1 09-30-2005 07:39 PM
problem to compile the kernel os2 Suse/Novell 1 09-03-2005 07:19 AM
kernel (2.6.10) compile problem Rarrum Linux - Software 2 01-20-2005 04:31 PM
Compile Kernel Problem duddy11 Linux - Newbie 1 07-31-2003 11:03 AM
kernel compile problem Syncrm Linux - Software 3 01-23-2002 03:10 PM


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