Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 114159

Summary: genkernel-3.3.8 fails to compile gentoo-sources-2.6.14-r2
Product: Gentoo Hosted Projects Reporter: Evgeniy Dushistov <dushistov>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: VERIFIED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: full log of error
kernel config

Description Evgeniy Dushistov 2005-12-01 09:10:33 UTC
I use such command line:
$pwd
/usr/src/linux-2.6.14-gentoo-r2
$genkernel --no-color --oldconfig --gensplash=emergence --kerneldir=./ all
and get:
*         >> Compiling 2.6.14-gentoo-r2 bzImage...
*         >> Compiling 2.6.14-gentoo-r2 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.14-gentoo-r2
* klibc: >> Compiling...
In file included from vsnprintf.c:12:
../include/limits.h:38:26: linux/limits.h: No such file or directory
In file included from ../include/unistd.h:11,
...

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Evgeniy Dushistov 2005-12-01 09:11:33 UTC
Created attachment 73894 [details]
full log of error
Comment 2 Evgeniy Dushistov 2005-12-01 09:12:22 UTC
Created attachment 73895 [details]
kernel config
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-12-01 10:31:00 UTC
Please post the output of "emerge --info" also...
Comment 4 Evgeniy Dushistov 2005-12-02 01:35:45 UTC
Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) XP 2600+
dev-lang/python:     2.3.5-r2, 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 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe"
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 /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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo ftp://mirror.aiya.ru/pub/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/evgeniy/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acl alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts 
bzip2 cdr cjk crypt cups curl doc eds emacs emboss encode esd exif expat fam fbcon firefox flac font-
server foomaticdb fortran gd gdbm gif gimpprint glut gmp gpm gstreamer gtk gtk2 idn imagemagick 
imlib ipv6 java jpeg junit kde lcms libcaca libg++ libwww mad maildir mhash mikmod ming mmx mng 
motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png 
ppds python qt quicktime readline recode scanner sdl slang speex spel spell sqlite sse ssl tcltk tcpd 
tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis wmf xml2 xv xvid zlib linguas_ru 
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2005-12-05 14:34:56 UTC
Try with:

a) A new source tree
b) No --oldconfig
c) Don't use --kerneldir=./; replace that with a fully resolved path if need be.
Comment 6 Evgeniy Dushistov 2005-12-06 05:21:21 UTC
Work for me. Thanks.

>a) A new source tree
>b) No --oldconfig
I ignore this advices, and use only

>c) Don't use --kerneldir=./; replace that with a fully resolved path if need be.

--kerneldir=`pwd`

and all work,
may usign realpath command or warn user about relative and absolute paths?

I use --kerneldir=./ since 2.4.x and all worked fine.