Modify

Opened 11 years ago

Closed 11 years ago

#2045 closed defect (fixed)

r7880 LINUX_2_4_BRCM madwifi build failure even when PACKAGE_kmod-madwifi is not set

Reported by: seniorr@… Owned by: developers
Priority: high Milestone:
Component: packages Version:
Keywords: Cc:

Description

I checked out a fresh version of r7880 and compiled it for LINUX_2_4_BRCM and CONFIG_LINUX_2_4_BRCM_Broadcom=y, with CONFIG_ALL=y. The first time, the build died in the madwifi build, so I reconfigured with madwifi unselected. It died in the same spot. Then, in case some make infrastructure had become confused, I blew away the tree and started fresh with madwifi unselected, and it still died. So: a) something is wrong madwifi in that it doesn't build; and b) something is wrong with the build infrastructure that madwifi is still being built even when not selected. Here is the end of the build session:

make -C madwifi compile
find: /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704: No such file or directory
make[3]: Entering directory `/aux2/src/openwrt-2.4/trunk/package/madwifi'
WARNING: skipping kmod-madwifi -- package not selected
gzip -dc /aux2/src/openwrt-2.4/trunk/dl/madwifi-ng-r2537-20070704.tar.gz | /bin/tar -C /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/.. -xf -

Applying ./patches/100-kernel_cflags.patch using plaintext: 
patching file hal/public/mips-be-elf.inc
patching file hal/public/mips-le-elf.inc
patching file hal/public/xscale-be-elf.inc

Applying ./patches/102-multicall_binary.patch using plaintext: 
patching file tools/80211debug.c
patching file tools/80211stats.c
patching file tools/athchans.c
patching file tools/athctrl.c
patching file tools/athdebug.c
patching file tools/athkey.c
patching file tools/athstats.c
patching file tools/do_multi.c
patching file tools/do_multi.h
patching file tools/Makefile
patching file tools/wlanconfig.c

Applying ./patches/104-autocreate_none.patch using plaintext: 
patching file ath/if_ath.c

Applying ./patches/105-ratectl_attach.patch using plaintext: 
patching file net80211/ieee80211_rate.c

Applying ./patches/110-init_fix_PR_914.patch using plaintext: 
patching file ath/if_ath.c

Applying ./patches/111-minstrel_crash.patch using plaintext: 
patching file ath_rate/minstrel/minstrel.c

Applying ./patches/112-keycache_PR_962.patch using plaintext: 
patching file ath/if_ath.c
Hunk #1 succeeded at 5730 (offset 4 lines).
patching file net80211/ieee80211_node.c
patching file net80211/ieee80211_node.h

Applying ./patches/113-no_ibss_pwrsave.patch using plaintext: 
patching file net80211/ieee80211_scan.c

Applying ./patches/116-adhoc_beacon_PR_1033.patch using plaintext: 
patching file ath/if_ath.c
Hunk #1 succeeded at 4426 (offset 4 lines).
Hunk #2 succeeded at 4464 (offset 4 lines).
Hunk #3 succeeded at 4534 (offset 4 lines).
Hunk #4 succeeded at 4548 (offset 4 lines).
Hunk #5 succeeded at 4600 (offset 4 lines).
Hunk #6 succeeded at 4622 (offset 4 lines).
Hunk #7 succeeded at 4659 (offset 4 lines).

Applying ./patches/120-soc_fix.patch using plaintext: 
patching file ath/if_ath_ahb.c

Applying ./patches/121-ibss_hostap.patch using plaintext: 
patching file ath/if_ath.c
Hunk #8 succeeded at 3373 (offset -7 lines).
Hunk #9 succeeded at 5820 (offset -7 lines).
patching file ath/if_athvar.h
patching file net80211/ieee80211_beacon.c
patching file net80211/ieee80211_input.c
Hunk #1 succeeded at 2981 (offset 1 line).
Hunk #2 succeeded at 2996 (offset 1 line).
patching file net80211/ieee80211_node.c

Applying ./patches/122-replayfail_workaround.patch using plaintext: 
patching file net80211/ieee80211_linux.c

Applying ./patches/123-ccmp_checks.patch using plaintext: 
patching file net80211/ieee80211_crypto_ccmp.c

Applying ./patches/200-no_debug.patch using plaintext: 
patching file ath/if_ath.c
patching file ath_rate/amrr/amrr.c
patching file ath_rate/minstrel/minstrel.c
patching file ath_rate/onoe/onoe.c
patching file ath_rate/sample/sample.c
patching file net80211/ieee80211_proto.c
patching file net80211/ieee80211_var.h
patching file tools/do_multi.c
patching file tools/Makefile

Applying ./patches/300-napi_polling.patch using plaintext: 
patching file ath/if_ath.c
Hunk #7 succeeded at 3330 (offset -7 lines).
Hunk #8 succeeded at 3346 (offset -7 lines).
Hunk #9 succeeded at 5597 (offset -7 lines).
Hunk #10 succeeded at 5615 (offset -7 lines).
Hunk #11 succeeded at 5647 (offset -7 lines).
Hunk #12 succeeded at 5692 (offset -7 lines).
Hunk #13 succeeded at 5909 (offset -7 lines).
Hunk #14 succeeded at 7553 (offset -8 lines).
Hunk #15 succeeded at 7585 (offset -8 lines).
Hunk #16 succeeded at 7606 (offset -8 lines).
Hunk #17 succeeded at 7633 (offset -8 lines).
Hunk #18 succeeded at 7642 (offset -8 lines).
Hunk #19 succeeded at 7750 (offset -8 lines).
Hunk #20 succeeded at 9269 (offset -8 lines).
patching file ath/if_athvar.h
Hunk #4 succeeded at 714 (offset -8 lines).
patching file net80211/ieee80211_input.c

Applying ./patches/301-tx_locking.patch using plaintext: 
patching file ath/if_ath.c
Hunk #1 succeeded at 2559 (offset -8 lines).
Hunk #2 succeeded at 2567 (offset -8 lines).
Hunk #3 succeeded at 2590 (offset -8 lines).
Hunk #4 succeeded at 2602 with fuzz 2 (offset -8 lines).
Hunk #5 succeeded at 2615 (offset -8 lines).
Hunk #6 succeeded at 2664 (offset -10 lines).
patching file ath/if_athvar.h

Applying ./patches/305-pureg_fix.patch using plaintext: 
patching file ath/if_ath.c
Hunk #1 succeeded at 3385 (offset -7 lines).
patching file net80211/ieee80211_input.c
patching file net80211/ieee80211_node.c
patching file net80211/ieee80211_proto.c
patching file net80211/ieee80211_var.h

Applying ./patches/309-micfail_detect.patch using plaintext: 
patching file ath/if_ath.c
Hunk #1 succeeded at 5619 (offset -7 lines).
Hunk #2 succeeded at 5714 (offset -7 lines).
Hunk #3 succeeded at 5778 (offset -7 lines).
Hunk #4 succeeded at 5811 (offset -7 lines).
patching file net80211/ieee80211_crypto_ccmp.c
patching file net80211/ieee80211_crypto.h
patching file net80211/ieee80211_crypto_none.c
patching file net80211/ieee80211_crypto_tkip.c
patching file net80211/ieee80211_crypto_wep.c
patching file net80211/ieee80211_input.c
Hunk #2 succeeded at 3772 (offset 1 line).
patching file net80211/ieee80211_proto.h
patching file net80211/ieee80211_linux.c
patching file net80211/ieee80211_output.c
patching file net80211/ieee80211_node.c

Applying ./patches/310-erp_beacon_check.patch using plaintext: 
patching file net80211/ieee80211_beacon.c
touch /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/.prepared_cdeef6ca2521f470d2e8c2b47bb30752
/aux2/src/openwrt-2.4/trunk/staging_dir_mipsel/bin/sed -i -e 's,-E[LB] ,,g' /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/hal/public/*.inc
touch /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/.configured
COPTS="-DCONFIG_ATHEROS_RATE_DEFAULT='\"minstrel\"'" make -C /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704 PATH="/aux2/src/openwrt-2.4/trunk/staging_dir_mipsel
make[4]: Entering directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704'
Checking requirements... ok.
Checking kernel configuration... ok.
scripts/if_ath_hal_generator.pl
for i in ./ath ./ath_hal ath_rate/minstrel ./net80211; do \
                make -C $i || exit 1; \
        done
make[5]: Entering directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/ath'
make -C /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/linux-2.4.34 SUBDIRS=/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/ath modules
make[6]: Entering directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/linux-2.4.34'
make -C  /aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/ath CFLAGS="-D__KERNEL__ -I/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/linux-2.4.34/include 
make[7]: Entering directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/ath'
mipsel-linux-uclibc-gcc -D__KERNEL__ -I/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/linux-2.4.34/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -
if_ath.c: In function `ath_vap_create':
if_ath.c:1170: warning: unused variable `slot'
if_ath.c: In function `ath_suspend':
if_ath.c:1346: warning: unused variable `sc'
if_ath.c: In function `ath_resume':
if_ath.c:1355: warning: unused variable `sc'
if_ath.c: In function `ath_hardstart':
if_ath.c:2522: error: `NETDEV_TX_OK' undeclared (first use in this function)
if_ath.c:2522: error: (Each undeclared identifier is reported only once
if_ath.c:2522: error: for each function it appears in.)
if_ath.c:2780: error: `NETDEV_TX_BUSY' undeclared (first use in this function)
if_ath.c: In function `ath_key_update_begin':
if_ath.c:3323: warning: unused variable `sc'
if_ath.c: In function `ath_key_update_end':
if_ath.c:3344: warning: unused variable `sc'
if_ath.c: In function `ath_tx_draintxq':
if_ath.c:7689: warning: unused variable `ah'
if_ath.c: In function `ath_draintxq':
if_ath.c:7760: warning: unused variable `npend'
make[7]: *** [if_ath.o] Error 1
make[7]: Leaving directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/ath'
make[6]: *** [_mod_/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/ath] Error 2
make[6]: Leaving directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/linux-2.4.34'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/ath'
make[4]: *** [modules] Error 1
make[4]: Leaving directory `/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704'
make[3]: *** [/aux2/src/openwrt-2.4/trunk/build_mipsel/linux-2.4-brcm/madwifi-ng-r2537-20070704/.built] Error 2
make[3]: Leaving directory `/aux2/src/openwrt-2.4/trunk/package/madwifi'
make[2]: *** [madwifi-compile] Error 2
make[2]: Leaving directory `/aux2/src/openwrt-2.4/trunk/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/aux2/src/openwrt-2.4/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by seniorr@…

It appears that hostapd and xsupplicant have build-depends on madwifi. I'll try deselecting them. Still, maybe this should be handled more gracefully.

comment:2 Changed 11 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in [7885]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.