Modify

Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#5023 closed defect (fixed)

Not compiled compat-wireless package in gcc 4.4.0

Reported by: sav Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: Cc:

Description

Not compiled compat-wireless package in gcc 4.4.0

make -C /home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/linux-2.6.28.9 M=/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31 modules
make[5]: Entering directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/linux-2.6.28.9'
  CC [M]  /home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/drivers/net/wireless/mac80211_hwsim.o
  CC [M]  /home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/drivers/net/wireless/ath5k/caps.o
  CC [M]  /home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/drivers/net/wireless/ath5k/initvals.o
/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/drivers/net/wireless/ath5k/initvals.c: In function 'ath5k_hw_ini_mode_registers':
/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/linux-2.6.28.9/arch/mips/include/asm/delay.h:81: error: impossible constraint in 'asm'
make[8]: *** [/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/drivers/net/wireless/ath5k/initvals.o] Error 1
make[7]: *** [/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/drivers/net/wireless/ath5k] Error 2
make[6]: *** [/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/drivers/net/wireless] Error 2
make[5]: *** [_module_/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31] Error 2
make[5]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/linux-2.6.28.9'
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31'
make[3]: *** [/home/sysadmin/wl500/OpenWrt/build/build_dir/linux-brcm47xx/compat-wireless-2009-03-31/.built] Error 2
make[3]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build/package/mac80211'
make[2]: *** [package/mac80211/compile] Error 2
make[2]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build'
make[1]: *** [/home/sysadmin/wl500/OpenWrt/build/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build'

Attachments (2)

build.log (25.9 KB) - added by sav 9 years ago.
009-gcc4_no_h_constraint.patch (1.5 KB) - added by sav 9 years ago.

Download all attachments as: .zip

Change History (14)

Changed 9 years ago by sav

comment:1 Changed 9 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

comment:2 Changed 9 years ago by miguel.gaio@…

I got same issue. linux mips does not like gcc 4.4.
You can found one solution here.
http://www.linux-mips.org/archives/linux-mips/2009-02/msg00052.html

comment:3 Changed 9 years ago by florian

Yes, this is the right patch to use, but it only works when compiling the kernel in 64-bits mode. 32-bits kernel still need to be adressed.

comment:4 Changed 9 years ago by norbert

same problem in scsi.o

  CC [M]  drivers/scsi/scsi.o
drivers/scsi/scsi.c: In function 'scsi_dispatch_cmd':
/home/norbert/25_LinuxDev/10_OpenWrt/openwrt_trunk_brcm47xx/
build_dir/linux-brcm47xx/linux-2.6.28.9/arch/mips/include/asm/
delay.h:81: error: impossible constraint in 'asm'

comment:5 Changed 9 years ago by kahi

Have you guys ever considered doing something like this (along the lines of the patch mentioned above):

#ifdef CONFIT_64BIT
    usecs = ((uint128_t)usecs * lpj) >> 64;
#else
#define SZHALF (sizeof(long)*4)
#define LOWERHALF ((0x1ul<<SZHALF) - 1)
    usecs = (usecs >> SZHALF) * (lpj >> SZHALF) + ( ((usecs & LOWERHALF) * (lpj >> SZHALF) + (usecs >> SZHALF) * (lpj & LOWERHALF)) >> SZHALF );
#undef SZHALF
#undef LOWERHALF
#endif

Just a thought :)

comment:6 Changed 9 years ago by sav

Thanks!
It compiling successfully, would work? ;-))

Changed 9 years ago by sav

comment:7 Changed 9 years ago by kahi

I believe so. Not sure if the time it takes to run is deemed acceptable by the folks who originally came up with the __udelay code though.
On the plus side I would hope that at least it is largely arch-independent (...which again kind of makes me wonder about the context we're using it in).

Anyways, feel free to give it a try and do with it whatever you feel is right :-)

comment:8 Changed 9 years ago by sav

Continue...:

Not build kernel:

  CC      arch/mips/kernel/time.o
arch/mips/kernel/time.c: In function 'clocksource_set_clock':
arch/mips/kernel/time.c:82: error: impossible constraint in 'asm'
make[6]: *** [arch/mips/kernel/time.o] Error 1
make[5]: *** [arch/mips/kernel] Error 2
make[5]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build-4.4.0/build_dir/linux-brcm47xx/linux-2.6.28.10'
make[4]: *** [/home/sysadmin/wl500/OpenWrt/build-4.4.0/build_dir/linux-brcm47xx/linux-2.6.28.10/.image] Error 2
make[4]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build-4.4.0/target/linux/brcm47xx'

comment:9 follow-up: Changed 9 years ago by luigi.mantellini@…

comment:10 in reply to: ↑ 9 Changed 9 years ago by sav

comment:11 Changed 9 years ago by florian

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

Applied in [15797], thanks !

comment:12 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.