[CLN-list] problems building on powerpc64

Dmitry Khutornoy khutornoy at gmail.com
Mon Apr 3 15:27:02 CEST 2006


Hello.

I have tried to compile with defined __rs6000__ and make reports following error
now:
...
g++ -shared -nostdlib
/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../lib/crti.o
/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtbeginS.o .libs/cl_abort.o
 ...  -Wl,--rpath -Wl,/usr/lib/../lib -Wl,--rpath -Wl,/usr/lib/../lib -L/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3 -L/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/lib/../lib -L/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/lib -L/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../lib -L/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../.. -L/lib/../lib -L/usr/lib/../lib /usr/lib/../lib/libstdc++.so -lm -lc -lgcc_s /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtsavres.o /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtendS.o /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../lib/crtn.o  -Wl,-soname -Wl,libcln.so.4 -o .libs/libcln.so.4.0.1
make[1]: Leaving directory `/nethome/apa/cln-1.1.11/src'
/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../powerpc-suse-linux/bin/ld: Error: The symbol `cl_module__cl_prin_globals__ctorend' has a R_PPC_REL24 relocation, that means '.libs/cl_prin_globals.o' was compiled without -fPIC.
collect2: ld returned 1 exit status
make[1]: *** [libcln.la] Error 1
make: *** [all] Error 2


though everything was compiled with -fPIC:
g++ -O -I../include -I../include -I./base -c ./base/output/cl_prin_globals.cc  -fPIC -DPIC -o .libs/cl_prin_globals.o

Maybe this is completely different problem and it is concerned with
system i'm compiling on so i post again my configuration:

Linux blade1 2.6.5-7.252-pseries64 #1 SMP Tue Feb 14 11:11:04 UTC 2006 ppc64 ppc64 ppc64 GNU/Linux


> OK, you are compiling in PowerPC 32-bit mode, but CLN's configuration was
> confused because you have a 64-bit CPU.

> The immediate workaround for you is to change include/cln/config.h so that it
> defines __rs6000__ and not __powerpc64__, do a "make clean" and "make".

> The fix should be to add code to m4/general.m4 to distinguish 32-bit and
> 64-bit PowerPC, like it's already done for Sparc / Sparc64. Can someone
> please do that? I don't have the time.


-- 
Best regards,
 Dmitry                            mailto:khutornoy at gmail.com



More information about the CLN-list mailing list