[Mono-dev] Building from Source Fails with mcs: Command not found
cyd
chaselton at gmail.com
Thu May 21 11:33:16 UTC 2015
I answered my own question by running 'file' on build.exe:
bld/mono/mono-4.0.0/runtime $ file ../mcs/class/lib/monolite/basic.exe
../mcs/class/lib/monolite/basic.exe: PE32 executable for MS Windows
(console) Intel 80386 32-bit Mono/.Net assembly
Is there a monolite for Linux?
cyd wrote
> Is the issue with something built before build.exe attempts to run,
> something wrong with build.exe or with build.exe on android?
> akoeplinger wrote
>> The basic.exe in monolite is mcs. I think you're heading down the wrong
>> path, judging from your log it tries a system-wide mcs first (as
>> expected) and then falls back to monolite because Mono isn't installed.
>> Invoking monolite's basic.exe fails though with "Illegal instruction",
>> which points to some runtime issue.
>>
>> -- Alex
>>
>>> Date: Thu, 21 May 2015 03:38:02 -0700
>>> From:
>> chaselton@
>>> To:
>> mono-devel-list at .ximian
>>> Subject: Re: [Mono-dev] Building from Source Fails with mcs: Command not
>>> found
>>>
>>> More information:
>>>
>>> I examined the mcs and mono files in _tmpdir/bin after realizing they
>>> were
>>> created on the fly...they are shell scripts. The mono script sets up
>>> some
>>> env variables...and does some other stuff I haven't looked to closely at
>>> yet. The mcs script is this:
>>>
>>> #! /bin/sh
>>> exec "/bld/mono/mono-4.0.0/runtime/_tmpinst/bin/mono"
>>> "/bld/mono/mono-4.0.0/mcs/class/lib/build/mcs.exe" "$@"
>>>
>>> That's a space between the shebang and /bin/sh...and the second
>>> directory...mcs/class/lib/build...doesn't exist. The directory
>>> mcs/class/lib/monolite does...but it doesn't contain mcs.exe...it
>>> contains
>>> build.exe and some other files.
>>>
>>> Thoughts? Are the generated scripts incorrect or should monolite
>>> include a
>>> copy of mcs.exe
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://mono.1490590.n4.nabble.com/Building-from-Source-Fails-with-mcs-Command-not-found-tp4666000p4666007.html
>>> Sent from the Mono - Dev mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Mono-devel-list mailing list
>>>
>> Mono-devel-list at .ximian
>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at .ximian
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
--
View this message in context: http://mono.1490590.n4.nabble.com/Building-from-Source-Fails-with-mcs-Command-not-found-tp4666000p4666010.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list