[maemo-developers] unresolvable R_ARM_GOTOFF32 error

From: Alan Chuang alanchuang at gmail.com
Date: Fri May 25 06:47:33 EEST 2007
Dear all:
         I was trying to compile Mozilla (seamonkey), but encountered an
"unresolvable R_ARM_GOTOFF32" error:

#####################################################################################
arm-linux-g++ -I/opt/base/include -fno-rtti -fno-exceptions -Wall
-Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pthread -pipe
-DNDEBUG -DTRIMMED -O2 -fPIC -shared -Wl,-z,defs -Wl,-h,libhtmlpars.so -o
libhtmlpars.so  nsScannerString.o nsDTDUtils.o nsHTMLTokenizer.o
nsElementTable.o nsExpatDriver.o CNavDTD.o COtherDTD.o nsHTMLEntities.o
nsHTMLTags.o nsHTMLTokens.o nsParser.o CParserContext.o nsParserService.o
nsParserModule.o nsParserNode.o nsScanner.o nsToken.o nsParserMsgUtils.o
nsViewSourceHTML.o       -Wl,--whole-archive ../../../dist/lib/libexpat_s.a
../../../parser/xml/src/libsaxp.a  -Wl,--no-whole-archive
-L../../../dist/bin -L../../../dist/lib
../../../dist/lib/libunicharutil_s.a -L../../../dist/bin -lxpcom
-lxpcom_core  -L../../../dist/bin -L../../../dist/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl  -Wl,--version-script
-Wl,/home/achuang/seamonkey/mozilla/build/unix/gnu-ld-scripts/components-version-script
-Wl,-Bsymbolic -ldl -lm
/opt/sb-1.0.7/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld:
nsParserModule.o(.text+0x5a0): unresolvable R_ARM_GOTOFF32 relocation
against symbol `nsTArray_base::sEmptyHdr'
/opt/sb-1.0.7/scratchbox/compilers/cs2005q3.2-glibc-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld:
final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
gmake[4]: *** [libhtmlpars.so] Error 1
gmake[4]: Leaving directory
`/home/achuang/seamonkey/mozilla/obj-i686-pc-linux-gnu/parser/htmlparser/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/home/achuang/seamonkey/mozilla/obj-i686-pc-linux-gnu/parser/htmlparser'
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory
`/home/achuang/seamonkey/mozilla/obj-i686-pc-linux-gnu'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/home/achuang/seamonkey/mozilla/obj-i686-pc-linux-gnu'
make: *** [build] Error 2
#####################################################################################

This seems to be a linker error. I didn't have this issue with the gcc
compiler used in maemo 2.1 (scratchbox 0.9.8.8), but
the new compiler (cs2005q3.2-glibc-arm-1.0.5-i386) is giving me this error.
Has anyone seen this before? Any suggestion
to fix or bypass this issue is greatly appreciated.

Thanks,
Alan Chuang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20070525/2de824b5/attachment.htm 
More information about the maemo-developers mailing list