Quantcast

mono build fails on aarch64

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

mono build fails on aarch64

kdg3737
Hi

Im trying to build the latest mono on aarch64 (debian), it fails with:

Unhandled Exception:
System.ExecutionEngineException: System.NullReferenceException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object
   --- End of inner exception stack trace ---
  at System.Environment.FailFast (System.String message, System.Exception exception) [0x00007] in <f267068bca084f4889da3b470480ddf3>:0
  at Microsoft.CodeAnalysis.FailFast.OnFatalException (System.Exception exception) [0x00038] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.FatalError.Report (System.Exception exception, System.Action`1[T] handler) [0x00014] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.FatalError.Report (System.Exception exception) [0x00000] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.FatalError.ReportUnlessCanceled (System.Exception exception) [0x0000a] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.CSharp.MethodCompiler+<>c__DisplayClass20_0.<CompileNamedTypeAsTask>b__0 () [0x0001c] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Roslyn.Utilities.UICultureUtilities+<>c__DisplayClass5_0.<WithCurrentUICulture>b__0 () [0x00038] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Threading.Tasks.Task.Execute () [0x00010] in <f267068bca084f4889da3b470480ddf3>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f267068bca084f4889da3b470480ddf3>:0
  at Microsoft.CodeAnalysis.CSharp.MethodCompiler.WaitForWorkers () [0x00012] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Microsoft.CodeAnalysis.CSharp.MethodCompiler.CompileMethodBodies (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation, Microsoft.CodeAnalysis.CSharp.Emit.PEModuleBuilder moduleBeingBuiltOpt, System.Boolean generateDebugInfo, System.Boolean hasDeclarationErrors, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, System.Predicate`1[T] filterOpt, System.Threading.CancellationToken cancellationToken) [0x0004e] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CompileMethods (Microsoft.CodeAnalysis.Emit.CommonPEModuleBuilder moduleBuilder, System.Boolean emittingPdb, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, System.Predicate`1[T] filterOpt, System.Threading.CancellationToken cancellationToken) [0x00097] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Microsoft.CodeAnalysis.CommonCompiler.RunCore (System.IO.TextWriter consoleOutput, Microsoft.CodeAnalysis.ErrorLogger errorLogger, System.Threading.CancellationToken cancellationToken) [0x00311] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.CommonCompiler.Run (System.IO.TextWriter consoleOutput, System.Threading.CancellationToken cancellationToken) [0x00035] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Csc+<>c__DisplayClass1_0.<Run>b__0 (System.IO.TextWriter tw) [0x00000] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CommandLine.ConsoleUtil.RunWithUtf8Output[T] (System.Boolean utf8Output, System.IO.TextWriter textWriter, System.Func`2[T,TResult] func) [0x0001d] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Csc.Run (System.String[] args, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter, Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader analyzerLoader) [0x00048] in <0b73f303db124699a9f415aa972a6e9f>:0
  at (wrapper delegate-invoke) <Module>:invoke_int_string[]_BuildPaths_TextWriter_IAnalyzerAssemblyLoader (string[],Microsoft.CodeAnalysis.BuildPaths,System.IO.TextWriter,Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader)
  at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.RunLocalCompilation (System.String[] arguments, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter) [0x00000] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CommandLine.BuildClient.RunCompilation (System.Collections.Generic.IEnumerable`1[T] originalArguments, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter) [0x0009d] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.Run (System.Collections.Generic.IEnumerable`1[T] arguments, System.Collections.Generic.IEnumerable`1[T] extraArguments, Microsoft.CodeAnalysis.CommandLine.RequestLanguage language, Microsoft.CodeAnalysis.CommandLine.CompileFunc compileFunc, Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader analyzerAssemblyLoader) [0x0003e] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main (System.String[] args, System.String[] extraArgs) [0x00018] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main (System.String[] args) [0x00006] in <0b73f303db124699a9f415aa972a6e9f>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ExecutionEngineException: System.NullReferenceException: Object reference not set to an instance of an object ---> System.NullReferenceException: Object reference not set to an instance of an object
   --- End of inner exception stack trace ---
  at System.Environment.FailFast (System.String message, System.Exception exception) [0x00007] in <f267068bca084f4889da3b470480ddf3>:0
  at Microsoft.CodeAnalysis.FailFast.OnFatalException (System.Exception exception) [0x00038] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.FatalError.Report (System.Exception exception, System.Action`1[T] handler) [0x00014] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.FatalError.Report (System.Exception exception) [0x00000] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.FatalError.ReportUnlessCanceled (System.Exception exception) [0x0000a] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.CSharp.MethodCompiler+<>c__DisplayClass20_0.<CompileNamedTypeAsTask>b__0 () [0x0001c] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Roslyn.Utilities.UICultureUtilities+<>c__DisplayClass5_0.<WithCurrentUICulture>b__0 () [0x00038] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Threading.Tasks.Task.Execute () [0x00010] in <f267068bca084f4889da3b470480ddf3>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <f267068bca084f4889da3b470480ddf3>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <f267068bca084f4889da3b470480ddf3>:0
  at Microsoft.CodeAnalysis.CSharp.MethodCompiler.WaitForWorkers () [0x00012] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Microsoft.CodeAnalysis.CSharp.MethodCompiler.CompileMethodBodies (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation, Microsoft.CodeAnalysis.CSharp.Emit.PEModuleBuilder moduleBeingBuiltOpt, System.Boolean generateDebugInfo, System.Boolean hasDeclarationErrors, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, System.Predicate`1[T] filterOpt, System.Threading.CancellationToken cancellationToken) [0x0004e] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CompileMethods (Microsoft.CodeAnalysis.Emit.CommonPEModuleBuilder moduleBuilder, System.Boolean emittingPdb, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, System.Predicate`1[T] filterOpt, System.Threading.CancellationToken cancellationToken) [0x00097] in <7d2059822c5f4a78ad93a7893a792a05>:0
  at Microsoft.CodeAnalysis.CommonCompiler.RunCore (System.IO.TextWriter consoleOutput, Microsoft.CodeAnalysis.ErrorLogger errorLogger, System.Threading.CancellationToken cancellationToken) [0x00311] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.CommonCompiler.Run (System.IO.TextWriter consoleOutput, System.Threading.CancellationToken cancellationToken) [0x00035] in <12d27e16f5684917a6cbffa8f9cc6eae>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Csc+<>c__DisplayClass1_0.<Run>b__0 (System.IO.TextWriter tw) [0x00000] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CommandLine.ConsoleUtil.RunWithUtf8Output[T] (System.Boolean utf8Output, System.IO.TextWriter textWriter, System.Func`2[T,TResult] func) [0x0001d] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Csc.Run (System.String[] args, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter, Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader analyzerLoader) [0x00048] in <0b73f303db124699a9f415aa972a6e9f>:0
  at (wrapper delegate-invoke) <Module>:invoke_int_string[]_BuildPaths_TextWriter_IAnalyzerAssemblyLoader (string[],Microsoft.CodeAnalysis.BuildPaths,System.IO.TextWriter,Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader)
  at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.RunLocalCompilation (System.String[] arguments, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter) [0x00000] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CommandLine.BuildClient.RunCompilation (System.Collections.Generic.IEnumerable`1[T] originalArguments, Microsoft.CodeAnalysis.BuildPaths buildPaths, System.IO.TextWriter textWriter) [0x0009d] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.Run (System.Collections.Generic.IEnumerable`1[T] arguments, System.Collections.Generic.IEnumerable`1[T] extraArguments, Microsoft.CodeAnalysis.CommandLine.RequestLanguage language, Microsoft.CodeAnalysis.CommandLine.CompileFunc compileFunc, Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader analyzerAssemblyLoader) [0x0003e] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main (System.String[] args, System.String[] extraArgs) [0x00018] in <0b73f303db124699a9f415aa972a6e9f>:0
  at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main (System.String[] args) [0x00006] in <0b73f303db124699a9f415aa972a6e9f>:0
make[8]: *** [../../class/lib/basic/mscorlib.dll] Error 1
make[7]: *** [do-all] Error 2
make[6]: *** [all-recursive] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Please help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mono build fails on aarch64

Jo Shields


On 31/03/17 19:50, kdg3737 wrote:
> Hi
>
> Im trying to build the latest mono on aarch64 (debian), it fails with:

Define "the latest"

_______________________________________________
Pkg-mono-devel mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mono-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mono build fails on aarch64

kdg3737
In reply to this post by kdg3737
I downloaded it from git, the OS is aarch64 debian (see https://github.com/bamarni/pi64) and it's running on a rpi3. Here are the steps I took for to compile it:

export MONO_TLS_PROVIDER=btls
git clone git://github.com/mono/mono.git
cd mono
git clone git://github.com/mono/libgdiplus
cd libgdiplus
sudo ./autogen.sh --prefix=/usr/local
sudo make
sudo make install
cd ..
sudo MONO_TLS_PROVIDER=btls ./autogen.sh --prefix=/usr/local --enable-nls=no
sudo MONO_TLS_PROVIDER=btls make get-monolite-latest
sudo MONO_TLS_PROVIDER=btls make 2> build.log
Loading...