* gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory
@ 2003-08-16 8:01 Uncle George
2003-08-16 17:15 ` Kelledin
0 siblings, 1 reply; 4+ messages in thread
From: Uncle George @ 2003-08-16 8:01 UTC (permalink / raw)
To: axp-list
What does this statement mean? I cant tell if its an error or not
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../../../../alphaev56-unknown-linux-gnu/bin/ld:
/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib/libswlib.a(swlib.o):
gp-relative relocation against dynamic symbol
SwGlobalDocShell::pObjectFactory
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../../../../alphaev56-unknown-linux-gnu/bin/ld:
/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib/libswlib.a(swlib.o):
gp-relative relocation against dynamic symbol
SwGlobalDocShell::pObjectFactory
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../../../../alphaev56-unknown-linux-gnu/bin/ld:
/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib/libswlib.a(swlib.o):
gp-relative relocation against dynamic symbol
SwGlobalDocShell::pObjectFactory
collect2: ld returned 1 exit status
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory
2003-08-16 8:01 gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory Uncle George
@ 2003-08-16 17:15 ` Kelledin
2003-08-16 20:36 ` Uncle George
0 siblings, 1 reply; 4+ messages in thread
From: Kelledin @ 2003-08-16 17:15 UTC (permalink / raw)
To: axp-list
On Saturday 16 August 2003 03:01 am, Uncle George wrote:
> What does this statement mean? I cant tell if its an error or
> not
>
> /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>/../../alphaev56-unknown-linux-gnu/bin/ld:
> /mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>/libswlib.a(swlib.o): gp-relative relocation against dynamic
> symbol
> SwGlobalDocShell::pObjectFactory
> /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>/../../alphaev56-unknown-linux-gnu/bin/ld:
> /mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>/libswlib.a(swlib.o): gp-relative relocation against dynamic
> symbol
> SwGlobalDocShell::pObjectFactory
> /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>/../../alphaev56-unknown-linux-gnu/bin/ld:
> /mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>/libswlib.a(swlib.o): gp-relative relocation against dynamic
> symbol
> SwGlobalDocShell::pObjectFactory
> collect2: ld returned 1 exit status
That means libswlib.a wasn't compiled with -fpic or -fPIC. Any
object file or static library that gets linked to a dynamic
library needs to be compiled with -fpic or -fPIC on Alpha,
otherwise you're likely to get the "gp-relative relocation"
error.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory
2003-08-16 17:15 ` Kelledin
@ 2003-08-16 20:36 ` Uncle George
2003-08-17 0:40 ` Kelledin
0 siblings, 1 reply; 4+ messages in thread
From: Uncle George @ 2003-08-16 20:36 UTC (permalink / raw)
To: axp-list
I'm reasonably sure that you might need PIC code to create a dynamic
library, from static &
other dynamic libraries, I'm not so sure thats true if you want an
executable, derived from static & dynamic libraries.
But you are quite correct, the libswlib.a was not created with -fPIC (
of -fpic) . I dont think any other Port of OpenOffice uses -fPIC at this
stage. Nor was -fpic used when I compiled using the RH7.2/alpha/c++3
distributed compiler ( I think it was the same with the RH8.0/Intel/c++
(sources built on Alpha )) . I'll have to wait some hours again to see
what comes out of the build oven.
/gat
As a side note, I was able to overcome the "gp-relative relocation
against dynamic symbol" by fixing the source. Then the linker barfed at
not having enough core. Oh well.
Kelledin wrote:
>On Saturday 16 August 2003 03:01 am, Uncle George wrote:
>
>
>>What does this statement mean? I cant tell if its an error or
>>not
>>
>>/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>>/../../alphaev56-unknown-linux-gnu/bin/ld:
>>/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>>/libswlib.a(swlib.o): gp-relative relocation against dynamic
>>symbol
>>SwGlobalDocShell::pObjectFactory
>>/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>>/../../alphaev56-unknown-linux-gnu/bin/ld:
>>/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>>/libswlib.a(swlib.o): gp-relative relocation against dynamic
>>symbol
>>SwGlobalDocShell::pObjectFactory
>>/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.2/../..
>>/../../alphaev56-unknown-linux-gnu/bin/ld:
>>/mnt/sdb4/redhat/BUILD/oo_1.0.2_src/solver/641/unxlnga.pro/lib
>>/libswlib.a(swlib.o): gp-relative relocation against dynamic
>>symbol
>>SwGlobalDocShell::pObjectFactory
>>collect2: ld returned 1 exit status
>>
>>
>
>That means libswlib.a wasn't compiled with -fpic or -fPIC. Any
>object file or static library that gets linked to a dynamic
>library needs to be compiled with -fpic or -fPIC on Alpha,
>otherwise you're likely to get the "gp-relative relocation"
>error.
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory
2003-08-16 20:36 ` Uncle George
@ 2003-08-17 0:40 ` Kelledin
0 siblings, 0 replies; 4+ messages in thread
From: Kelledin @ 2003-08-17 0:40 UTC (permalink / raw)
To: axp-list
On Saturday 16 August 2003 03:36 pm, Uncle George wrote:
> I'm reasonably sure that you might need PIC code to create a
> dynamic library, from static &
> other dynamic libraries, I'm not so sure thats true if you
> want an executable, derived from static & dynamic libraries.
Let me assure you, you need PIC code in either case. ;) -fpic or
-fPIC instructs GCC to modify the code's register usage at an
assembly-language level before the assembly code gets passed to
gas. So it needs to be done before the object file is
generated, and every object file that gets linked into a dynamic
library needs to have it done (at least on Alpha).
My rule of thumb is, whenever you build a static library with no
corresponding dynamic library, the static library should be
built with -fPIC. Otherwise you're liable to have this very
problem further down the road and end up having to retrace your
steps.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-17 0:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-16 8:01 gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory Uncle George
2003-08-16 17:15 ` Kelledin
2003-08-16 20:36 ` Uncle George
2003-08-17 0:40 ` Kelledin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox