jel+ld at cs.uni-magdeburg.de wrote: > 06801: BASE: 1: ld.so.1: a.out: fatal: relocation error: R_AMD64_32: > file /export/scratch/elkner/build/R-2.10.1/lib/libRlapack.so: symbol > (unknown): value 0xfffffd7fd6030000 does not fit
This is usually a sign of non-pic code. > libRlapack.so is made like this: > cc -xO5 -xautopar -Bdirect -Wl,-z,defs -G -m64 > -L/export/scratch/elkner/build/root4build/usr/lib/amd64 > -L/usr/sfw/lib/amd64 -L /local/apps/sunstudio/prod/lib/amd64 -o > libRlapack.so dlamch.o dlapack0.o dlapack1.o dlapack2.o dlapack3.o > dlapack4.o cmplx.o -L../../../lib -lRblas -lfsu -lsunperf -lsunmath > -lmtsk -lm Add -ztext, and see if ld(1) complains of any no-pic objects, or look at "elfdump -d libRlapack.so | fgrep TEXTREL" to see if ld(1) has flagged non-pic inclusion. > NINT appears in cmplx.f, dlapack0.f and dlapack4.f, only. > > They are compiled like this: > f95 -xO5 -xautopar -stackvar -Kpic -g -fsimple=0 -m64 -xarch=sse3 > -I/export/scratch/elkner/build/root4build/usr/include -I/usr/sfw/include > -pad=local -xknown_lib=blas -c dlapack0.f -o dlapack0.o The -Kpic looks good, but what of the other objects that are included in this library? -- Rod Everybody to Everest! April 2010, I'll climb to Mt. Everest Base Camp as a fund raiser for The Challenged Athletes Foundation - www.everybodytoeverest.com. Visit www.everestchallenge.kintera.org/rie to show your support. Thanks!