Modify

Opened 10 years ago

Closed 9 years ago

Last modified 4 years ago

#3816 closed defect (fixed)

ath9k internal compiler error

Reported by: acoul <alex_at_ozo.com Owned by: nico
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: ath9k internal compiler error Cc:

Description

compiling ath9k for atheros ar71xx gcc-4.2.4 & gcc-4.1.2 produce the following error:

  CC [M]  /extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080722/drivers/net/wireless/ath9k/hw.o
/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080722/drivers/net/wireless/ath9k/hw.c: In function 'ath9k_hw_spur_mitigate':
/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080722/drivers/net/wireless/ath9k/hw.c:4906: internal compiler error: in expand_expr_real_1, at expr.c:8760
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://dev.openwrt.org/> for instructions.
make[5]: *** [/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080722/drivers/net/wireless/ath9k/hw.o] Error 1
make[4]: *** [_module_/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/ath9k-20080722/drivers/net/wireless/ath9k] Error 2
make[4]: Leaving directory `/extra3/openwrt/ar71xx/trunk/build_dir/linux-ar71xx/linux-2.6.25.11'

Attachments (2)

001-workaround_gcc_ice.patch (1016 bytes) - added by nico 9 years ago.
Proposed patch for GCC ICE
gcc-powerpc-ice-fixes.patch (15.8 KB) - added by nico 9 years ago.
PowerPC GCC fixes for ICEs (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37014) and softfloat (http://bugs.uclibc.org/view.php?id=1588)

Download all attachments as: .zip

Change History (12)

comment:1 Changed 10 years ago by anonymous

this is from adm5120, the error looks the same.

make[4]: Entering directory `/extra3/openwrt/adm5120/trunk/build_dir/linux-adm5120_router_le/linux-2.6.25.12'
  CC [M]  /extra3/openwrt/adm5120/trunk/build_dir/linux-adm5120_router_le/ath9k-20080722/drivers/net/wireless/ath9k/hw.o
/extra3/openwrt/adm5120/trunk/build_dir/linux-adm5120_router_le/ath9k-20080722/drivers/net/wireless/ath9k/hw.c: In function 'ath9k_hw_spur_mitigate':
/extra3/openwrt/adm5120/trunk/build_dir/linux-adm5120_router_le/ath9k-20080722/drivers/net/wireless/ath9k/hw.c:4906: internal compiler error: in expand_expr_real_1, at expr.c:8760
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://dev.openwrt.org/> for instructions.
make[5]: *** [/extra3/openwrt/adm5120/trunk/build_dir/linux-adm5120_router_le/ath9k-20080722/drivers/net/wireless/ath9k/hw.o] Error 1
make[4]: *** [_module_/extra3/openwrt/adm5120/trunk/build_dir/linux-adm5120_router_le/ath9k-20080722/drivers/net/wireless/ath9k] Error 2

comment:2 Changed 10 years ago by acoul <alex at ozo.com>

I was able to compile ath9k under x86 using the following patch placing it under the trunk/package/mac80211/patches/101-remove-ssb.patch

diff -Nrub compat-wireless-2008-07-26/Makefile compat-wireless-2008-07-26-new/Makefile
--- compat-wireless-2008-07-26/Makefile 2008-07-18 07:11:03.000000000 +0300
+++ compat-wireless-2008-07-26-new/Makefile     2008-07-27 19:43:07.000000000 +0300
@@ -19,7 +19,6 @@
 obj-y := net/wireless/ net/mac80211/
 ifeq ($(ONLY_CORE),)
 obj-y += net/ieee80211/ \
-       drivers/ssb/ \
        drivers/misc/ \
        drivers/net/usb/ \
        drivers/net/wireless/

comment:3 Changed 10 years ago by acoul <alex@…>

the expand_expr_real_1 issue is still with us on mips platforms as of trunk 12062. I suspect that this issue does not occur under gcc-3.4

comment:4 Changed 10 years ago by acoul <alex@…>

ath9k compiles fine on brcm47xx with gcc-3.4.6.

kmod-ath9k_2.6.25.13+20080731-brcm47xx-1_mipsel.ipk

why brcm47xx platform was excluded from ath9k?

DEPENDS:=+kmod-mac80211 @!TARGET_brcm47xx

comment:5 Changed 10 years ago by acoul <alex@…>

goggling about this issue gave the following:

http://www.sfr-fresh.com/unix/misc/old/gcc-3.4.6.tar.gz:a/gcc-3.4.6/gcc/ChangeLog
http://www.sfr-fresh.com/unix/misc/gcc-4.2.4.tar.gz:a/gcc-4.2.4/gcc/ChangeLog-2004
http://www.sfr-fresh.com/unix/misc/gcc-4.2.4.tar.gz:a/gcc-4.2.4/gcc/ChangeLog-2006

comment:6 Changed 10 years ago by acoul <alex at ozo.com>

I created a relative ticket on the gcc bugzilla system

Changed 9 years ago by nico

Proposed patch for GCC ICE

comment:8 Changed 9 years ago by nico

  • Owner changed from developers to nico

comment:9 Changed 9 years ago by nico

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

Fixed in [12623], thanks for reporting and tracking it down!

comment:10 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

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.