Bug 38223 - missing package in arm64 build
Summary: missing package in arm64 build
Alias: None
Product: Runtime
Classification: Mono
Component: packaging ()
Version: unspecified
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Alexis Christoforides
Depends on:
Reported: 2016-01-30 22:33 UTC by Harry May
Modified: 2016-04-30 03:28 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Harry May 2016-01-30 22:33:24 UTC
when building (any branch) on arm64 the file:

#include "../../../../mono-extensions/mono/arch/arm64/arm64-codegen.h"

but this link does not exist, and make stops with an error message.

Since a package "mono-extensions" does not exist, this #include statement may be wrong.
Comment 1 Zoltan Varga 2016-02-01 04:15:57 UTC
arm64 support in mono is currently not OSS.
Comment 2 Eduard Bloch 2016-04-02 17:16:20 UTC
Seriously, NO. I don't consider this answer a resolution and it's not a proper answer.

A proper solution would be adding a comment there, or in the installation docs, explaining why the arm64 support is missing, and probably where one can obtain the required extension. The extension seems to exist and to be available on the OS-X products of Xamarin (actually, of Microsoft's new Mono division, SCNR).
Comment 3 Harry May 2016-04-03 09:33:36 UTC
it works !
the actual version 4.5.0 compiles without any problem on a arm64 machine
Comment 4 Eduard Bloch 2016-04-04 16:44:42 UTC
Seriously, I have hard times believing that. Just tested, with an aarch64 crosscompiler (some Yocto SDK) and http://download.mono-project.com/sources/mono/nightly/mono- :

  CC       mono-networkinterfaces.lo
In file included from ../../mono/utils/mono-stack-unwinding.h:10:0,
                 from ../../mono/utils/mono-threads.h:14,
                 from mono-mmap.c:36:
../../mono/utils/mono-context.h:288:43: fatal error: mono/arch/arm64/arm64-codegen.h: No such file or directory
 #include <mono/arch/arm64/arm64-codegen.h>
compilation terminated.
Comment 5 Harry May 2016-04-04 17:25:53 UTC
it really works.
But you need to get it from the right sources.

I did this on an Odroid-C2 and an Lemaker HiKey (both 64 bit Ubuntu, and both work well):

git clone git://github.com/mono/mono.git
cd mono
./autogen.sh --prefix=/usr/local 
sudo make install 

and mono works.
I have it running till 2 days on 64 bit and it works without any problems.
Comment 6 Marcus Comstedt 2016-04-29 17:20:50 UTC
Confirming that a build from git is possible (using monolite to bootstrap).

arm64-codegen.h exists in both the master and branch-4.5.0-branch branches,
but appears to have been stripped from the nightlies...
Comment 7 Zoltan Varga 2016-04-30 03:28:55 UTC
Should be fixed by mono master 096d2488cc881406443331df5050ec8e87ab335b.