[Mono-dev] Unable to locate msc during compile

C.J. Adams-Collier cjac at colliertech.org
Fri Apr 11 21:12:32 EDT 2008


Yeah.  We should probably have the build system run 'make get- 
monolite-latest' when the build fails in this way.  Until then, you  
can run 'make get-monolite-latest' and then try again :)

On Apr 8, 2008, at 2:42 AM, Mads Bondo Dydensborg wrote:

> Hi there
>
> I am getting a pretty confusing message when trying to compile mono- 
> svn - it
> can not find mcs.
>
> The machine already have an install of mono-1.9. My PATH (ect)  
> includes a
> reference to this: Here is the last few lines of output from the  
> compilation
> process:
>
> Making all in runtime
> /home/madsdyd/Compile/Mono/mono/runtime
> make[2]: Entering directory `/home/madsdyd/Compile/Mono/mono/runtime'
> cd .. && /bin/sh ./config.status runtime/etc/mono/1.0/machine.config
> config.status: executing runtime/etc/mono/1.0/machine.config commands
> cd .. && /bin/sh ./config.status runtime/etc/mono/2.0/machine.config
> config.status: executing runtime/etc/mono/2.0/machine.config commands
> cd .. && /bin/sh ./config.status runtime/etc/mono/2.0/web.config
> config.status: executing runtime/etc/mono/2.0/web.config commands
> cd .. && /bin/sh ./config.status runtime/etc/mono/browscap.ini
> config.status: executing runtime/etc/mono/browscap.ini commands
> 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
> /home/madsdyd/Compile/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/gmcs/gmcs.exe"'" "$@"' >>
> _tmpinst/bin/gmcs ; \
> chmod +x _tmpinst/bin/gmcs
> if test -w ../../mcs; then :; else chmod -R +w ../../mcs; fi
> cd ../../mcs && make PROFILES='default net_2_0' CC='gcc' all-profiles
> make[3]: Entering directory `/home/madsdyd/Compile/Mono/mcs'
> make profile-do--default--all profile-do--net_2_0--all
> make[4]: Entering directory `/home/madsdyd/Compile/Mono/mcs'
> make PROFILE=basic all
> make[5]: Entering directory `/home/madsdyd/Compile/Mono/mcs'
> make[6]: mcs: Command not found
> make[6]: *** [build/deps/basic-profile-check.exe] Error 127
> *** The compiler 'mcs' doesn't appear to be usable.
> *** You need a C# compiler installed to build MCS (make sure mcs  
> works from
> the command line)
> *** Read INSTALL.txt for information on how to bootstrap a Mono  
> installation.
> make[5]: *** [do-profile-check] Error 1
> make[5]: Leaving directory `/home/madsdyd/Compile/Mono/mcs'
> make[4]: *** [profile-do--basic--all] Error 2
> make[4]: Leaving directory `/home/madsdyd/Compile/Mono/mcs'
> make[3]: *** [profiles-do--all] Error 2
> make[3]: Leaving directory `/home/madsdyd/Compile/Mono/mcs'
> make[2]: *** [all-local] Error 2
> make[2]: Leaving directory `/home/madsdyd/Compile/Mono/mono/runtime'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/madsdyd/Compile/Mono/mono'
> make: *** [all] Error 2
> Failure during make
> madsdyd at koncept:~/Compile/Mono$ which mcs
> /home/madsdyd/opt/mono-1.9/bin/mcs
> madsdyd at koncept:~/Compile/Mono$ mcs
> error CS2008: No files to compile were specified
> Compilation failed: 1 error(s), 0 warnings
>
> huh? What gives?
>
> Regards
>
> Mads
>
> -- 
> Med venlig hilsen/Regards
>
> Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo  
> Dydensborg
> Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45  
> 44 86 77 34
>
> _______________________________________________
> 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