[Mono-dev] problem building mono, can't get monolite to work

pablosantosluac at terra.es pablosantosluac at terra.es
Sat Oct 4 07:55:31 EDT 2008


Hi Andreas,

I'm afraid I'm not still close.

I got rid of the mcs binary and I tried (after make get-monolite-latest) 
and then

./configure --with-prefix=/home/pablo/monobin --with-sigaltstack=no 
--with-sigaltstack=no; make


And get:

gmake[2]: Entering directory `/home/pablo/mono/mono/runtime'
d=`cd ../support && pwd`; \
        sed 
's,target="libMonoPosixHelper[^"]*",target="'$d/libMonoPosixHelper.la'",' 
../data/config > etc/mono/configt
if test -z ""; then :; else \
          sed 's,<configuration>,& <dllmap dll="gdiplus.dll" target="" 
/>,' etc/mono/configt > etc/mono/configtt; \
          mv -f etc/mono/configtt etc/mono/configt; fi
mv -f etc/mono/configt etc/mono/config
/bin/bash /home/pablo/mono/mono/install-sh -d _tmpinst/bin
cp mono-wrapper _tmpinst/bin/mono
echo '#! /bin/sh' > _tmpinst/bin/mcs ; \
        r=`pwd`; m=`cd ../../mcs && pwd`; \
        echo 'exec "'"$r/_tmpinst/bin/mono"'" 
"'"$m/class/lib/default/mcs.exe"'" "$@"' >> _tmpinst/bin/mcs ; \
        chmod +x _tmpinst/bin/mcs
echo '#! /bin/sh' > _tmpinst/bin/ilasm ; \
        r=`pwd`; m=`cd ../../mcs && pwd`; \
        echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/ilasm/ilasm.exe"'" 
"$@"' >> _tmpinst/bin/ilasm ; \
        chmod +x _tmpinst/bin/ilasm
echo '#! /bin/sh' > _tmpinst/bin/gmcs ; \
        r=`pwd`; m=`cd ../../mcs && pwd`; \
        echo 'exec "'"$r/_tmpinst/bin/mono"'" 
"'"$m/class/lib/net_2_0/gmcs.exe"'" "$@"' >> _tmpinst/bin/gmcs ; \
        chmod +x _tmpinst/bin/gmcs
if test -w ../../mcs; then :; else chmod -R +w ../../mcs; fi
cd ../../mcs && gmake NO_DIR_CHECK=1 PROFILES='default net_2_0 net_3_5 
net_2_1' CC='gcc' all-profiles
gmake[3]: Entering directory `/home/pablo/mono/mcs'
gmake profile-do--default--all profile-do--net_2_0--all 
profile-do--net_3_5--all profile-do--net_2_1--all
gmake[4]: Entering directory `/home/pablo/mono/mcs'
gmake PROFILE=basic all
gmake[5]: Entering directory `/home/pablo/mono/mcs'
gmake[6]: mcs: Command not found
gmake[6]: *** [build/deps/basic-profile-check.exe] Error 127
gmake[6]: Entering directory `/home/pablo/mono/mcs'
*** The compiler 'mcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
gmake[7]: Entering directory `/home/pablo/mono/mcs'
GC Warning: Large stack limit(133464064): only scanning 8 MB
gmake[8]: *** [build/deps/basic-profile-check.exe] Error 1
gmake[8]: Entering directory `/home/pablo/mono/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
gmake[8]: *** [do-profile-check-monolite] Error 1
gmake[8]: Leaving directory `/home/pablo/mono/mcs'
gmake[7]: *** [do-profile-check] Error 2
gmake[7]: Leaving directory `/home/pablo/mono/mcs'
gmake[6]: *** [do-profile-check-monolite] Error 2
gmake[6]: Leaving directory `/home/pablo/mono/mcs'
gmake[5]: *** [do-profile-check] Error 2
gmake[5]: Leaving directory `/home/pablo/mono/mcs'
gmake[4]: *** [profile-do--basic--all] Error 2
gmake[4]: Leaving directory `/home/pablo/mono/mcs'
gmake[3]: *** [profiles-do--all] Error 2
gmake[3]: Leaving directory `/home/pablo/mono/mcs'
gmake[2]: *** [all-local] Error 2
gmake[2]: Leaving directory `/home/pablo/mono/mono/runtime'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/pablo/mono/mono'
gmake: *** [all] Error 2



Andreas Färber escribió:
> Hi Cetin!
>
> Am 03.10.2008 um 23:01 schrieb Cetin Sert:
>
>   
>> I'm also trying to build mono on opensolaris 10 x86-64 and got this  
>> message:
>>
>> when I run ./configure --with-gc=boehm
>> checking gc.h usability... no
>> checking gc.h presence... no
>> checking for gc.h... no
>>
>> checking gc/gc.h usability... no
>> checking gc/gc.h presence... no
>> checking for gc/gc.h... no
>> checking for GC_malloc in -lgc... no
>> configure: error: "GC requested but libgc not found! Install libgc  
>> or run
>>
>> configure with --with-gc=none."
>> I had built and installed the latest boehm gc I could find. I think  
>> it was version 7.sth.
>>     
>
> Did you add appropriate CPPFLAGS and LDFLAGS arguments for configure,  
> to tell it about your installation location?
>
>
>   
>> And if I configure mono using --with--gc=none how can I add a gc  
>> later? o_O??
>>     
>
> Well, the --with-gc=none workflow would be compiling without first,  
> then reconfiguring and recompiling with some other --with-gc= option  
> later on.
>
> On x86-64 OpenSolaris, you can use --with-gc=boehm right away, worked  
> nicely with Boehm GC 7.1 for me. If there is a compilation problem in  
> Boehm GC, you may need to install a more recent build (some in the low  
> 90 range was broken).
>
> Best regards,
>
> Andreas
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>   


More information about the Mono-devel-list mailing list