Modify

Opened 6 years ago

Last modified 4 years ago

#11675 new defect

(ar71xx; gcc 4.7 linaro) openwrt fails to compile

Reported by: jeroen.louwes@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: build error common.co Cc:

Description

Since a few days, building an openwrt image fails. Please help... Thank you:

make[5]: Entering directory `/home/jeroen/OpenWRT/trunk/build_dir/linux-ar71xx_generic/linux-3.3.8'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      init/main.o
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_initrd.o
  LD      init/mounts.o
  CC      init/initramfs.o
  CC      init/calibrate.o
  LD      init/built-in.o
  HOSTCC  usr/gen_init_cpio
  GEN     usr/initramfs_data.cpio
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      arch/mips/ath79/prom.o
  CC      arch/mips/ath79/setup.o
  CC      arch/mips/ath79/irq.o
  CC      arch/mips/ath79/common.o
In file included from arch/mips/ath79/common.c:20:0:
arch/mips/ath79/common.c: In function 'ath79_device_reset_set':
/home/jeroen/OpenWRT/trunk/build_dir/linux-ar71xx_generic/linux-3.3.8/arch/mips/include/asm/mach-ath79/ath79.h:123:20: error: 'reg' may be used uninitialized in this function [-Werror=maybe-uninitialized]
arch/mips/ath79/common.c:63:6: note: 'reg' was declared here
In file included from arch/mips/ath79/common.c:20:0:
arch/mips/ath79/common.c: In function 'ath79_device_reset_clear':
/home/jeroen/OpenWRT/trunk/build_dir/linux-ar71xx_generic/linux-3.3.8/arch/mips/include/asm/mach-ath79/ath79.h:123:20: error: 'reg' may be used uninitialized in this function [-Werror=maybe-uninitialized]
arch/mips/ath79/common.c:89:6: note: 'reg' was declared here
In file included from arch/mips/ath79/common.c:20:0:
arch/mips/ath79/common.c: In function 'ath79_device_reset_get':
/home/jeroen/OpenWRT/trunk/build_dir/linux-ar71xx_generic/linux-3.3.8/arch/mips/include/asm/mach-ath79/ath79.h:123:20: error: 'reg' may be used uninitialized in this function [-Werror=maybe-uninitialized]
arch/mips/ath79/common.c:115:6: note: 'reg' was declared here
cc1: all warnings being treated as errors
make[7]: *** [arch/mips/ath79/common.o] Error 1
make[6]: *** [arch/mips/ath79] Error 2
make[5]: *** [arch/mips] Error 2
make[5]: Leaving directory `/home/jeroen/OpenWRT/trunk/build_dir/linux-ar71xx_generic/linux-3.3.8'
make[4]: *** [/home/jeroen/OpenWRT/trunk/build_dir/linux-ar71xx_generic/linux-3.3.8/.image] Error 2
make[4]: Leaving directory `/home/jeroen/OpenWRT/trunk/target/linux/ar71xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/jeroen/OpenWRT/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/jeroen/OpenWRT/trunk'
make[1]: *** [/home/jeroen/OpenWRT/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/jeroen/OpenWRT/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by jeroen.louwes@…

I can reproduce the error when i disable kernel bug support. I'd like the make the openwrt image even smaller by disabling it.

cat target/linux/ar71xx/config-3.3 | grep CONFIG_BUG
# CONFIG_BUG is not set

comment:2 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 new .
Author


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

 
Note: See TracTickets for help on using tickets.