Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-24-2007, 08:15 PM   #1
LQ Newbie
Registered: Feb 2007
Posts: 28

Rep: Reputation: 11
Cannot make bzImage after compiling kernel

My system currently has a 350MHz AMD K6-2 CPU, 192MB of RAM.
I am running a 2.4.19-16mdk kernel, and version 3.2 of GCC.

I get the following error after trying to compile my kernel:

BFD: Warning: Writing section ".bss" to huge (ie negative) file offset 0xc03e7000.

objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated

make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1

make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2

make: *** [bzImage] Error 2

Note that only 18% of my 20GB hard drive is being used, and has more than enough free space. What could be causing this error?
Old 02-24-2007, 08:21 PM   #2
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze SMP AMD64
Posts: 3,318

Rep: Reputation: 126Reputation: 126
I'm not sure if it's the problem, but I think you really need to upgrade GCC.
Old 03-02-2007, 12:02 AM   #3
LQ Newbie
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
same with me

i also get the same problem.. can anyone help plz..
Old 03-03-2007, 03:40 AM   #4
LQ Newbie
Registered: Feb 2007
Posts: 28

Original Poster
Rep: Reputation: 11
Never mind, I found the problem myself. It was related to the version of binutils I was using, 2.12. The minimum version theoretically required was lower than the actual requirement, apparently. Several google searches turned up an article associating BFD with binutils. At first I wasn't sure how this was relevant, but I found a message in which someone indirectly implied that an older binutils can interfere with kernel compilation. I can't remember where I found it, but the person had used few x86 platforms, and after his version of Linux failed to compile the kernel, he said he would trying finding a computer "with a less ancient version of binutils." I inferred from this that an outdated version of binutils could interfere with kernel compilation, and updated mine to 2.16.1. Sure enough, the kernel compiled after the update (although it made me wait for it to recompile the entire kernel, which took about 2 and a half hours!).


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
trouble make bzImage on kernel 2.6.9 danchiaperini Linux - Software 2 12-01-2004 03:16 PM
Kernel compiling process problem. make bzimage fails. RJARRRPCGP Linux - Newbie 2 08-24-2004 04:14 PM
Problems compiling kernel (make bzImage) omegaworks Linux - General 3 08-18-2004 06:54 PM
Cannot cp the bzImage. Help plz first time compiling kernel sendas4 Linux - Newbie 6 07-20-2004 12:48 AM
Compiling the kernel...bzImage.. celtic32 Linux - General 11 08-28-2002 02:29 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

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