GPREL32 link error...anyone know what this is?
I just tried to compile kdegames-3.1 with gcc-3.2.1, and I hit
this error:
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x1c):
relocation truncated to fit: GPREL32 *UND*
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x20):
relocation truncated to fit: GPREL32 *UND*
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x24):
relocation truncated to fit: GPREL32 *UND*
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x28):
relocation truncated to fit: GPREL32 *UND*
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x2c):
relocation truncated to fit: GPREL32 *UND*
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x30):
relocation truncated to fit: GPREL32 *UND*
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x34):
relocation truncated to fit: GPREL32 *UND*
./solver/.libs/libsolver.a(libsolver_la.all_cpp.o)(.rodata+0x38):
relocation truncated to fit: GPREL32 *UND*
collect2: ld returned 1 exit status
make[3]: *** [kmines] Error 1
So far, I've tried adding -fPIC and -Os to CFLAGS to see if it
made any difference, but no luck. At this point, I can't tell
if it's a GCC bug, or if it's just a hard limitation on
alpha-linux gcc that kdegames just happened to hit (like the
binary's static data region ended up too large to allow a
successful link). And of course, I have no idea how to fix
it...
(Needless to say, kdegames builds fine on x86.)
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
Reply to: