[U-Boot] U-Boot 2015.10-rc3: ARM: Fails to build for LS1021A-TWR with GCC 5.2

Krishnakar, Srikanth Srikanth_Krishnakar at mentor.com
Sat Sep 19 08:01:26 CEST 2015


Hi All,

I am trying to build nor u-boot for freescale LS1021A-TWR board with GCC-5.2 toolchain and finding issues at "OBJCOPY" process, the same u-boot builds fine with GCC-4.9.x, I at following commit tag on denx u-boot:

commit 1fb8d7933924aa5deb7e722d64c1d9fc7f0b2b82

Error Observed: 

u-boot# make ARCH=arm ls1021atwr_nor_config

u-boot# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- all  
  CC      net/checksum.o
  CC      net/arp.o
  CC      net/bootp.o
  CC      net/eth.o
  CC      net/net.o
  CC      net/nfs.o
  CC      net/ping.o
  CC      net/tftp.o
  LD      net/built-in.o
  LD      test/built-in.o
  LD      test/dm/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world
  OBJCOPY examples/standalone/hello_world.srec
  OBJCOPY examples/standalone/hello_world.bin
  LDS     u-boot.lds
  LD      u-boot
  OBJCOPY u-boot.srec
  OBJCOPY u-boot.bin
arm-none-linux-gnueabi-objcopy:u-boot.bin[.text]: No space left on device
make: *** [u-boot.bin] Error 1
root at lenovo:/opt/git-repos/u-boot# 

LOG Verbose:
-------------------
arm-none-linux-gnueabi-objcopy --gap-fill=0xff  -j .text -j .secure_text -j .rodata -j .hash -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn -O binary  u-boot u-boot.bin
arm-none-linux-gnueabi-objcopy:u-boot.bin[.text]: No space left on device
make: *** [u-boot.bin] Error 1
-------------------

NOTE: If I manually run the same objcopy command from shell then It is successful, but invoking it from Makefile is not working.

There is also a patch in tree to fix the u-boot size issue with modifying TEXT_BASE address :

1c69a51 arm: ls102xa: Adjust the load address of U-Boot for NOR boot

But still the error is observed.


---------------
GCC-5.2 :
---------------
u-boot# arm-none-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/srikanth/mgc/embedded/codebench/bin/../libexec/gcc/arm-none-linux-gnueabi/5.2.0/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with: /scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/src/gcc-trunk-5/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxx-multilibs --with-arch=armv5te --with-gnu-as --with-gnu-ld --with-specs='%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables} -D__CS_SOURCERYGXX_MAJ__=2015 -D__CS_SOURCERYGXX_MIN__=11 -D__CS_SOURCERYGXX_REV__=2015082603' --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --with-glibc-version=2.21 --with-pkgversion='Sourcery CodeBench 2015.11-2015082603 - Preview' --with-bugurl=https://supportnet.mentor.com/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/install/arm-none-linux-gnueabi-sourceryg++/opt/codesourcery/arm-none-linux-gnueabi/libc --with-gmp=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/obj/arm-none-linux-gnueabi-sourceryg++/pkg-2015.11-2015082603-arm-none-linux-gnueabi/sourceryg++-2015.11-2015082603-arm-none-linux-gnueabi.extras/host-libs-i686-pc-linux-gnu/usr --with-mpfr=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/obj/arm-none-linux-gnueabi-sourceryg++/pkg-2015.11-2015082603-arm-none-linux-gnueabi/sourceryg++-2015.11-2015082603-arm-none-linux-gnueabi.extras/host-libs-i686-pc-linux-gnu/usr --with-mpc=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/obj/arm-none-linux-gnueabi-sourceryg++/pkg-2015.11-2015082603-arm-none-linux-gnueabi/sourceryg++-2015.11-2015082603-arm-none-linux-gnueabi.extras/host-libs-i686-pc-linux-gnu/usr --with-isl=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/obj/arm-none-linux-gnueabi-sourceryg++/pkg-2015.11-2015082603-arm-none-linux-gnueabi/sourceryg++-2015.11-2015082603-arm-none-linux-gnueabi.extras/host-libs-i686-pc-linux-gnu/usr --with-libelf=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/obj/arm-none-linux-gnueabi-sourceryg++/pkg-2015.11-2015082603-arm-none-linux-gnueabi/sourceryg++-2015.11-2015082603-arm-none-linux-gnueabi.extras/host-libs-i686-pc-linux-gnu/usr --enable-libgomp --disable-libitm --enable-libatomic --disable-libssp --disable-libcc1 --with-license=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/obj/arm-none-linux-gnueabi-sourceryg++/pkg-2015.11-2015082603-arm-none-linux-gnueabi/sourceryg++-2015.11-2015082603-arm-none-linux-gnueabi.extras/host-libs-i686-pc-linux-gnu/usr --with-csl-license-version=20150826 --with-csl-license-feature=gcc_ARM_GNULinux --enable-poison-system-directories --with-debug-prefix-map='/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/install/arm-none-linux-gnueabi-sourceryg++/opt/codesourcery=/opt/codesourcery 	    /scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/src/gcc-trunk-5=/opt/codesourcery/arm-none-linux-gnueabi/src/gcc /scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/obj/arm-none-linux-gnueabi-sourceryg++/gcc-2015.11-2015082603-arm-none-linux-gnueabi-i686-pc-linux-gnu=/opt/codesourcery/arm-none-linux-gnueabi/src/generated/gcc' --with-python-dir=arm-none-linux-gnueabi/share/gdb/python --with-build-time-tools=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/install/arm-none-linux-gnueabi-sourceryg++/opt/codesourcery/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/jenkins/workspace/Dev_InternalRelease_Bundle/BUNDLE/arm-none/label/CB_DEV/install/arm-none-linux-gnueabi-sourceryg++/opt/codesourcery/arm-none-linux-gnueabi/bin SED=sed
Thread model: posix
gcc version 5.2.0 (Sourcery CodeBench 2015.11)
-------------------

What else could be causing this failure ? Any Inputs are highly appreciated.



More information about the U-Boot mailing list