Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107095 - Ebuilds that require kernel version detection fail
Summary: Ebuilds that require kernel version detection fail
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 08:29 UTC by Alex
Modified: 2005-09-24 17:57 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 Alex 2005-09-24 08:29:47 UTC
I can't install anything that requires kernel version detection. Portage  
ALWAYS FAILS to find the f*cking kernel version, although I checked all the  
possible causes:   
-- the kernel sources are installed  
-- the kernel I'm running is built from them  
-- I didn't remove the compiled stuff generated during the build process  
-- /usr/src/linux points to the right dir  
-- /usr/src/linux/Makefile exists and is correct.  
-- /usr/src/linux/include/linux/version.h exists and is correct.  
 
uname -r ALWAYS returns the right kernel version but Portage fails to take 
advantage of that and probably uses some obscure implementation to do that 
that fails huge time. 
  

Reproducible: Always
Steps to Reproduce:
1. emerge any package that is built against the kernel (nvidia-kernel, hal, 
bestcrypt, whatever) 
2. 
3. 
 
Actual Results:  
 * Determining the location of the kernel source code 
 * Found kernel source directory: 
 *     /usr/src/linux 
 * Could not detect kernel version. 
 * Please ensure that /usr/src/linux points to a complete set of Linux 
sources. 
 
!!! ERROR: media-video/nvidia-kernel-1.0.7676 failed. 
!!! Function linux-info_pkg_setup, Line 526, Exitcode 1 
!!! Unable to calculate Linux Kernel version 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 

Expected Results:  
It should install without any problem. 

Alex src # emerge info   
Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1,   
2.6.13.1-nitro1 i686)   
=================================================================   
System uname: 2.6.13.1-nitro1 i686 AMD Athlon(tm) XP 1800+   
Gentoo Base System version 1.12.0_pre8   
ccache version 2.4 [enabled]   
dev-lang/python:     2.3.5, 2.4.1-r1   
sys-apps/sandbox:    1.2.13   
sys-devel/autoconf:  2.13, 2.59-r7   
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6   
sys-devel/binutils:  2.16.1   
sys-devel/libtool:   1.5.20   
virtual/os-headers:  2.6.11-r2   
ACCEPT_KEYWORDS="x86 ~x86"   
AUTOCLEAN="yes"   
CBUILD="i686-pc-linux-gnu"   
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math   
-momit-leaf-frame-pointer -ftracer -fforce-addr"   
CHOST="i686-pc-linux-gnu"   
CONFIG_PROTECT="/etc /etc/conf.d /etc/firehol /etc/modules.autoload.d /etc/samba /etc/ssh /etc/syslog-ng /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/splash /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"   
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math   
-momit-leaf-frame-pointer -ftracer -fforce-addr -fvisibility-inlines-hidden"   
DISTDIR="/usr/portage/distfiles"   
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"   
GENTOO_MIRRORS="ftp://ftp.proxad.net/pub/Distributions_Linux/Gentoo   
http://gentoo.osuosl.org   
http://www.ibiblio.org/pub/Linux/distributions/gentoo"   
LDFLAGS="-Wl,-O1"   
MAKEOPTS="-j2"   
PKGDIR="/mnt/shared/packages"   
PORTAGE_TMPDIR="/var/tmp"   
PORTDIR="/usr/portage"   
PORTDIR_OVERLAY="/usr/local/portage"   
SYNC="rsync://rsync.ro.gentoo.org/gentoo-portage"   
USE="3dnow 3dnowext X acl acpi alsa apache2 apm arts avi bash-completion   
berkdb bitmap-fonts bluetooth bzip2 cdr crypt cups dbus dio divx4linux   
dlloader dvd dvdr eds emboss encode fam fbcon font-server foomaticdb ftp gdbm   
gif gpm hal imagemagick imlib ithreads java jpeg kde kdexdeltas libg++ libwww   
lirc lm_sensors mad mikmod mmx mmxext mp3 mpeg nas ncurses nls nptl nptlonly   
nvidia ogg oggvorbis opengl oss pam pdflib perl png posix ppds python qt   
quicktime readline samba scanner sdl spell sse ssl svg sysvipc tcpd tiff   
truetype truetype-fonts type1-fonts unicode usb userlocales v4l vorbis   
win32codecs wmf x86 xine xml2 xv xvid yahoo zlib userland_GNU kernel_linux   
elibc_glibc"   
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS   
   
   
P.S.: Don't tell it's because of my CFLAGS/Reiser4/GCC/nitro-sources because   
it's not. It worked with these when I installed my Gentoo.  
P.P.S.: I can attach the error messages if needed but I doubt it is useful 
since they all say the same thing, and 40% of the time Portage doesn't return 
an error message, it just stops.
Comment 1 Patrick Lauer gentoo-dev 2005-09-24 08:33:09 UTC
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math   
-momit-leaf-frame-pointer -ftracer -fforce-addr" 
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math   
-momit-leaf-frame-pointer -ftracer -fforce-addr -fvisibility-inlines-hidden"
"and 40% of the time Portage doesn't return an error message, it just stops."

hmmm ... do I sense a pattern there?
Comment 2 Alex 2005-09-24 09:03:39 UTC
So what do you suggest ? How can you explain that I managed to build my system 
entirely with these CFLAGS without an error and now suddenly it doesn't work ? 
 
Don't think so .... 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-24 09:09:12 UTC
(In reply to comment #2)
> So what do you suggest ? 

Stop ricing. And BTW, nitro sources are not supported. 

Closing.
Comment 4 Alex 2005-09-24 16:59:59 UTC
(In reply to comment #3) 
> (In reply to comment #2) 
> > So what do you suggest ?  
>  
> Stop ricing. And BTW, nitro sources are not supported.  
>  
> Closing. 
 
The gentoo-sources do the same wonderfull job. This clearly is NOT 
kernel-related.  
 
If you don't want to help at lease tell me where can I find Portage's function 
that finds the kernel version.  
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-24 17:55:10 UTC
The point is that your set of compiler flags definitely breaks code. We don't
work for ricers and every developer is fine to close their bug reports without a
second look. When _you_ found the functionality that does the kernel detection,
write a patch, attach it and reopen. In this case the kernel guys may decide to
include it.
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-24 17:57:00 UTC
ew