Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10983 closed defect (fixed)

[atheros] kernel compilation still broken after upgrade to gcc 4.6

Reported by: hanno.schupp@… Owned by: developers
Priority: highest Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:

Description

As per title. Compilation of atheros target in trunk 30565 still fails, even after 'make dirclean' or 'make target/linux/clean':

make[2]: Leaving directory `/home/hanno/trunk'
make[2]: Entering directory `/home/hanno/trunk'
make[3]: Entering directory `/home/hanno/trunk/target/linux'
make[4]: Entering directory `/home/hanno/trunk/target/linux/atheros'
/home/hanno/trunk/scripts/kconfig.pl  + /home/hanno/trunk/target/linux/generic/config-2.6.37 /home/hanno/trunk/target/linux/atheros/config-2.6.37 > /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/hanno/trunk/.config >> /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.target
echo "# CONFIG_KPROBES is not set" >> /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.target
/home/hanno/trunk/scripts/metadata.pl kconfig /home/hanno/trunk/tmp/.packageinfo /home/hanno/trunk/.config > /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.override
/home/hanno/trunk/scripts/kconfig.pl 'm+' '+' /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.target /dev/null /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.override > /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config
mv /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.old
grep -v INITRAMFS /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config.old > /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config
export MAKEFLAGS= ;make -C /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6 CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" CC="mips-openwrt-linux-uclibc-gcc" oldconfig prepare scripts
make[5]: Entering directory `/home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
make[5]: Leaving directory `/home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6'
rm -rf /home/hanno/trunk/build_dir/linux-atheros/modules
. /home/hanno/trunk/include/shell.sh; grep '=[ym]' /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.config | LC_ALL=C sort | md5s > /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.vermagic
touch /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.configured
rm -f /home/hanno/trunk/build_dir/target-mips_uClibc-0.9.33/root-atheros/init
make -C /home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6 CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" CC="mips-openwrt-linux-uclibc-gcc" 
make[5]: Entering directory `/home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      arch/mips/kernel/signal.o
arch/mips/kernel/signal.c: In function 'protected_restore_fp_context':
arch/mips/kernel/signal.c:87:11: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[7]: *** [arch/mips/kernel/signal.o] Error 1
make[6]: *** [arch/mips/kernel] Error 2
make[5]: *** [arch/mips] Error 2
make[5]: Leaving directory `/home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6'
make[4]: *** [/home/hanno/trunk/build_dir/linux-atheros/linux-2.6.37.6/.image] Error 2
make[4]: Leaving directory `/home/hanno/trunk/target/linux/atheros'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/hanno/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/hanno/trunk'
make[1]: *** [/home/hanno/trunk/staging_dir/target-mips_uClibc-0.9.33/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/hanno/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by anonymous

Same error, trunk@30602, host gcc-4.5.3.

Kernel 2.6.38.8, same config, also fails.Error is:

make[5]: Entering directory `/media/jfs2/misc/openwrt/source/openwrt/build_dir/linux-atheros/linux-2.6.38.8'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      arch/mips/mm/tlbex.o
arch/mips/mm/tlbex.c: In function 'build_r4000_tlb_refill_handler':
arch/mips/mm/tlbex.c:1155:22: error: variable 'vmalloc_mode' set but not used [-Werror=unused-but-set-variable]
arch/mips/mm/tlbex.c:1154:28: error: variable 'htlb_info' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

comment:2 Changed 6 years ago by anonymous

In trunk 30608

make -C /home/ubuntu/openwrt/trunk/build_dir/linux-atheros/linux-2.6.37.6 CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" CC="mips-openwrt-linux-uclibc-gcc" 
make[5]: Entering directory `/home/ubuntu/openwrt/trunk/build_dir/linux-atheros/linux-2.6.37.6'
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      arch/mips/kernel/signal.o
arch/mips/kernel/signal.c: In function 'protected_restore_fp_context':
arch/mips/kernel/signal.c:87:11: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[7]: *** [arch/mips/kernel/signal.o] Error 1
make[6]: *** [arch/mips/kernel] Error 2
make[5]: *** [arch/mips] Error 2
make[5]: Leaving directory `/home/ubuntu/openwrt/trunk/build_dir/linux-atheros/linux-2.6.37.6'
make[4]: *** [/home/ubuntu/openwrt/trunk/build_dir/linux-atheros/linux-2.6.37.6/.image] Error 2
make[4]: Leaving directory `/home/ubuntu/openwrt/trunk/target/linux/atheros'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/ubuntu/openwrt/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/ubuntu/openwrt/trunk'
make[1]: *** [/home/ubuntu/openwrt/trunk/staging_dir/target-mips_uClibc-0.9.33/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/ubuntu/openwrt/trunk'

comment:3 Changed 6 years ago by hanno.schupp@…

There seem to be a lot of compile error all of a sudden, based on actual warning only, not on real compile errors. My guess is they have been there all along, but did not matter as long as warnings were not treated as errors, and the resulting firmware actually worked fine.

How can this 'treat warnings like errors' behaviour switched off for now as work around?

comment:4 Changed 6 years ago by anonymous

trunk@30615, target atheros, defconfig, compiles fine.
Thank you, devs :)

2359296 Feb 17 23:13 openwrt-atheros-combined.squashfs.img
1441792 Feb 17 23:13 openwrt-atheros-root.squashfs
851968 Feb 17 23:13 openwrt-atheros-vmlinux.lzma

comment:5 Changed 6 years ago by juhosg

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

Fixed in r30615.

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