[Mono-list] Compiling Mono 1.2 on Solaris

k2k2e6 pawan at pinger.org
Mon Nov 13 11:24:07 EST 2006


I am getting the following errors on Solaris when compiling Mono 1.2 tarball:

UltraSparc III, Solaris 10:
Making all in metadata
/bin/bash ../../libtool --tag=CC --mode=link gcc -O -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
-Wcast-align -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 -lgthread-2.0 -lglib-2.0
-lgmodule-2.0 -lglib-2.0 -lm -lrt  -lsocket -lnsl -lxnet -lpthread -lm
gcc -O -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
-Wcast-align -Wwrite-strings -Wno-char-subscripts -Wno-cast-align -mcpu=v9
-o pedump pedump.o  ./.libs/libmonoruntime.a ../io-layer/.libs/libwapi.a
../utils/.libs/libmonoutils.a ../../libgc/.libs/libmonogc.a -ldl
-lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -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
0xfd6689ad is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0xfd6689b3 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0xfd6689b7 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0xfd6689bb is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0xfd7279da is non-aligned
ld: fatal: relocation error: R_SPARC_32: file
../../libgc/.libs/libmonogc.a(sparc_mach_dep.o): symbol <unknown>: offset
0xfd74d826 is non-aligned
collect2: ld returned 1 exit status
*** Error code 1


UltraSparcII, Solaris 8:
make[7]: Entering directory `/users/psingh/mono-1.2/mcs/class/System'
make all-local
make[8]: Entering directory `/users/psingh/mono-1.2/mcs/class/System'
** Warning: System.dll built without parts that depend on: System.Xml.dll
MONO_PATH="../../class/lib/basic:$MONO_PATH"
/home/psingh/mono-1.2/runtime/mono-wrapper  ../../class/lib/basic/mcs.exe
/codepage:65001   -d:NET_1_1 -d:ONLY_1_1 -d:BOOTSTRAP_WITH_OLDLIB -debug
/noconfig  -target:library -out:System.dll  @System.dll.sources
Segmentation Fault - core dumped
make[8]: *** [../../class/lib/basic/System.dll] Error 139
make[8]: Leaving directory `/users/psingh/mono-1.2/mcs/class/System'
make[7]: *** [do-all] Error 2


I ran configure and then make. Is there something I have to tweak in the
configure file to build Mono on these two systems? I have to build Mono
myself because one of the Mono developers has submitted a patch for slow
solaris response and that fix is not in 1.2.

-Pawan

-- 
View this message in context: http://www.nabble.com/Compiling-Mono-1.2-on-Solaris-tf2623394.html#a7320106
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list