Wind River Support Network

HomeDefectsLIN6-11088
Fixed

LIN6-11088 : wr-pro-source toolchain fails glibc build on cav-octeon3

Created: Apr 14, 2016    Updated: Dec 3, 2018
Resolved Date: Apr 18, 2016
Found In Version: 6.0.0.29
Fix Version: 6.0.0.30
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Toolchain

Description

--enable-board=cav-octeon3 --enable-kernel=standard --enable-rootfs=glibc-small --enable-multilib=lib32 --enable-unsupported-toolchain=wr-pro-source

make fs

a(_addsub_tf.o): In function `__addtf3':
| /cav-octeon3-6wr-pro-source/bitbake_build/tmp/work-shared/gcc-target-4.8.1-r1/gcc-4.8.1/libgcc/fp-bit.c:743:(.text+0x3a0): relocation truncated to fit: R_MIPS_CALL16 against `__unpack_t'
| /cav-octeon3-6wr-pro-source/bitbake_build/tmp/work-shared/gcc-target-4.8.1-r1/gcc-4.8.1/libgcc/fp-bit.c:744:(.text+0x3d4): relocation truncated to fit: R_MIPS_CALL16 against `__unpack_t'
| /cav-octeon3-6wr-pro-source/bitbake_build/tmp/work-shared/gcc-target-4.8.1-r1/gcc-4.8.1/libgcc/fp-bit.c:746:(.text+0x3e4): relocation truncated to fit: R_MIPS_GOT_PAGE against `.text'
| /cav-octeon3-6wr-pro-source/bitbake_build/tmp/work-shared/gcc-target-4.8.1-r1/gcc-4.8.1/libgcc/fp-bit.c:746:(.text+0x3f0): relocation truncated to fit: R_MIPS_GOT_OFST against `.text'
| /cav-octeon3-6wr-pro-source/bitbake_build/tmp/work-shared/gcc-target-4.8.1-r1/gcc-4.8.1/libgcc/fp-bit.c:748:(.text+0x3fc): additional relocation overflows omitted from the output
| collect2: error: ld returned 1 exit status
| make[2]: *** [/cav-octeon3-6wr-pro-source/bitbake_build/tmp/work/mips64-octeon3-n32-wrsmllib32-linux-gnun32/lib32-eglibc/2.18-r1/build-mips64-wrsmllib32-linux-gnun32/libc.so] Error 1
| make[2]: Leaving directory `/cav-octeon3-6wr-pro-source/bitbake_build/tmp/work/mips64-octeon3-n32-wrsmllib32-linux-gnun32/lib32-eglibc/2.18-r1/eglibc-2.18/libc/elf'
| make[1]: *** [elf/subdir_lib] Error 2
| make[1]: Leaving directory `/cav-octeon3-6wr-pro-source/bitbake_build/tmp/work/mips64-octeon3-n32-wrsmllib32-linux-gnun32/lib32-eglibc/2.18-r1/eglibc-2.18/libc'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /cav-octeon3-6wr-pro-source/bitbake_build/tmp/work/mips64-octeon3-n32-wrsmllib32-linux-gnun32/lib32-eglibc/2.18-r1/temp/do_compile/l
og.do_compile.133156)
ERROR: Task 1052 (virtual:multilib:lib32:/cav-octeon3-6wr-pro-source/layers/oe-core/meta/recipes-core/eglibc/eglibc_2.18.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 379 tasks of which 28 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  virtual:multilib:lib32:/cav-octeon3-6wr-pro-source/layers/oe-core/meta/recipes-core/eglibc/eglibc_2.18.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [export/cav-octeon3-glibc-small-standard-dist.tar.bz2] Error 1

Workaround

I made the following change to binary-toolchain-4.8-*, and n32 eglibc compiles well afterwards.

diff --git a/wr-pro-toolchain/recipes-devtools/gcc/gcc-csl-base_4.8.inc b/wr-pro-toolchain/recipes-devtools/gcc/gcc-csl-base_4.8.inc
index 83694fa..e5fa7d3 100644
--- a/wr-pro-toolchain/recipes-devtools/gcc/gcc-csl-base_4.8.inc
+++ b/wr-pro-toolchain/recipes-devtools/gcc/gcc-csl-base_4.8.inc
@@ -83,7 +83,7 @@ oe_runconf () {
                #bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
                bbnote "Running $cfgscript ${CONFIGUREOPTS} ${gcc_sanitize_params_csl} $@"
                set +e
-               ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
+               ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${gcc_sanitize_params_csl} "$@"
                if [ "$?" != "0" ]; then
                        echo "Configure failed. The contents of all config.log files follows to aid debugging"
                        find ${S} -name config.log -print -exec cat {} \;

Other Downloads


Live chat
Online