View previous topic :: View next topic |
Author |
Message |
zirener n00b
Joined: 22 Dec 2005 Posts: 8 Location: Space, Tellus, Europe, Norway
|
Posted: Thu Dec 22, 2005 1:16 pm Post subject: My kernel won't compile |
|
|
Hi!
I've been using Gentoo for a couple of months now, and everything has just been great! However, yesterday I figured that I wanted to add support for my ATI Radeon card. I'm using genkernel, so I did the following:
Code: |
tuxbox ~ # cd /usr/src/linux
tuxbox linux # genkernel all
* Gentoo Linux Genkernel; Version 3.3.6
* Running with options: all
* Linux Kernel 2.6.14.2 for x86...
* kernel: >> Running mrproper...
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.6
* Previous config backed up to .config.bak
* >> Running oldconfig...
* kernel: >> Cleaning...
* kernel: >> Making dependencies...
* >> Compiling 2.6.14.2 bzImage...
* ERROR: Failed to compile the "bzImage" target...
* -- Grepping log... --
SCSI generic support (CHR_DEV_SG) [M/n/y/?] m
SCSI media changer support (CHR_DEV_SCH) [N/m/y/?] (NEW) *
* Some SCSI devices (e.g. CD jukebox) support multiple LUNs
*
Probe all LUNs on each SCSI device (SCSI_MULTI_LUN) [N/y/?] n
Verbose SCSI error reporting (kernel size +=12K) (SCSI_CONSTANTS) [N/y/?] n
--
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [M/y/?] m
* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" clean
* kernel: >> Making dependencies...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" dep
*** Warning: make dep is unnecessary now.
--
CC kernel/pid.o
CC arch/i386/kernel/nmi.o
CC kernel/rcupdate.o
CC arch/i386/kernel/io_apic.o
CC kernel/intermodule.o
kernel/intermodule.c:178: warning: `inter_module_register' is deprecated (declared at kernel/intermodule.c:38)
kernel/intermodule.c:179: warning: `inter_module_unregister' is deprecated (declared at kernel/intermodule.c:78)
kernel/intermodule.c:181: warning: `inter_module_put' is deprecated (declared at kernel/intermodule.c:159)
--
CC kernel/power/main.o
CC kernel/power/process.o
CC kernel/power/console.o
CC mm/swap.o
CC kernel/power/pm.o
kernel/power/pm.c:258: warning: `pm_register' is deprecated (declared at kernel/power/pm.c:62)
kernel/power/pm.c:259: warning: `pm_unregister' is deprecated (declared at kernel/power/pm.c:85)
kernel/power/pm.c:260: warning: `pm_unregister_all' is deprecated (declared at kernel/power/pm.c:114)
kernel/power/pm.c:261: warning: `pm_send_all' is deprecated (declared at kernel/power/pm.c:233)
--
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
/bin/sh: line 1: 23920 Segmentation fault ld -m elf_i386 -o .tmp_vmlinux1 -T arch/i386/kernel/vmlinux.lds arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/built-in.o --start-group usr/built-in.o arch/i386/kernel/built-in.o arch/i386/mm/built-in.o arch/i386/mach-default/built-in.o arch/i386/crypto/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o lib/lib.a arch/i386/lib/lib.a lib/built-in.o arch/i386/lib/built-in.o drivers/built-in.o sound/built-in.o arch/i386/pci/built-in.o arch/i386/power/built-in.o net/built-in.o --end-group
make: *** [.tmp_vmlinux1] Error 139
* Gentoo Linux Genkernel; Version 3.3.6
* Running with options: all
* ERROR: Failed to compile the "bzImage" target...
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
tuxbox linux #
|
The kernel has compiled perfectly before. I've tried to update the system, used a different kernel, but nothing works.
Does anyone know how I might fix this problem?
- Ståle
Edit: Let me know if you need the whole log |
|
Back to top |
|
|
Dizzutch Guru
Joined: 09 Nov 2004 Posts: 463 Location: Worcester, MA
|
Posted: Thu Dec 22, 2005 1:25 pm Post subject: |
|
|
search in the genkernel log for anything bzImage related. That might shed some light on *why* the bzImage couldn't be created, off the top of my head, lack of disk space? permissions?
-Dizz _________________ Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo |
|
Back to top |
|
|
zirener n00b
Joined: 22 Dec 2005 Posts: 8 Location: Space, Tellus, Europe, Norway
|
Posted: Thu Dec 22, 2005 2:09 pm Post subject: |
|
|
Thank's for the reply, Dizzutch! I really appreciate it.
However, it seems to be enough disk space on my partition:
Code: |
tuxbox linux # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 114839684 45481820 63524264 42% /
udev 387620 400 387220 1% /dev
/dev/hda1 38856 4334 32516 12% /boot
none 387620 0 387620 0% /dev/shm
|
Here is what the log says about bzImage. It looks like sh is segfaulting |
|
Back to top |
|
|
Dizzutch Guru
Joined: 09 Nov 2004 Posts: 463 Location: Worcester, MA
|
Posted: Thu Dec 22, 2005 3:00 pm Post subject: |
|
|
hmm interesting, try re-emerging bash, otherwise file a bugreport...unless somebody else has an answer for ya, cuz I havn't seen this before.
-Dizz _________________ Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20584
|
Posted: Thu Dec 22, 2005 6:10 pm Post subject: |
|
|
Moved from Other Things Gentoo _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Thu Dec 22, 2005 6:12 pm Post subject: |
|
|
Segfaults can be a big pain in the butt. Please post the output of `emerge --info`. You're not using any unstable compiler settings are you? Have you tried running memtest on your box to make sure the RAM is ok? _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
zirener n00b
Joined: 22 Dec 2005 Posts: 8 Location: Space, Tellus, Europe, Norway
|
Posted: Thu Dec 22, 2005 7:32 pm Post subject: |
|
|
Oops, sorry for posting in wrong category
Here's the output of emerge --info
Code: |
tuxbox linux # emerge --info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python: 2.3.5, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium4 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi bitmap-fonts bzip2 crypt cups curl dvd eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gnome gpm gstreamer gtk gtk2 guile idn imagemagick imap imlib ipv6 java jpeg junit lcms libg++ libwww mad mhash mikmod mng motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl pam pcre pdflib perl png python qt quicktime readline recode ruby samba sdl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
|
Edit: Uhm, no point in pasting make.conf again, heh _________________ WebSVN |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|