Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48216 - genkernel fails to build kernel 2.6.5
Summary: genkernel fails to build kernel 2.6.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-18 06:57 UTC by Benjamin Schulz
Modified: 2004-04-27 05:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Schulz 2004-04-18 06:57:45 UTC
I downloaded kernel 2.6.5. I a manual config it is complaining about devfs with a kernel panic. So I tried genkernel. This leads to 

ash-2.05b# genkernel all
* Gentoo Linux Genkernel; Version 3.0.2
* Compiling Linux Kernel 2.6.5-gentoo for x86...

/usr/bin/genkernel: line 95: [: print_info: integer expression expected
/usr/bin/genkernel: line 95: [: print_info: integer expression expected
* ERROR: Load loop support! 

and abortion.


emerge info prints out:

Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X aalib acpi acpi4linux alsa apm arts avi berkdb bonobo cdr cmucl crypt cups dga directfb doc emacs emacs-w3 encode esd foomaticdb gb gdbm gif ginac glut gnome gpm gtk gtk2 guile icc icc-pgo ifc imagemagick imlib ipv6 java javascript jpeg kde leim libg++ libwww mad mikmod mmx motif mozilla mpeg mpeg4 ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xine xml xml2 xmms xv zlib"
Comment 1 Imad R. Faiad 2004-04-18 14:30:26 UTC
have you ever considered lowering your CFLAGS, in particular, removing "-fforce-addr -funroll-loops" and changing
"-O3" to "-O2", after which do emerge -e world
what good is a clean compiled system, if it's broken
Comment 2 Benjamin Schulz 2004-04-18 14:40:18 UTC
thank you for your answer.

However, genkernel is a script. Do you think that the error in the script is due to the cflags? 

And regarding to the kernel panic when installing kernel 2.6.5: the kernel is to my knowledge *not* compiled with the cflags. The same behaviour of the kernel 2.6.5 (that it crashes complaining about defvs) is also reported by many other users in the forum (and not resolved yet). See here for the long thread: http://forums.gentoo.org/viewtopic.php?t=160518&highlight=defvs

regards
Comment 3 Jonathan Fors 2004-04-26 23:16:46 UTC
Perhaps try reemerging?
Comment 4 Jonathan Fors 2004-04-27 00:24:21 UTC
Perhaps try reemerging?
Comment 5 Benjamin Schulz 2004-04-27 01:14:17 UTC
I tried. It's OK now!
Comment 6 Jonathan Fors 2004-04-27 03:12:11 UTC
Great. Perhaps you could close the bug and leave it as resolved?
Comment 7 Benjamin Schulz 2004-04-27 05:22:58 UTC
resolved