gcc-4.6 breaks LocalScanDetector.c :Error: branch out of range

Bug #972503 reported by Harald Koenig
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro GCC
Incomplete
Undecided
Unassigned

Bug Description

I'm trying to build landing-panda with gcc-4.6 on Ubuntu 10.04 and get this error when compiling external/neven/Embedded/common/src/b_BitFeatureEm/LocalScanDetector.c :

/tmp/ccPUeMW6.s: Assembler messages:
/tmp/ccPUeMW6.s:2092: Error: branch out of range

both android-toolchain-eabi-linaro-4.6-2011.12-5-2011-12-12_14-40-40-linux-x86.tar.bz2 and /usr/bin/arm-linux-gnueabi-gcc-4.6 from gcc-4.6-arm-linux-gnueabi ubuntu package show the same error, while gcc-4.5-arm-linux-gnueabi from ubuntu package does compile this file.

full command line:

/home/harald/linaro-android/android-toolchain-eabi/bin/arm-linux-androideabi-gcc -I external/neven/FaceRecEm/common/src/b_FDSDK -I dalvik/libnativehelper/include/nativehelper -I external/skia/include/core -I external/skia/include/core -I external/neven/FaceRecEm/common/src -I external/neven/Embedded/common/conf -I external/neven/Embedded/common/src -I external/neven/unix/src -I external/neven -I out/target/product/pandaboard/obj/SHARED_LIBRARIES/libFFTEm_intermediates -I dalvik/libnativehelper/include/nativehelper -I system/core/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I dalvik/libnativehelper/include -I frameworks/base/include -I frameworks/base/opengl/include -I frameworks/base/native/include -I external/skia/include -I out/target/product/pandaboard/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -isystem bionic/libthread_db/include -c -fno-exceptions -Wno-multichar -msoft-float -fpic -ffunction-sections -fdata-sections -funwind-tables -fstack-protector -Wa,--noexecstack -Werror=format-security -fno-short-enums -march=armv7-a -mfloat-abi=softfp -mfpu=neon -include system/core/include/arch/linux-arm/AndroidConfig.h -I system/core/include/arch/linux-arm/ -Wno-psabi -mthumb-interwork -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DOMAP_ENHANCEMENT -DTARGET_OMAP4 -DOMAP_ENHANCEMENT -DTARGET_OMAP4 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -O3 -g -fno-strict-aliasing -DNDEBUG -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -mthumb -O3 -fomit-frame-pointer -fno-strict-aliasing -Depl_LINUX -MD -o out/target/product/pandaboard/obj/SHARED_LIBRARIES/libFFTEm_intermediates/Embedded/common/src/b_BitFeatureEm/LocalScanDetector.o external/neven/Embedded/common/src/b_BitFeatureEm/LocalScanDetector.c

I'll attach the preprocessed source file LocalScanDetector.i ...

Revision history for this message
Harald Koenig (koenig-r) wrote :
Revision history for this message
Harald Koenig (koenig-r) wrote :

quick update FYI:

android-toolchain-eabi-linaro-4.6-2012.02-1-2012-02-10_00-13-03-linux-x86/bin/arm-linux-androideabi-gcc shows the same error.

android-toolchain-eabi-4.7-1-2012-02-18_05-50-28-linux-x86/bin/arm-linux-androideabi-gcc can compile that file.

Revision history for this message
Zhenqiang Chen (zhenqiang-chen) wrote :

Thank you for the bug report. Could you provide a complete preprocessed source file so that we can reproduce the fault?

With the attached file, I always get

cc1: fatal error: system/core/include/arch/linux-arm/AndroidConfig.h: No such file or directory.

Changed in gcc-linaro:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.