[Mono-dev] Building Mono failed on Raspberry Pi

Alexander Köplinger alkpli at microsoft.com
Tue May 23 09:16:39 UTC 2017

You can temporarily revert back to building Mono with mcs instead of csc by passing --with-csc=mcs to autogen.sh/configure (this is broken in latest gist so please try it on the tarball release).

Anyway, this looks like a bug so would be good to get a bug report on https://bugzilla.xamarin.com .
We do compile Mono on ARM platforms with every commit on our CI server so it might be something specific to the Pi 3.

- Alex

On 23 May 2017, at 06:38, moelski <dominik at logview.info<mailto:dominik at logview.info>> wrote:

Hi !

I tried to compile the latest TAR.GZ and Git revision to compile on an
Raspberry Pi 3.
But It won´t work at all ...  I got this error message when I use the TAR

error CS2001: Source file '/home/pi/sources/mono-5.0.0/mcs/build/common/basic-profile-check.cs' could not be found.
build/profiles/basic.make:113: recipe for target 'build/deps/basic-profile-check.exe' failed
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
*** The runtime 'mono' doesn't appear to be usable.
*** Trying the 'monolite/1050000000' directory.
Microsoft (R) Visual C# Compiler version
Copyright (C) Microsoft Corporation. All rights reserved.

Creating .dep_dirs-basic...
Creating .dep_dirs-basic...
mkdir -p -- ../../class/lib/basic/
CSC     [basic] mscorlib.dll
error CS7038: Failed to emit module 'mscorlib'.
../../build/library.make:302: recipe for target '../../class/lib/basic/mscorlib.dll' failed

And if I use the latest git revision I got this error:

  at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.MainCore (System.String[] args) [0x00017] in <01ce537aa87946fabd16a163674f6c7b>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main (System.String[] args) [0x00000] in <01ce537aa87946fabd16a163674f6c7b>:0
../../build/library.make:311: recipe for target '../../class/lib/basic/mscorlib.dll' failed
make[8]: *** [../../class/lib/basic/mscorlib.dll] Error 1
../../build/rules.make:202: recipe for target 'do-all' failed
make[7]: *** [do-all] Error 2

So in both cases he can´t compile the mscorlib.dll. There was an issue here
in the list with some roslyn features which are not available for csc. Is it
the same stuff?
Can you give some hints or advice when this will be fixed?

regards Dominik

View this message in context: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmono.1490590.n4.nabble.com%2FBuilding-Mono-5-0-0-100-failed-on-Raspberry-Pi-tp4670763.html&data=02%7C01%7Calkpli%40microsoft.com%7Ce320259d8fbd42a2db1608d4a1977d1c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636311119408033948&sdata=4k22xPs2cYMlvzYFXyeLkjIMXU1PIIXLFSuMbkQadf8%3D&reserved=0
Sent from the Mono - Dev mailing list archive at Nabble.com<http://Nabble.com>.
Mono-devel-list mailing list
Mono-devel-list at lists.dot.net<mailto:Mono-devel-list at lists.dot.net>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20170523/2148fcbc/attachment-0001.html>

More information about the Mono-devel-list mailing list