Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95135 - kernel-2.eclass and linux-headers-2.6.8.11-r1
Summary: kernel-2.eclass and linux-headers-2.6.8.11-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: x86 Other
: High normal
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-05 10:00 UTC by Elias Probst
Modified: 2005-06-05 17:16 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 Elias Probst 2005-06-05 10:00:55 UTC
When trying to emerge linux-headers-2.6.11-r1, I get this: 


 * This version of linux-headers does not support i386.
 * Please merge the appropriate sources, in most cases
 * this will be i386-headers.

!!! ERROR: sys-kernel/linux-headers-2.6.11-r1 failed.
!!! Function setup_headers, Line 318, Exitcode 0
!!! incorrect headers
!!! If you need support, post the topmost build error, NOT this status message.


Couldn't find the reason, why this doesn't work, but found a suspicious function in kernel-2.eclass (see my inserted comments):

setup_headers() {
    [[ -z ${H_SUPPORTEDARCH} ]] && H_SUPPORTEDARCH=${PN/-*/}
# Why do we check for a variable here ( -z),
# that is never before set to any value?
    for i in ${H_SUPPORTEDARCH}; do
        [[ $(tc-arch) == "${i}" ]] && H_ACCEPT_ARCH="yes"
    done

    if [[ ${H_ACCEPT_ARCH} != "yes" ]]; then
        echo
        eerror "This version of ${PN} does not support $(tc-arch)."
        eerror "Please merge the appropriate sources, in most cases"
        eerror "(but not all) this will be called $(tc-arch)-headers."
        die "Package unsupported for $(tc-arch)"
    fi
}

This is my emerge info:
emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
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.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -march=athlon-xp -mfpmath=sse"
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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -march=athlon-xp -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="german"
LC_ALL="de_DE_utf8"
LINGUAS="de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/multimedia/porttemp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 16bit 3ds S3TC X a52 aac aalib acpi acpi4linux alsa apache2 apm artswrappersuid audiofile avi bash-completion beepmp berkdb bidi bitmap-fonts bmp bonobo cairo ccache cdda cddb cdinstall cdio cdparanoia cdr clanJavaScript clanVoice codecs crypt css cups curl dba dga dio divx4linux dmx dts dvd dvdr dvdread edl emboss encode esd evo exif faad fam fame fb fbcon ffmpeg flac flash foomaticdb fortran freetype ftp gatos gd gdbm geoip gif gimp gimpprint glitz gphoto2 gpm gstreamer gtk gtk2 hal hbci howl icq imagemagick imap imlib ipv6 jabber jack java javascript jikes jit jp2 jpeg jpeg2k junit kde kerberos koffice-plugin krb4 lcms ldap libcaca libg++ libwww live lzo lzw mad maildir matroska mbox mbrola memlimit mikmod mime ming mjpeg mng motif mozilla moznocompose moznoirc moznomail mozp3p mozplaintext mozsvg mp3 mpeg mpeg4 mplayer music mysql ncurses network nls nocd nowin nptl nptlonly nvidia odbc offensive ogg oggvorbis openal opengl oscar oss pam pdflib perl php physfs pic plotutils png pnp povray ppds python qemu-fast qhull qt quicktime readline real rtc samba sdk sdl slang slp softmmu sounds spell ssl stencil-buffer stream stroke svg svga tcltk tcpd tcsim tetex theora tiff transcode truetype truetype-fonts trusted type1 type1-fonts unicode usb userlocales utf8 vcd vcdimager videos vlm vorbis win32codecs wmf wxwindows xanim xine xinerama xml xml2 xmms xosd xrandr xv xvid xvmc zeroconf zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS


Greetings

Elias P.
Comment 1 Elias Probst 2005-06-05 17:16:05 UTC
Problem solved... after days of searching a non-existent error..  
I had laying around an old kernel-2.eclass in ${PORTDIR_OVERLAY}/eclass 
 
Sorry for this. 
 
Greetings 
 
Elias P.