Linaro arm linux androideabi 4.8 lto bug

Bug #1354434 reported by Bart Monhemius on 2014-08-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
New
Undecided
Unassigned

Bug Description

Hi,

I'm building android 4.4.4 with linaro gcc 4.8 2014.04 release. I'm building with it since it's release. Now I'm building with -flto and I got this error. It says -march=armv5te conflicts with -mcpu=cortex-a15. I haven't enabled -march=armv5te. I have enabled -mcpu=cortex-a15 with -mtune=cortex-a15. So I wonder why this error comes up. I guessed it was a bug so I reported it here.

Thanks,

Bart Monhemius

Here is the build log.

target SharedLib: libdl (/home/bart452/vanir/out/target/product/d802/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
lto1: warning: switch -mcpu=cortex-a15 conflicts with -march=armv5te switch [enabled by default]
lto1: warning: switch -mcpu=cortex-a15 conflicts with -march=armv5te switch [enabled by default]
target Symbolic: libdl (/home/bart452/vanir/out/target/product/d802/symbols/system/lib/libdl.so)
target Strip: libdl (/home/bart452/vanir/out/target/product/d802/obj/lib/libdl.so)
Install: /home/bart452/vanir/out/target/product/d802/system/lib/libdl.so
target SharedLib: libc (/home/bart452/vanir/out/target/product/d802/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
lto1: warning: switch -mcpu=cortex-a15 conflicts with -march=armv5te switch [enabled by default]
lto1: warning: switch -mcpu=cortex-a15 conflicts with -march=armv5te switch [enabled by default]
lto1: warning: switch -mcpu=cortex-a15 conflicts with -march=armv5te switch [enabled by default]
lto1: warning: switch -mcpu=cortex-a15 conflicts with -march=armv5te switch [enabled by default]
/tmp/cc6jpnAe.s: Assembler messages:
/tmp/cc6jpnAe.s:280: Error: selected processor does not support Thumb mode `rev16 r3,r3'
/tmp/cc6jpnAe.s:323: Error: selected processor does not support Thumb mode `rev16 r3,r3'
/tmp/cc6jpnAe.s:1212: Error: selected processor does not support Thumb mode `rev r3,r3'
/tmp/cc6jpnAe.s:1500: Error: selected processor does not support Thumb mode `rev16 r3,r3'
/tmp/cc6jpnAe.s:2159: Error: selected processor does not support Thumb mode `rev16 r3,r3'
/tmp/cc6jpnAe.s:2228: Error: selected processor does not support Thumb mode `rev r3,r3'
/tmp/cc6jpnAe.s:3287: Error: selected processor does not support Thumb mode `rev16 r3,r3'
lto-wrapper: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-linux-androideabi-g++ returned 1 exit status
/home/bart452/vanir/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/../libexec/gcc/arm-linux-androideabi/4.8.3/real-ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [/home/bart452/vanir/out/target/product/d802/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so] Fout 1

Tags: lto Edit Tag help
Maxim Kuvyrkov (maxim-kuvyrkov) wrote :

Hi,

Please attach full build and link log of libdl.so.

Most likely you are compiling object files with -mcpu=cortex-a15, but then not specifying same "-mcpu=cortex-a15" while linking libdl.so, and default -march=armv5te is implicitly specified. Therefore LTO (Link-Time Optimizations) complain about the disparity.

Also, please file any future bugs for Linaro-built toolchains in Linaro's bugzilla at http://bugs.linaro.org .

Thank you.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers