Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
some external kernel modules fail to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mbreith
Apprentice
Apprentice


Joined: 09 Mar 2006
Posts: 196

PostPosted: Thu Apr 03, 2008 11:41 pm    Post subject: some external kernel modules fail to build Reply with quote

I'm trying to upgrade to the 2.6.24-gentoo-r4 kernel from the 2.6.23-gentoo-r6 that I am running right now. The problem is that some of the external modules are failing to build against it. The madwifi driver and the alsa-driver are the ones that are causing problems.

I did change the /usr/src/linux symlink before doing the module-rebuild.

Here are the error messages that I am getting.
Quote:
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.3/work/madwifi-0.9.3.3 ...
Preparing ath_hal module
../scripts/get_arch.mk:44: *** ARCH mismatch: supplied "x86", determined "i386". Stop.

ERROR: net-wireless/madwifi-ng-0.9.3.3 failed.
Call stack:
ebuild.sh, line 49: Called src_compile
environment, line 3149: Called linux-mod_src_compile
environment, line 2398: Called die
The specific snippet of code:
eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CC=\"$(get-KERNEL_CC)\" LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
The die message:
Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KERNELPATH=/lib/modules/2.6.24-gentoo-r4/build all

If you need support, post the topmost build error, and the call stack if relevant.

Quote:
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r4'
make: *** [compile] Error 2

ERROR: media-sound/alsa-driver-1.0.15 failed.
Call stack:
ebuild.sh, line 49: Called src_compile
environment, line 3909: Called die
The specific snippet of code:
emake LDFLAGS="$(raw-ldflags)" HOSTCC="$(tc-getBUILD_CC)" CC="$(tc-getCC)" || die "Make Failed";
The die message:
Make Failed

If you need support, post the topmost build error, and the call stack if relevant.

Both of these are working in the 2.6.23 kernel. I can even re-compile them (after I change the kernel symlink back).

Any idea what would cause these errors? I can post my .config if someone wants it, but it does take up a lot of room if it is not needed.
_________________
I don't stat chatspeak acronyms.
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1227
Location: Massachusetts USA

PostPosted: Fri Apr 04, 2008 5:03 am    Post subject: Reply with quote

Replace the external alsa driver with the alsa driver that is in the kernel.
Back to top
View user's profile Send private message
mbreith
Apprentice
Apprentice


Joined: 09 Mar 2006
Posts: 196

PostPosted: Fri Apr 04, 2008 5:32 pm    Post subject: Reply with quote

Well, that might work for the sound card, but it won't do anything for the wireless network card.

It also doesn't explain why the drivers, which work fine on the earlier kernel, don't work with the new one. Did I set something up wrong? I know originally I had the ramdrive and tempfs options turned off. That made udev fail during boot. Slightly less than useful at that point.
_________________
I don't stat chatspeak acronyms.
Back to top
View user's profile Send private message
jquinte
n00b
n00b


Joined: 01 May 2007
Posts: 74
Location: Berlin, Germany

PostPosted: Mon May 05, 2008 11:50 am    Post subject: Reply with quote

I think that you will find the solution here.

Good luck!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum