[Mono-list] compiling libgc on Solaris 10: fatal linking relocation error: R_SPARC_32

dgfitch monoforums.10.dgfitch at antichef.com
Wed Jun 3 12:07:36 EDT 2009


This is a 32-bit SPARC build on Solaris 10.


After building fresh pkg-config, glib, pango, and gtk with:

./configure --prefix=/home/svc_folio/local && gmake && gmake install

I started the mono compile with the same configuration.


It gets really close to completion, and then fails during the linking.

/bin/bash ../../libtool --quiet --tag=CC --mode=link gcc -g -O2
-fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
-Wwrite-strings -Wno-char-subscripts -Wno-cast-align -mcpu=v9 -o pedump
pedump.o libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
../../libgc/libmonogc.la -L/home/svc_folio/local/lib -lgthread-2.0 -lpthread
-lthread -lrt -lglib-2.0 -lm pedump-dtrace.o -lrt -lsocket -lnsl -lxnet
-lpthread -lm
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0x7d755baa is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0x7d84a989 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0x7d8797e6 is non-aligned
collect2: ld returned 1 exit status
gmake[3]: *** [pedump] Error 1
gmake[3]: Leaving directory `/home/svc_folio/mono/mono-135093/mono/metadata'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/svc_folio/mono/mono-135093/mono'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/svc_folio/mono/mono-135093'
gmake: *** [all] Error 2

Googling for R_SPARC_32 is unhelpful. There are old messages which point
vaguely towards blog posts that don't seem to exist any more.

This error is not mentioned on the main Solaris "problems" page.

I'm just a .NET high-level dweeb, but it looks like a misalignment problem
of some kind.

Clues would be very appreciated!
-- 
View this message in context: http://www.nabble.com/compiling-libgc-on-Solaris-10%3A-fatal-linking-relocation-error%3A-R_SPARC_32-tp23854420p23854420.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list