gcc-4.4.1 assembler error: offset out of range
Hi,
I get a whole bunch of assembler errors, when I try to build using gcc-4.4.1 or higher. My overo-oe build environment builds fine with the gcc-4.3.3 compiler, but if I switch to gcc-4.4.1, by modifying my local.conf file as follows:
#
# Specify the version of gcc that you want to build. PREFERRED_VERSION_gcc = "4.4.1" PREFERRED_VERSION_gcc-cross = "4.4.1" PREFERRED_VERSION_gcc-cross-initial = "4.4.1" PREFERRED_VERSION_gcc-cross-intermediate = "4.4.1"
I get a whole bunch of errors while attempting to bitbake gcc:
| arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/tool/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi -c -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/gcc -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/gcc/. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/gcc/../include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/gcc/../libcpp/include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/gcc/../libdecnumber -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/gcc/../libdecnumber/dpd -I../libdecnumber /tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/gcc/builtins.c -o builtins.o | /tmp/ccC0NmMi.s: Assembler messages: | /tmp/ccC0NmMi.s:36309: Error: offset out of range | /tmp/ccC0NmMi.s:36310: Error: offset out of range | /tmp/ccC0NmMi.s:36345: Error: offset out of range | /tmp/ccC0NmMi.s:36346: Error: offset out of range | /tmp/ccC0NmMi.s:36381: Error: offset out of range | /tmp/ccC0NmMi.s:36382: Error: offset out of range | /tmp/ccC0NmMi.s:36416: Error: offset out of range | /tmp/ccC0NmMi.s:36417: Error: offset out of range | make[2]: *** [insn-output.o] Error 1 | make[2]: *** Waiting for unfinished jobs.... | make[2]: Leaving directory `/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/build.arm-angstrom-linux-gnueabi.arm-angstrom-linux-gnueabi/gcc' | make[1]: *** [all-gcc] Error 2 | make[1]: Leaving directory `/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/build.arm-angstrom-linux-gnueabi.arm-angstrom-linux-gnueabi' | make: *** [all] Error 2 | FATAL: oe_runmake failed | ERROR: Function do_compile failed
NOTE: package gcc-4.4.1-r13.1: task do_compile: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.4.1.bb do_compile failed
ERROR: Task 13 (/tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.4.1.bb, do_compile) failed with 256
ERROR: '/tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.4.1.bb' failed
ERROR: '/tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.4.1.bb' failed
I have attached the compile log file below. How can I get past these assembler errors?
Best regards,
Elvis Dowson
Quoted 5 lines · Elvis Dowson
| /tmp/ccC0NmMi.s: Assembler messages: | /tmp/ccC0NmMi.s:36309: Error: offset out of range | /tmp/ccC0NmMi.s:36310: Error: offset out of range | /tmp/ccC0NmMi.s:36345: Error: offset out of range | /tmp/ccC0NmMi.s:36346: Error: offset out of range
Quoted 8 lines
| /tmp/ccC0NmMi.s:36381: Error: offset out of range | /tmp/ccC0NmMi.s:36382: Error: offset out of range | /tmp/ccC0NmMi.s:36416: Error: offset out of range | /tmp/ccC0NmMi.s:36417: Error: offset out of range | make[2]: *** [insn-output.o] Error 1 | make[2]: *** Waiting for unfinished jobs.... | make[2]: Leaving directory `/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.4.1-r13.1/gcc-4.4.1/build.arm-angstrom-linux-gnueabi.arm-angstrom-linux-gnueabi/gcc' | make[1]: *** [all-gcc] Error 2
There could be that gcc is generating long branched which then assembler catches. Usually these errors I remember dealing with was if you compiled in thumb mode. But you seem to be not using thumb mode so thats non issue here.
Another possibility is that the binutils/gas you have has bug in it.
You have to post the assembly output that assembler is rejecting here for further details
Anyhow, when you are changing from 4.3.3 why to 4.4.1 and not 4.5 that has been in OE for long and is default compiler for many OE based distributions out there
Hi Raj,
Quoted 2 lines · Khem Raj
You have to post the assembly output that assembler is rejecting here for further details
The assembler output is generated into the /tmp folder, and it disappears immediately afterwards, as soon as OE stops. How do I catch it? ;-)
Quoted 3 lines
Anyhow, when you are changing from 4.3.3 why to 4.4.1 and not 4.5 that has been in OE for long and is default compiler for many OE based distributions out there
I want to do some specific tests with compiling RTI DDS 4.5f, whose libraries have been compiled using gcc-4.4.1. This is the reason that I tried first with gcc-4.4.1.
I've now cleaned up my overo-oe/tmp folder, and am in the process of trying to build gcc-4.5, just to see if that works, but I will need to revert back to gcc-4.4.1 and fix this issue.
Best regards,
Elvis Dowson
Hi,
Quoted 3 lines · Khem Raj
Anyhow, when you are changing from 4.3.3 why to 4.4.1 and not 4.5 that has been in OE for long and is default compiler for many OE based distributions out there
I get more of the assembler errors, when rebuilding the gcc recipe, using gcc-4.5. Any clues on how to resolve this?
| arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/tool/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi -c -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libcpp/include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libdecnumber -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/include/libelf /tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/calls.c -o calls.o | /tmp/ccIA0vqC.s: Assembler messages: | /tmp/ccIA0vqC.s:520: Error: offset out of range | /tmp/ccIA0vqC.s:522: Error: offset out of range | /tmp/ccIA0vqC.s:586: Error: offset out of range | /tmp/ccIA0vqC.s:587: Error: offset out of range | /tmp/ccIA0vqC.s:683: Error: offset out of range | /tmp/ccIA0vqC.s:687: Error: offset out of range | /tmp/ccIA0vqC.s:1075: Error: offset out of range | /tmp/ccIA0vqC.s:1076: Error: offset out of range | /tmp/ccIA0vqC.s:1507: Error: offset out of range | /tmp/ccIA0vqC.s:1508: Error: offset out of range | /tmp/ccIA0vqC.s:1547: Error: offset out of range | /tmp/ccIA0vqC.s:1548: Error: offset out of range | /tmp/ccIA0vqC.s:1667: Error: offset out of range | /tmp/ccIA0vqC.s:1668: Error: offset out of range | /tmp/ccIA0vqC.s:2071: Error: offset out of range | /tmp/ccIA0vqC.s:2074: Error: offset out of range | /tmp/ccIA0vqC.s:2234: Error: offset out of range | /tmp/ccIA0vqC.s:2235: Error: offset out of range | /tmp/ccIA0vqC.s:2536: Error: offset out of range | /tmp/ccIA0vqC.s:2540: Error: offset out of range | /tmp/ccIA0vqC.s:3105: Error: offset out of range | /tmp/ccIA0vqC.s:3110: Error: offset out of range | /tmp/ccIA0vqC.s:3425: Error: offset out of range | /tmp/ccIA0vqC.s:3426: Error: offset out of range | /tmp/ccIA0vqC.s:4048: Error: offset out of range | /tmp/ccIA0vqC.s:4055: Error: offset out of range | make[2]: *** [caller-save.o] Error 1 | make[2]: *** Waiting for unfinished jobs.... | rm fsf-funding.pod gfdl.pod cpp.pod gcc.pod gcov.pod gfortran.pod | make[2]: Leaving directory `/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/build.arm-angstrom-linux-gnueabi.arm-angstrom-linux-gnueabi/gcc' | make[1]: *** [all-gcc] Error 2 | make[1]: Leaving directory `/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/build.arm-angstrom-linux-gnueabi.arm-angstrom-linux-gnueabi' | make: *** [all] Error 2 | FATAL: oe_runmake failed | ERROR: Function do_compile failed
NOTE: package gcc-4.5-r41.1+svnr170880: task do_compile: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.5.bb do_compile failed
ERROR: Task 13 (/tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.5.bb, do_compile) failed with 256
ERROR: '/tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.5.bb' failed
ERROR: '/tool/overo-oe/org.openembedded.dev/recipes/gcc/gcc_4.5.bb' failed
Best regards,
Elvis Dowson
Quoted 1 line · Elvis Dowson
| arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/tool/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi -c -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libcpp/include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libdecnumber -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/include/libelf /tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/calls.c -o calls.o
Go into the builddir of gcc and then execute the above command add -S to the options and now calls.o should be an asm file. Post that file somewhere
what version of binutils are you using
Hi Khem,
Quoted 3 lines · Khem Raj
Go into the builddir of gcc and then execute the above command add -S to the options and now calls.o should be an asm file. Post that file somewhere
Here is the cfghooks.s assembler output file.
This is the error message that I get
arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/tool/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi -c -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/. -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libcpp/include -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libdecnumber -I/tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/include/libelf /tool/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/gcc-4.5-r41.1+svnr170880/gcc-4_5-branch/gcc/cfghooks.c -o cfghooks.o
| /tmp/ccO2e0qW.s: Assembler messages: | /tmp/ccO2e0qW.s:520: Error: offset out of range | /tmp/ccO2e0qW.s:522: Error: offset out of range | /tmp/ccO2e0qW.s:586: Error: offset out of range | /tmp/ccO2e0qW.s:587: Error: offset out of range | /tmp/ccO2e0qW.s:683: Error: offset out of range | /tmp/ccO2e0qW.s:687: Error: offset out of range | /tmp/ccO2e0qW.s:1075: Error: offset out of range | /tmp/ccO2e0qW.s:1076: Error: offset out of range | /tmp/ccO2e0qW.s:1507: Error: offset out of range | /tmp/ccO2e0qW.s:1508: Error: offset out of range | /tmp/ccO2e0qW.s:1547: Error: offset out of range | /tmp/ccO2e0qW.s:1548: Error: offset out of range | /tmp/ccO2e0qW.s:1667: Error: offset out of range | /tmp/ccO2e0qW.s:1668: Error: offset out of range | /tmp/ccO2e0qW.s:2071: Error: offset out of range | /tmp/ccO2e0qW.s:2074: Error: offset out of range | /tmp/ccO2e0qW.s:2234: Error: offset out of range | /tmp/ccO2e0qW.s:2235: Error: offset out of range | /tmp/ccO2e0qW.s:2536: Error: offset out of range | /tmp/ccO2e0qW.s:2540: Error: offset out of range | /tmp/ccO2e0qW.s:3105: Error: offset out of range | /tmp/ccO2e0qW.s:3110: Error: offset out of range | /tmp/ccO2e0qW.s:3425: Error: offset out of range | /tmp/ccO2e0qW.s:3426: Error: offset out of range | /tmp/ccO2e0qW.s:4048: Error: offset out of range | /tmp/ccO2e0qW.s:4055: Error: offset out of range
Quoted 1 line
what version of binutils are you using
The version of binutils that is being built by overo-oe overo-2011.03 branch is binutils-cross-2.18.50.0.7-r13.1
Best regards,
Elvis Dowson
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Elvis Dowson
gcc-4.5.x compiled successfully, as soon as I switched to binutils-2.21.
OK so its an assembler issue, yeah using 2.21 and gcc 4.4.1 you have a better chance of succeeding now.