Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119203 - Cannot build 3rd party modules with kernel 2.6.15
Summary: Cannot build 3rd party modules with kernel 2.6.15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High blocker (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 08:39 UTC by Neil Bothwick
Modified: 2006-01-24 12:14 UTC (History)
4 users (show)

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


Attachments
Log of failed emerge (5876-ieee80211softmac-0.1-r20060105.log,867.52 KB, text/plain)
2006-01-16 08:42 UTC, Neil Bothwick
Details
Kernel config file (.config,36.80 KB, text/plain)
2006-01-16 08:43 UTC, Neil Bothwick
Details
toolchain-funcs.eclass (ppc-kern.diff,940 bytes, patch)
2006-01-18 13:50 UTC, Joe Jezak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Bothwick 2006-01-16 08:39:39 UTC
Since installing gentoo-sources-2.6.15 (and -r1) I cannot build any third party kernel modules.
I have tried net-wireless/ieee80211softmac, media-video/spca5xx, net-wireless/zd1211 and net-wireless/linux-wlan-ng-modules. All of them fail with similar errors, I'll attach one of the log files. The same packages still install without problems on previous kernels. The .config is created from the 2.6.14 config using make oldconfig. I have had no such problems with my amd64 box.


# emerge --info
Portage 2.1_pre3-r1 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r1 ppc)
=================================================================
System uname: 2.6.15-gentoo-r1 ppc 7447A, altivec supported
Gentoo Base System version 1.12.0_pre14
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -fomit-frame-pointer"
DISTDIR="/mnt/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.digimed.co.uk/ http://pandemonium.tiscali.de/pub/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ ftp://mirror.nutsmaas.nl/gentoo"
LANG="en_GB"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/mnt/portage/packages/krikkit"
PORTAGE_TMPDIR="/mnt/scratch"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/portage/local"
SYNC="rsync://desiato/gentoo"
USE="ppc X alsa altivec arts artswrappersuid audiofile berkdb bitmap-fonts bluetooth bonobo bzip2 cdb cddb cdr crypt cups curl dbus dv dvd emboss encode exif expat fam ffmpeg flac foomaticdb gdbm gif gimpprint gmp gphoto2 gpm gtk gtk2 guile hal ieee1394 imagemagick imlib java jpeg kde kdeenablefinal libwww lua mad mng motif mp3 mpeg musicbrainz mysql ncurses nptl nptlonly offensive ogg oggvorbis opengl pcre pdflib perl png ppds python qt readline sdl slang speex spell ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vhosts vorbis wifi xine xml xml2 xmms xv zlib elibc_glibc kernel_linux linguas_en_GB userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 Neil Bothwick 2006-01-16 08:42:05 UTC
Created attachment 77270 [details]
Log of failed emerge
Comment 2 Neil Bothwick 2006-01-16 08:43:02 UTC
Created attachment 77271 [details]
Kernel config file
Comment 3 Henrik Brix Andersen 2006-01-16 09:27:54 UTC
Are you sure you have compile the source of linux-2.6.15? Try `make modules_prepare` and remerge the external modules.
Comment 4 Neil Bothwick 2006-01-16 10:21:05 UTC
I should have added, I have compiled and booted from the 2.6.15 kernel when these errors occur. 
Comment 5 Neil Bothwick 2006-01-17 04:30:50 UTC
I have now tried vanilla-sources and ck-sources, in addition to the original gentoo-sources, and all are affected the same way.
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2006-01-18 13:50:56 UTC
Created attachment 77463 [details, diff]
toolchain-funcs.eclass

This is caused by the fact that ARCH="powerpc" isn't the default for 2.6.15 on ppc32 (it is on ppc64), but it's assumed to be the default by toochain-funcs.eclass.  This problem will go away in 2.6.16 when ppc32 has ARCH="powerpc" for the default as well, but we'll need the patch to toolchain-funcs.eclass for now.
Comment 7 Joe Jezak (RETIRED) gentoo-dev 2006-01-18 14:02:21 UTC
Adding ppc and ppc64, since this patch would affect ppc64 too.
Comment 8 Lars Weiler (RETIRED) gentoo-dev 2006-01-18 14:16:51 UTC
This really stops us from releasing 2006.0 in time.

Suggestion: create a release with 2.6.15 or 2.6.14 as CD-kernel, so that the last PPC-PowerBooks are supported.  Users should install 2.6.14-gentoo-sources on their system, so that their ide-controller is supported, as it is not in vanilla-sources.  Furthermore external module-building will work.

After 2.6.16 has been released, we could create a 2006.0-r1 with updated snapshot and InstallCD.
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-18 14:23:34 UTC
We should not *ever* put out an official release CD with a kernel on it (or *any* package, for that matter) that is not marked stable in the tree.  For one, it is a QA mightmare to do so.  Second, it means extra hoops for our users to jump through to be able to get the same environment as the CD.
Comment 10 Lars Weiler (RETIRED) gentoo-dev 2006-01-18 14:50:12 UTC
(In reply to comment #9)
> We should not *ever* put out an official release CD with a kernel on it (or
> *any* package, for that matter) that is not marked stable in the tree.

As we use gentoo-sources, it should not be a problem to use a 2.6.14-kernel.  This holds us back from adding the bcm43xx-driver (AirportExpress), but there is another issue with the firmware on the CD.  So staying with 2.6.14 is okay for me.
Comment 11 Neil Bothwick 2006-01-18 16:00:31 UTC
That seems to be working now, thanks for the patch.

Now I can try to get my Airport Extreme to work.
Comment 12 Neil Bothwick 2006-01-20 09:07:09 UTC
Ack! I've just noticed a but - why is there always a but?

When doing an emerge world with the patched eclass, I get hundreds of lines like this for each kernel ebuild

QA Notice: awk in global scope: sys-kernel/gentoo-sources-2.6.14-r2

Comment 13 Joe Jezak (RETIRED) gentoo-dev 2006-01-24 12:14:03 UTC
I've added the fix to the tree, it's ugly, but I don't see another way. :p