Wind River Support Network

HomeDefectsLIN6-8611
Fixed

LIN6-8611 : [cav-octeon3] build issue at arch/mips/cavium-octeon/setup.c:979:30

Created: Oct 23, 2014    Updated: Dec 3, 2018
Resolved Date: Oct 23, 2014
Found In Version: 6.0.0.13
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP - Async

Description

$ make vmlinux
make[1]: Entering directory `/octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux'
/octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux/Makefile:1041: target `_clean_samples' given more than once in the same rule.
  Using /octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux as source for kernel
  GEN     /octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux-cav-octeon3-cgl-build/Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  Checking missing-syscalls for N32
  CALL    /octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux/scripts/checksyscalls.sh
  Checking missing-syscalls for O32
  CALL    /octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux/scripts/checksyscalls.sh
  CALL    /octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux/scripts/checksyscalls.sh
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  CC      arch/mips/cavium-octeon/setup.o
/octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux/arch/mips/cavium-octeon/setup.c: In function 'plat_mem_setup':
/octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux/arch/mips/cavium-octeon/setup.c:979:30: error: statement may be undefined in the final loop iteration. [-Werror=aggressive-loop-optimizations]
        named_memory_blocks[i][0] && i < ARRAY_SIZE(named_memory_blocks);
                              ^
cc1: all warnings being treated as errors
make[4]: *** [arch/mips/cavium-octeon/setup.o] Error 1
make[3]: *** [arch/mips/cavium-octeon] Error 2
make[2]: *** [arch/mips] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/octeon3/cgl/bitbake_build/tmp/work/cav_octeon3-wrs-linux/linux-windriver/3.10-r0/linux'
$

Steps to Reproduce

1) configure --enable-board=cav-octeon3 --enable-kernel=cgl --enable-rootfs=glibc-cgl --enable-parallel-pkgbuilds=16 --enable-jobs=16
2) make all

check the logs.

Other Downloads


Live chat
Online