trunk build failure: unresolvable relocation against symbol nsTArray_base::sEmptyHdr

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

trunk build failure: unresolvable relocation against symbol nsTArray_base::sEmptyHdr

Dan Veditz
Linux trunk builds are failing for me with the message "unresolvable
relocation against symbol nsTArray_base::sEmptyHdr". The same
environment/machine/compiler/mozconfig/etc builds a 1.8 branch build
just fine so I'm a bit stumped.

I haven't seen any mention of a solution elsewhere so it might be wholly
at my end, but at least one other person had the same problem because
they pasted the same error to http://mozilla.pastebin.com/567157

If I add XPCOM_GLUE_LDOPTS to the Necko Makefile.in the error goes away
(and then strikes building gfx/thebes). That can't be the right solution
because otherwise it'd be in the cvs tree, but maybe it points to some
glue build option I need to add to mozconfig on the trunk?
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: trunk build failure: unresolvable relocation against symbol nsTArray_base::sEmptyHdr

Andrew Schultz-2
I've been building OK on Linux and the tinderboxen seem ok.  What distro
and gcc version are you compiling with?

--
Andrew Schultz
[hidden email]
http://www.sens.buffalo.edu/~ajs42/
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: trunk build failure: unresolvable relocation against symbol nsTArray_base::sEmptyHdr

Dan Veditz
Andrew Schultz wrote:
> I've been building OK on Linux and the tinderboxen seem ok.  What distro
> and gcc version are you compiling with?
>

Most people do seem to build OK. The mozilla.pastebin.com post I found
shows it's not just me.

RHEL ActiveServer 4
gcc 3.4.3
ld 2.15.92

Anything else?
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: trunk build failure: unresolvable relocation against symbol nsTArray_base::sEmptyHdr

Andrew Schultz-2
Dan Veditz wrote:
> Most people do seem to build OK. The mozilla.pastebin.com post I found
> shows it's not just me.
>
> RHEL ActiveServer 4
> gcc 3.4.3
> ld 2.15.92

Is ActiveServer that RHEL4 plus something?  RHEL4 originally shipped
with 3.4.3, but current gcc for RHEL4 is gcc 3.4.5.

I tried compiling on FC3, which has gcc 3.4.4 and ld 2.15.92.  The
commandline for linking libnecko.so was identical to yours but it was
successful.

--
Andrew Schultz
[hidden email]
http://www.sens.buffalo.edu/~ajs42/
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: trunk build failure: unresolvable relocation against symbol nsTArray_base::sEmptyHdr

walt-2
Andrew Schultz wrote:
> Dan Veditz wrote:
>
>> Most people do seem to build OK. The mozilla.pastebin.com post I found
>> shows it's not just me.

I'm seeing exactly the same error on gentoo with gcc 3.4.5 and ld 2.16.1.
The same code builds just fine on the same machine using gcc 3.3.6.

>> RHEL ActiveServer 4
>> gcc 3.4.3
>> ld 2.15.92

>
> I tried compiling on FC3, which has gcc 3.4.4 and ld 2.15.92.  The
> commandline for linking libnecko.so was identical to yours but it was
> successful.

The pastebin URL isn't working for me, so I can't compare.  Here's mine:

c++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread
-pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-h,libnecko.so -o libnecko.so  nsNetModule.o    -lpthread    -Wl,--whole-archive ../base/src/libneckobase_s.a ../dns/src/libneckodns_s.a
../socket/base/libneckosocket_s.a ../streamconv/src/libnkconv_s.a ../streamconv/converters/libnkcnvts_s.a ../mime/src/libnkmime_s.a ../cache/src/libnkcache_s.a ../protocol/about/src/libnkabout_s.a
../protocol/http/src/libnkhttp_s.a  ../protocol/file/src/libnkfile_s.a  ../protocol/viewsource/src/libnkviewsource_s.a  ../protocol/res/src/libnkres_s.a  ../protocol/data/src/libnkdata_s.a
../cookie/src/libneckocookie_s.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 -L../../dist/lib -lmozz  -Wl,--version-script -Wl,/usr/local/mnt/wa1ter/src/tb/mozilla/build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: ../protocol/http/src/libnkhttp_s.a(nsHttpConnection.o)(.gnu.linkonce.t._ZN8nsTArrayIN17nsHttpHeaderArray7nsEntryEEC1Ev+0x10):
unresolvable relocation against symbol `nsTArray_base::sEmptyHdr'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

I wonder if it could be the way gcc is configured:
# gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/specs
Configured with: /var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.5 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext
--with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: trunk build failure: unresolvable relocation against symbol nsTArray_base::sEmptyHdr

lingeek
Same problem here. Gentoo, gcc 3.4.4, ld 2.16.1.

Pavel 'lingeek' Szalbot

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds