Closed Bug 307812 Opened 19 years ago Closed 19 years ago

relocation R_X86_64_PC32 against `memset@@GLIBC_2.2.5' can not be used when making a shared object

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 307168

People

(Reporter: tensor5, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.10) Gecko/20050819 Epiphany/1.6.4
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.10) Gecko/20050819 Epiphany/1.6.4

I am trying to compile firefox 1.5b1, and when it build libmozjs.so the
following error appers:

gcc -I/usr/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align
-Wno-long-long -pedantic -pthread -pipe  -DNDEBUG -DTRIMMED -O3
-fomit-frame-pointer -march=athlon64 -fPIC -shared -Wl,-h -Wl,libmozjs.so -o
libmozjs.so  jsapi.o jsarena.o jsarray.o jsatom.o jsbool.o jscntxt.o jsdate.o
jsdbgapi.o jsdhash.o jsdtoa.o jsemit.o jsexn.o jsfun.o jsgc.o jshash.o
jsinterp.o jslock.o jslog2.o jslong.o jsmath.o jsnum.o jsobj.o jsopcode.o
jsparse.o jsprf.o jsregexp.o jsscan.o jsscope.o jsscript.o jsstr.o jsutil.o
jsxdrapi.o jsxml.o prmjtime.o        -lm -ldl -L../../dist/lib -lplds4 -lplc4
-lnspr4 -lpthread -ldl -ldl -lm
/usr/bin/ld: jsapi.o: relocation R_X86_64_PC32 against `memset@@GLIBC_2.2.5' can
not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

My system is linux-2.6.13-mm2 with glibc-2.3.5


Reproducible: Always
This is a GCC bug, see the links and discussion in bug 307168 (which has a
configure test to work around the GCC bug).

*** This bug has been marked as a duplicate of 307168 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.