LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 04-04-2006, 11:22 AM   #1
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Rep: Reputation: 34
Kernel update


I installed dsl on my hard disk and tried to compile the newest kernel on my own. These are the steps that i have followed. However i get the error you can see. Any ideas on how to solve it?


1) Install gcc1.dsl

2) Install kernelsource.dsl. This will create /usr/src file tree.

3) Download linux-2.4.31.tar.gz and linux-2.4.31.tar.gz.md5.txt

4) Check sum: #md5sum -c linux-2.4.31.tar.gz.md5.txt

5) Install tcltk8.3.dsl in order make xconfig to work.

6) Download dsl.config

7) Run #make xconfig and load dsl.config file

8) Do the appropriate changes. Save the configuration to a config file for further use. Press save and exit.

9) Run #make dep clean

10) Run #make bzImage

root@box:/usr/src/linux-2.4.31# make bzImage
gcc -Wall -Wstrict-prototypes -02 -fomit-frame-pointer -o scripts/split-include
scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D -I/usr/src/linux-2.4.31/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.

{standard input}: Assembler messages:
{standard input}:0: Warning: end of file not at end of line; newline inserted
make: *** [init/main.o] Error 1
{standard input}:990: Error: no such instruction: `c'
 
Old 04-04-2006, 12:46 PM   #2
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Original Poster
Rep: Reputation: 34
The problem occured because i hadn't create a swap space and gcc run out of memory.

An easy way to create a swap file in /tmp is the following:

dd if=/dev/zero of=/tmp/swap bs=1024k count=64
mkswap /tmp/swap
swapon /tmp/swap

This creates a 64 MB swap file in the tmp directory. The last command has to be run in every boot.
 
Old 04-04-2006, 02:09 PM   #3
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Original Poster
Rep: Reputation: 34
Compiling continued but stopped again with this error. Possible solutions?

make[2]: Leaving directory `/usr/src/linux-2.4.31/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.31/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux-2.4.31/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/net/fc/fc.o drivers/net/tokenring/tr.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/media/media.o drivers/md/mddev.o crypto/crypto.o \
net/network.o \
/usr/src/linux-2.4.31/arch/i386/lib/lib.a /usr/src/linux-2.4.31/lib/lib.a /usr/src/linux-2.4.31/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
arch/i386/kernel/head.o(.text+0x18d): In function `is386':
: undefined reference to `start_kernel'
init/do_mounts.o(.text+0xd2): In function `do_linuxrc':
: undefined reference to `envp_init'
arch/i386/kernel/kernel.o(.text.init+0x1c69): In function `check_cx686_slop':
: undefined reference to `calibrate_delay'
arch/i386/kernel/kernel.o(.text.init+0x1c73): In function `check_cx686_slop':
: undefined reference to `loops_per_jiffy'
arch/i386/kernel/kernel.o(.text.init+0x2a22): In function `identify_cpu':
: undefined reference to `loops_per_jiffy'
kernel/kernel.o(.text+0x10b6): In function `reparent_to_init':
: undefined reference to `child_reaper'
kernel/kernel.o(.text+0x10c1): In function `reparent_to_init':
: undefined reference to `child_reaper'
kernel/kernel.o(.text+0x573b): In function `exit_notify':
: undefined reference to `child_reaper'
kernel/kernel.o(.text.init+0x3a): In function `init_idle':
: undefined reference to `wait_init_idle'
kernel/kernel.o(__ksymtab+0xbd8): undefined reference to `loops_per_jiffy'
make: *** [vmlinux] Error 1
 
  


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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 10:27 AM
YaST Online Update(YOU) Kernel Update? batorma Linux - Newbie 9 10-30-2005 03:17 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 11:01 AM
KDE update and RH 9.0 Kernel update massacre Linux - Newbie 1 02-02-2004 06:13 PM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 07:34 AM.

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