[Mono-dev] Problems building Mono 2.10.8 on 64-bit SmartOS (Solaris)

Scott Lowe scott at ayanami.ltd.uk
Tue Aug 14 17:21:00 UTC 2012


Hello,

I'm experiencing difficulties getting Mono to compile on a 64-bit SmartOS (Solaris) machine, and I hope that somebody can help me.

For the uninitiated, SmartOS is Joyent's KVM-integrated distribution of IllumOS which was previously OpenSolaris:

$ uname -a
SunOS 5.11 joyent_20120424T232010Z i86pc i386 i86pc Solaris


Here are my environment variables and configuration parameters:


*** LIBGC (Boehm) ***


PREFIX=/opt/mono-gc

./configure --prefix=$PREFIX --libdir=$PREFIX/lib/amd64 \
CC=x86_64-sun-solaris2.11-gcc \
CXX=x86_64-sun-solaris2.11-g++ \
CPPFLAGS=-m64 \
CFLAGS=-m64 \
CXXFLAGS=-m64 \
LDFLAGS=-m64



*** MONO ***


ulimit -Hs 10240
PREFIX=/opt/mono

./configure --prefix=$PREFIX --bindir=$PREFIX/bin/amd64 \
--libdir=$PREFIX/lib/amd64 \
--with-gc=boehm --with-sigaltstack=no \
--disable-dtrace --disable-mcs-build \
CPPFLAGS="-m64 -I/opt/mono-gc/include" \
CFLAGS="-I/opt/mono/include" \
AS='as -64' \
CC=x86_64-sun-solaris2.11-gcc \
CXX=x86_64-sun-solaris2.11-g++ \
GREP=ggrep \
SED=gsed \
LDFLAGS="-m64 -L/opt/mono-gc/lib/amd64 -R/opt/mono/lib/amd64" \
PKG_CONFIG_PATH="/usr/lib/amd64/pkgconfig:$PKG_CONFIG_PATH"



The configuration phase runs well and the build appears to reach a fairly advanced stage, but it fails at this point:



tramp-amd64.c: In function 'mono_arch_create_monitor_exit_trampoline':
tramp-amd64.c:1094:4: warning: comparison between 'enum <anonymous>' and 'enum <anonymous>' [-Wenum-compare]
-e CC   libmono_static_la-mini-posix.lo
../../libtool[41]: -64: not found [No such file or directory]
mini-posix.c: In function 'mono_runtime_syscall_fork':
mini-posix.c:634:2: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
-e LD   libmono-static.la
../../libtool[41]: -64: not found [No such file or directory]
-e CC   mono-main.o
-e LD   mono
../../libtool[41]: -64: not found [No such file or directory]
Undefined                       first referenced
 symbol                             in file
signbit                             ./.libs/libmono-static.a(libmono_static_la-mini-amd64.o)
ld: fatal: symbol referencing errors. No output written to mono
collect2: error: ld returned 1 exit status
make[4]: *** [mono] Error 1
make[4]: Leaving directory `/home/admin/mono-2.10.8/mono/mini'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/admin/mono-2.10.8/mono/mini'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/admin/mono-2.10.8/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/admin/mono-2.10.8'
make: *** [all] Error 2


Does anybody recognise this failure?

I've also tried building Mono 2.11.3 (alpha), but the result is much much worse, and the build barely gets started before failing.

I've Googled extensively and there are no more clues left on the internet! I'd really appreciate some help from anybody that has successfully built recent releases of Mono on SmartOS, IllumOS or OpenSolaris. 


Kind regards,

Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120814/3ee2b69a/attachment.html>


More information about the Mono-devel-list mailing list