On 6 April 2015 at 02:03, Prathamesh Kulkarni <prathamesh.kulkarni@xxxxxxxxxx> wrote: > Hi, > I tried to build v8 with LTO enabled on arm-linux-gnueabihf and got > following error > messages: > > /tmp/cckZwLk4.s: Assembler messages: > /tmp/cckZwLk4.s:30417: Error: offset out of range > /tmp/cckZwLk4.s:30563: Error: offset out of range > lto-wrapper: fatal error: > /home/prathamesh.kulkarni/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ > returned 1 exit status > compilation terminated. > > Please find attached complete log, and changes to build/toolchain.gyi. > > GYP_DEFINES="v8_target_arch=arm arm_float_abi=hard clang=0 > host_clang=0 linux_use_gold_flags=1 linux_use_bundled_gold=0 > linux_use_bundled_binutils=0 werror=" > > gcc -v: > Using built-in specs. > COLLECT_GCC=arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc > COLLECT_LTO_WRAPPER=/home/prathamesh.kulkarni/gnu-toolchain/arm-linux-gnueabihf/builds/destdir/x86_64-unknown-linux-gnu/libexec/gcc/arm-linux-gnueabihf/5.0.0/lto-wrapper > Target: arm-linux-gnueabihf > Configured with: > '/home/prathamesh.kulkarni/gnu-toolchain/src/gcc.git~master/configure' > SHELL=/bin/bash --with-bugurl=https://bugs.linaro.org > --with-mpc=/home/prathamesh.kulkarni/gnu-toolchain/arm-linux-gnueabihf/builds/destdir/x86_64-unknown-linux-gnu > --with-mpfr=/home/prathamesh.kulkarni/gnu-toolchain/arm-linux-gnueabihf/builds/destdir/x86_64-unknown-linux-gnu > --with-gmp=/home/prathamesh.kulkarni/gnu-toolchain/arm-linux-gnueabihf/builds/destdir/x86_64-unknown-linux-gnu > --with-gnu-as --with-gnu-ld --disable-libstdcxx-pch > --disable-libmudflap --with-cloog=no --with-ppl=no --with-isl=no > --disable-nls --enable-multiarch --disable-multilib --enable-c99 > --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=vfpv3-d16 > --with-float=hard --with-mode=thumb > --with-build-sysroot=/home/prathamesh.kulkarni/gnu-toolchain/arm-linux-gnueabihf/sysroots/arm-linux-gnueabihf > --enable-lto --enable-linker-build-id --enable-long-long > --enable-shared > --with-sysroot=/home/prathamesh.kulkarni/gnu-toolchain/arm-linux-gnueabihf/builds/sysroot-arm-linux-gnueabihf > --enable-languages=c,c++,lto --enable-fix-cortex-a53-835769 > --enable-checking=yes --disable-bootstrap > --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu > --target=arm-linux-gnueabihf > --prefix=/home/prathamesh.kulkarni/gnu-toolchain/arm-linux-gnueabihf/builds/destdir/x86_64-unknown-linux-gnu > Thread model: posix > gcc version 5.0.0 20150330 (experimental) (GCC) > > Am I building it incorrectly or is this a GCC bug ? Build succeeds with LTO enabled with gcc-4.8.2 on native arm-linux-gnueabihf However with 4.9 fails with the same error messages from assembler (tried on native arm-linux-gnueabihf). Thank you, Prathamesh > > Thank you, > Prathamesh