1 |
On Monday 01 October 2007, Jason wrote: |
2 |
> Didn't find this on google and thought it might be useful for those on |
3 |
> the list. |
4 |
> |
5 |
> Status: cross-compile toolchain built, xmerge and xkmake work. |
6 |
> Problem: can't xmerge kernel module ebuilds |
7 |
> Symptoms: Error messages like the following: |
8 |
> |
9 |
> ### Start Error Msg ### |
10 |
> |
11 |
> * Preparing ath_hal module |
12 |
> make -C /usr/armeb-softfloat-linux-uclibc/usr/src/linux |
13 |
> M=/var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath |
14 |
>_hal modules |
15 |
> make[1]: Entering directory |
16 |
> `/usr/armeb-softfloat-linux-uclibc/usr/src/linux-2.6.19-gentoo-r5' |
17 |
> CC [M] |
18 |
> /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_h |
19 |
>al/ah_os.o HOSTCC |
20 |
> /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_h |
21 |
>al/uudecode.o HOSTLD |
22 |
> /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_h |
23 |
>al/uudecode UUDECODE |
24 |
> /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_h |
25 |
>al/xscale-be-elf.hal.o LD [M] |
26 |
> /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_h |
27 |
>al/ath_hal.o ld: |
28 |
> /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_h |
29 |
>al/ah_os.o: Relocations in generic ELF (EM: 40) |
30 |
> /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_h |
31 |
>al/ah_os.o: could not read symbols: File in wrong format |
32 |
> make[2]: *** |
33 |
> [/var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9.3.2/ath_ |
34 |
>hal/ath_hal.o] Error 1 |
35 |
> make[1]: *** |
36 |
> [_module_/var/tmp/portage/net-wireless/madwifi-ng-0.9.3.2/work/madwifi-0.9. |
37 |
>3.2/ath_hal] Error 2 |
38 |
> make[1]: Leaving directory |
39 |
> `/usr/armeb-softfloat-linux-uclibc/usr/src/linux-2.6.19-gentoo-r5' |
40 |
> make: *** [all] Error 2 |
41 |
> |
42 |
> ### End Error Msg ### |
43 |
> |
44 |
> Solution: |
45 |
> # export MAKE=`which xkmake` |
46 |
> # xmerge -av madwifi-ng |
47 |
|
48 |
good to know ... usually i'm lazy and so i just set the ARCH and CROSS_COMPILE |
49 |
values manually in my kernel Makefiles so i dont have to remember to set the |
50 |
values properly ... |
51 |
|
52 |
perhaps longer term solution is to get the kernel eclasses to automagically |
53 |
set CROSS_COMPILE to ${CHOST}- ... i'll open a bug for it ... |
54 |
-mike |