[Mono-dev] Compiling Mono v2.4 (Solaris 10 SPARCv9)

Elamide timothy.l.smith at accenture.com
Mon Jul 27 08:44:21 EDT 2009


Hi,

If you are using the gcc 3.4.6 from sunfreeware then you will probably have
to link /usr/ccs/bin/ld to your prefered version of ld.


John M wrote:
> 
> Hi,
> 
> I am getting the following error while compiling mono on Solaris.
> 
> I checked on various forums and here is what I find but it didn’t work
> 
> http://mail.opensolaris.org/pipermail/tools-gcc/2006-September/000130.html
> 
> We want to use /usr/sfw/lib/gld instead of /usr/ccs/bin/ld but even if I
> provide this in the options the compiler doesn’t pick it up
> 
> ./configure --prefix=/local/0/sw/mono/2.4 --with-tls=pthread
> --enable-dtrace=no --with-gc=none --with-as=/usr/sfw/bin/gas
> --with-ld=/usr/sfw/bin/gld
> 
> 
> Error message:
> 
> gmake[3]: Entering directory `/local/0/mono-2.4/mono/metadata'
> /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
> -Wcast-align -Wwrite-strings -Wno-char-subscripts -Wno-cast-align -mcpu=v9 
> -L/opt/lib -L/opt/sfw/lib -L/usr/sfw/lib -L/usr/lib -lstdc++ -o pedump
> pedump.o libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la 
> -threads -L/local/0/sw/glib/2.4.0/lib -lgthread-2.0 -lglib-2.0   -lm  -lrt  
> -lsocket -lnsl -lxnet -lpthread -lm
> /usr/ccs/bin/ld: illegal option -- rpath
> /usr/ccs/bin/ld: illegal option -- rpath
> /usr/ccs/bin/ld: illegal option -- rpath
> /usr/ccs/bin/ld: illegal option -- rpath
> usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
> file(s)
>         [-64]           enforce a 64-bit link-edit
>         [-a]            create an absolute file
>         [-b]            do not do special PIC relocations in a.out
> 

-- 
View this message in context: http://www.nabble.com/Compiling-Mono-v2.4-RC2-%28Solaris-10-SPARCv9%29-tp22587130p24651971.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list