Embeddinator-4000 icon indicating copy to clipboard operation
Embeddinator-4000 copied to clipboard

Generate-Android: fatal error: stdlib.h: No such file or directory

Open gcastaldi opened this issue 7 years ago • 7 comments

Following the C/Java procedure in the Contributing page I have the following error in my mac:

Executing task: Generate-Android Executing: mono --debug build/lib/Release/Embeddinator-4000.exe -verbose -gen=Java -out=build/lib/Release/android -platform=Android -compile tests/managed/android/bin/Release/managed.dll Executing: mono --debug build/lib/Release/Embeddinator-4000.exe -verbose -gen=Java -out=build/lib/Release/android -platform=Android -compile tests/managed/android/bin/Release/managed.dll Parsing assemblies... Parsed 'managed.dll' Processing assemblies... Pass 'Embeddinator.Passes.CheckReservedKeywords' Pass 'Embeddinator.Passes.GenerateObjectTypesPass' Pass 'Embeddinator.Passes.GenerateArrayTypes' Pass 'CppSharp.Passes.CheckIgnoredDeclsPass' Property 'Null' was ignored due to ignored decl Function 'new' was ignored due to ignored param Function 'GetBaseException' was ignored due to ignored return decl Function 'GetObjectData' was ignored due to ignored param Function 'GetType' was ignored due to ignored return decl Function 'GetObjectData' was ignored due to ignored param Function 'GetBaseException' was ignored due to ignored return decl Function 'GetObjectData' was ignored due to ignored param

    ### removed other similar warnings ###


    Function 'remove_SystemUiVisibilityChange' was ignored due to ignored param
    Function 'add_Touch' was ignored due to ignored param
    Function 'remove_Touch' was ignored due to ignored param
    Function 'add_FocusChange' was ignored due to ignored param
    Function 'remove_FocusChange' was ignored due to ignored param
    Function 'new' was ignored due to ignored return decl
    Function 'ToLocalJniHandle' was ignored due to ignored return decl
    Function 'SetJniIdentityHashCode' was ignored due to ignored param
    Function 'SetJniManagedPeerState' was ignored due to ignored param
    Function 'SetPeerReference' was ignored due to ignored param
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Implicit' was ignored due to ignored return decl
    Function 'op_Explicit' was ignored due to ignored return decl
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'op_Explicit' was ignored due to ignored param
    Function 'Equals' was ignored due to ignored param
    Function 'Wait' was ignored due to ignored param
    Function 'Wait' was ignored due to ignored param
    Property 'Handle' was ignored due to ignored decl
    Function 'ToLocalJniHandle' was ignored due to ignored return decl
    Property 'KeyHandle' was ignored due to ignored decl
    Property 'IsProxy' was ignored due to ignored decl
    Property 'NeedsActivation' was ignored due to ignored decl
    Function 'SetJniIdentityHashCode' was ignored due to ignored param
    Function 'SetPeerReference' was ignored due to ignored param
    Function 'SetJniManagedPeerState' was ignored due to ignored param
    Property 'JniIdentityHashCode' was ignored due to ignored decl
    Property 'PeerReference' was ignored due to ignored decl
    Property 'JniPeerMembers' was ignored due to ignored decl
    Property 'JniManagedPeerState' was ignored due to ignored decl
    Property 'KeyHandle' was ignored due to ignored decl
    Property 'IsProxy' was ignored due to ignored decl
    Property 'NeedsActivation' was ignored due to ignored decl
    Property 'JniIdentityHashCode' was ignored due to ignored decl
    Property 'PeerReference' was ignored due to ignored decl
    Property 'JniPeerMembers' was ignored due to ignored decl
    Property 'Handle' was ignored due to ignored decl
    Property 'ThresholdClass' was ignored due to ignored decl
    Property 'ThresholdType' was ignored due to ignored decl
    Property 'JniManagedPeerState' was ignored due to ignored decl
    Property 'class_ref' was ignored due to ignored decl
    Property 'Class' was ignored due to ignored decl
    Function 'InvalidateDrawable' was ignored due to ignored param
    Function 'ScheduleDrawable' was ignored due to ignored param
    Function 'UnscheduleDrawable' was ignored due to ignored param
    Function 'SendAccessibilityEvent' was ignored due to ignored param
    Function 'SendAccessibilityEventUnchecked' was ignored due to ignored param
    Function 'OnKeyDown' was ignored due to ignored param
    Function 'OnKeyLongPress' was ignored due to ignored param
    Function 'OnKeyMultiple' was ignored due to ignored param
    Function 'OnKeyUp' was ignored due to ignored param
    Field 'View::AccessibilityLiveRegionAssertive' was ignored due to ignored type '::Android_Views_AccessibilityLiveRegion'
    Field 'View::AccessibilityLiveRegionNone' was ignored due to ignored type '::Android_Views_AccessibilityLiveRegion'
    Field 'View::AccessibilityLiveRegionPolite' was ignored due to ignored type '::Android_Views_AccessibilityLiveRegion'
    Field 'View::DragFlagGlobal' was ignored due to ignored type '::Android_Views_DragFlags'
    Field 'View::DragFlagGlobalPersistableUriPermission' was ignored due to ignored type '::Android_Views_DragFlags'
    Field 'View::DragFlagGlobalPrefixUriPermission' was ignored due to ignored type '::Android_Views_DragFlags'
    Field 'View::DragFlagGlobalUriRead' was ignored due to ignored type '::Android_Views_DragFlags'
    Field 'View::DragFlagGlobalUriWrite' was ignored due to ignored type '::Android_Views_DragFlags'
    Field 'View::DragFlagOpaque' was ignored due to ignored type '::Android_Views_DragFlags'
    Field 'View::FindViewsWithContentDescription' was ignored due to ignored type '::Android_Views_FindViewsWith'
    Field 'View::ImportantForAccessibilityAuto' was ignored due to ignored type '::Android_Views_ImportantForAccessibility'


    ### removed other similar warnings ###


    Function 'new' was ignored due to ignored return decl
    Function 'StartActivity' was ignored due to ignored param
    Function 'new' was ignored due to ignored return decl
    Function 'FindApplicationName' was ignored due to ignored return decl
    Function 'FindThisIsCaps' was ignored due to ignored return decl
    Property 'Hello' was ignored due to ignored decl
    Property 'LibraryName' was ignored due to ignored decl
    Property 'ApplicationName' was ignored due to ignored decl
    Property 'ThisIsCaps' was ignored due to ignored decl
    Function 'new' was ignored due to ignored return decl
    Function 'CreateClient' was ignored due to ignored return decl
Pass 'Embeddinator.Passes.FieldToGetterSetterPropertyPass'
    Property created from field: 'Interfaces_Conflicted_TestField'
    Property created from field: 'Arrays_ValueType_IntValue'
    Property created from field: 'NestedClasses_NestedClass_X'
    Property created from field: 'NestedClasses_NestedClass_Y'
    Property created from field: 'NestedClasses_NestedClass_Sum'
    Property created from field: 'Structs_Point_Zero'
    Property created from field: 'Fields_Class_MaxLong'
    Property created from field: 'Fields_Class_Scratch'
    Property created from field: 'Fields_Class_Integer'
    Property created from field: 'Fields_Class_Boolean'
    Property created from field: 'Fields_Class_Structure'
    Property created from field: 'Fields_Struct_Empty'
    Property created from field: 'Fields_Struct_Scratch'
    Property created from field: 'Fields_Struct_Integer'


    ### removed other similar warnings ###


    Property created from field: 'managedandroid_String_library_name'
    Property created from field: 'managedandroid_Styleable_LoadingImageView'
    Property created from field: 'managedandroid_Styleable_LoadingImageView_circleCrop'
    Property created from field: 'managedandroid_Styleable_LoadingImageView_imageAspectRatio'
    Property created from field: 'managedandroid_Styleable_LoadingImageView_imageAspectRatioAdjust'
    Property created from field: 'managedandroid_Styleable_SignInButton'
    Property created from field: 'managedandroid_Styleable_SignInButton_buttonSize'
    Property created from field: 'managedandroid_Styleable_SignInButton_colorScheme'
    Property created from field: 'managedandroid_Styleable_SignInButton_scopeUris'
    Property created from field: 'managedandroid_Styleable_THIS_IS_CAPS'
    Property created from field: 'managedandroid_Styleable_THIS_IS_CAPS_THIS_IS_CAPS'
    Property created from field: 'managedandroid_Styleable_THIS_IS_CAPS_camelCase'
    Property created from field: 'managedandroid_Styleable_Theme'
    Property created from field: 'managedandroid_Styleable_Theme_hello'
Pass 'Embeddinator.Passes.CheckDeclarations'
    Found duplicate method: System_Exception_new
    Found duplicate method: Interfaces_IMakeItUp_Convert
    Found duplicate method: Abstracts_AbstractClass_Convert
    Found duplicate method: Interfaces_Conflicted_Hello
    Found duplicate property: Interfaces_Conflicted_TestProperty
    Found duplicate property: Interfaces_Conflicted_TestField
    Found duplicate method: Arrays_Arr_StringArrMethod
    Found duplicate method: Arrays_Arr_ValueHolderArrMethod
    Found duplicate method: Arrays_Arr_ValueTypeArrMethod
    Found duplicate method: Arrays_Arr_BoolArrMethod
    Found duplicate method: Arrays_Arr_CharArrMethod
    Found duplicate method: Arrays_Arr_DoubleArrMethod
    Found duplicate method: Arrays_Arr_FloatArrMethod
    Found duplicate method: Arrays_Arr_SbyteArrMethod
    Found duplicate method: Arrays_Arr_ShortArrMethod
    Found duplicate method: Arrays_Arr_IntArrMethod
    Found duplicate method: Arrays_Arr_LongArrMethod
    Found duplicate method: Arrays_Arr_UshortArrMethod
    Found duplicate method: Arrays_Arr_UintArrMethod
    Found duplicate method: Arrays_Arr_UlongArrMethod
    Found duplicate method: Arrays_Arr_ByteArrMethod
    Found duplicate method: Arrays_Arr_InterfaceArrMethod
    Found duplicate method: Overloads_AllOperators_op_Division
    Found duplicate method: Overloads_AllOperators_op_Division
    Found duplicate method: Overloads_AllOperators_op_Division
    Found duplicate method: Overloads_AllOperators_op_BitwiseAnd
    Found duplicate method: Overloads_ConflictingNamingOverload_Format
    Found duplicate property: Properties_DuplicateIndexedProperties_Item
    Found duplicate method: Methods_DuplicateMethods_DoIt
    Found duplicate method: Methods_DuplicateMethods_DoIt
    Found duplicate method: Methods_DuplicateMethods_DoIt
    Found duplicate method: Methods_DuplicateMethods_Find
    Found duplicate method: Comparable_Different_CompareTo
    Found duplicate method: Constructors_Unique_new
    Found duplicate method: Constructors_AllTypeCode_new
    Found duplicate method: Constructors_AllTypeCode_new
    Found duplicate method: Constructors_AllTypeCode_new
    Found duplicate method: Constructors_DefaultValues_new
    Found duplicate method: Constructors_Duplicates_new
    Found duplicate method: Constructors_Duplicates_new
Pass 'Embeddinator.Passes.FixMethodParametersPass'
Pass 'Embeddinator.Passes.CheckReservedKeywords'

Generating binding code... Generated: managed.h Generated: managed.c Generated: mscorlib.h Generated: mscorlib.c Generated: Mono.Android.h Generated: Mono.Android.c Generated: Java.Interop.h Generated: Java.Interop.c Generated: c-support.c Generated: c-support.h Generated: embeddinator.h Generated: glib.c Generated: glib.h Generated: mono-support.c Generated: mono-support.h Generated: mono_embeddinator.c Generated: mono_embeddinator.h Compiling binding code... Invoking: /Users/castaldig/userapp/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot="/Users/castaldig/userapp/android/sdk/ndk-bundle/platforms> /android-24/arch-arm" -fdiagnostics-color -DMONO_EMBEDDINATOR_DLL_EXPORT -I"/Library/Frameworks/Mono.framework/Versions/Current/include/mono-2.0" -L"/Users/castaldig/userapp/mobile/temp/Embeddinator-4000/external/> Xamarin.Android/lib/xbuild/Xamarin/Android/lib/armeabi" -lmonosgen-2.0 -lmono-android.release build/lib/Release/android/managed.c build/lib/Release/android/mscorlib.c build/lib/Release/android/Mono.Android.c build/> lib/Release/android/Java.Interop.c build/lib/Release/android/c-support.c build/lib/Release/android/glib.c build/lib/Release/android/mono-support.c build/lib/Release/android/mono_embeddinator.c --std=c99 -shared -o > build/lib/Release/android/android/jni/armeabi/libmanaged.so In file included from build/lib/Release/android/managed.h:9:0, from build/lib/Release/android/managed.c:7: build/lib/Release/android/glib.h:4:20: fatal error: stdlib.h: No such file or directory #include <stdlib.h> ^ compilation terminated. In file included from build/lib/Release/android/mscorlib.h:9:0, from build/lib/Release/android/mscorlib.c:7: build/lib/Release/android/glib.h:4:20: fatal error: stdlib.h: No such file or directory #include <stdlib.h> ^ compilation terminated. In file included from build/lib/Release/android/Mono.Android.h:9:0, from build/lib/Release/android/Mono.Android.c:7: build/lib/Release/android/glib.h:4:20: fatal error: stdlib.h: No such file or directory #include <stdlib.h> ^ compilation terminated. In file included from build/lib/Release/android/Java.Interop.h:9:0, from build/lib/Release/android/Java.Interop.c:7: build/lib/Release/android/glib.h:4:20: fatal error: stdlib.h: No such file or directory #include <stdlib.h> ^ compilation terminated. In file included from build/lib/Release/android/embeddinator.h:33:0, from build/lib/Release/android/c-support.h:28, from build/lib/Release/android/c-support.c:26: /Users/castaldig/userapp/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory

include_next <stdint.h>

                      ^

compilation terminated. build/lib/Release/android/glib.c:29:19: fatal error: stdio.h: No such file or directory #include <stdio.h> ^ compilation terminated. In file included from build/lib/Release/android/mono-support.h:28:0, from build/lib/Release/android/mono-support.c:26: /Users/castaldig/userapp/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory

include_next <stdint.h>

                      ^

compilation terminated. In file included from build/lib/Release/android/embeddinator.h:33:0, from build/lib/Release/android/mono_embeddinator.h:31, from build/lib/Release/android/mono_embeddinator.c:29: /Users/castaldig/userapp/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory

include_next <stdint.h>

                      ^

compilation terminated.

Failed to compile generated code. An error occurred when executing task 'Generate-Android'. Error: System.AggregateException: One or more errors occurred. ---> System.Exception: mono failed! at Submission#0.Exec (System.String path, Cake.Core.IO.ProcessSettings settings) [0x00081] in :0 at Submission#0.Exec (System.String path, System.String args, System.String workingDir) [0x00021] in :0 at Submission#0.Embeddinator (System.String args) [0x0002a] in :0 at Submission#0.<<Initialize>>b__0_1 () [0x0002a] in :0 at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass6_0.<Does>b__0 (Cake.Core.ICakeContext context) [0x00000] in <13e3bbc8a42c4a419c501956a53939ca>:0 at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass8_0.<Does>b__0 (Cake.Core.ICakeContext x) [0x00000] in <13e3bbc8a42c4a419c501956a53939ca>:0 at Cake.Core.ActionTask+<Execute>d__14.MoveNext () [0x00066] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.DefaultExecutionStrategy+<ExecuteAsync>d__4.MoveNext () [0x000ee] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.CakeEngine+<ExecuteTaskAsync>d__29.MoveNext () [0x00144] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.CakeEngine+<RunTargetAsync>d__18.MoveNext () [0x00231] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Scripting.BuildScriptHost+<RunTargetAsync>d__3.MoveNext () [0x0008d] in <cc457eb20afd4019b40c6c7d68eabf46>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.Scripting.ScriptHost.RunTarget (System.String target) [0x0000d] in <13e3bbc8a42c4a419c501956a53939ca>:0 at Submission#0+<<Initialize>>d__0.MoveNext () [0x00bee] in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState+<RunSubmissionsAsync>d__91[TResult].MoveNext () [0x00186] in <9edb99c3aaa5489db8bb992099d2db96>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Microsoft.CodeAnalysis.Scripting.Script1+<RunSubmissionsAsync>d__21[T].MoveNext () [0x000a8] in <9edb99c3aaa5489db8bb992099d2db96>:0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Threading.Tasks.Task.Wait () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Scripting.Roslyn.RoslynScriptSession.Execute (Cake.Core.Scripting.Script script) [0x00129] in :0 at Cake.Core.Scripting.ScriptRunner.Run (Cake.Core.Scripting.IScriptHost host, Cake.Core.IO.FilePath scriptPath, System.Collections.Generic.IDictionary2[TKey,TValue] arguments) [0x00358] in > <13e3bbc8a42c4a419c501956a53939ca>:0 at Cake.Commands.BuildCommand.Execute (Cake.CakeOptions options) [0x00026] in <cc457eb20afd4019b40c6c7d68eabf46>:0 at Cake.CakeApplication.Run (Cake.CakeOptions options) [0x00015] in <cc457eb20afd4019b40c6c7d68eabf46>:0 at Cake.Program.Main () [0x000d1] in <cc457eb20afd4019b40c6c7d68eabf46>:0 ---> (Inner Exception #0) System.Exception: mono failed! at Submission#0.Exec (System.String path, Cake.Core.IO.ProcessSettings settings) [0x00081] in <c80b354d947346faaf5c03f548b26962>:0 at Submission#0.Exec (System.String path, System.String args, System.String workingDir) [0x00021] in <c80b354d947346faaf5c03f548b26962>:0 at Submission#0.Embeddinator (System.String args) [0x0002a] in <c80b354d947346faaf5c03f548b26962>:0 at Submission#0.<<Initialize>>b__0_1 () [0x0002a] in <c80b354d947346faaf5c03f548b26962>:0 at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass6_0.<Does>b__0 (Cake.Core.ICakeContext context) [0x00000] in <13e3bbc8a42c4a419c501956a53939ca>:0 at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass8_0.<Does>b__0 (Cake.Core.ICakeContext x) [0x00000] in <13e3bbc8a42c4a419c501956a53939ca>:0 at Cake.Core.ActionTask+<Execute>d__14.MoveNext () [0x00066] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.DefaultExecutionStrategy+<ExecuteAsync>d__4.MoveNext () [0x000ee] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.CakeEngine+<ExecuteTaskAsync>d__29.MoveNext () [0x00144] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.CakeEngine+<RunTargetAsync>d__18.MoveNext () [0x00231] in <13e3bbc8a42c4a419c501956a53939ca>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Scripting.BuildScriptHost+<RunTargetAsync>d__3.MoveNext () [0x0008d] in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Cake.Core.Scripting.ScriptHost.RunTarget (System.String target) [0x0000d] in <13e3bbc8a42c4a419c501956a53939ca>:0 at Submission#0+<<Initialize>>d__0.MoveNext () [0x00bee] in <c80b354d947346faaf5c03f548b26962>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState+<RunSubmissionsAsync>d__91[TResult].MoveNext () [0x00186] in <9edb99c3aaa5489db8bb992099d2db96>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 at Microsoft.CodeAnalysis.Scripting.Script`1+<RunSubmissionsAsync>d__21[T].MoveNext () [0x000a8] in <9edb99c3aaa5489db8bb992099d2db96>:0 <---

gcastaldi avatar Jan 19 '18 11:01 gcastaldi

Can you check in the console output if the path really looks like this in the GCC invocation:

sysroot="/Users/castaldig/userapp/android/sdk/ndk-bundle/platforms> /android-24/arch-arm"

Especially this part platforms> /android-24 looks weird and not like a correct path.

tritao avatar Jan 19 '18 14:01 tritao

No, the console output is correct (probably a problem with copy and paste):

Compiling binding code... Invoking: /Users/castaldig/userapp/android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot="/Users/castaldig/userapp/android/sdk/ndk-bundle/platforms/android-24/arch-arm" -fdiagnostics-color -DMONO_EMBEDDINATOR_DLL_EXPORT -I"/Library/Frameworks/Mono.framework/Versions/Current/include/mono-2.0" -L"/Users/castaldig/userapp/mobile/temp/Embeddinator-4000/external/Xamarin.Android/lib/xbuild/Xamarin/Android/lib/armeabi" -lmonosgen-2.0 -lmono-android.release build/lib/Release/android/managed.c build/lib/Release/android/mscorlib.c build/lib/Release/android/Mono.Android.c build/lib/Release/android/Java.Interop.c build/lib/Release/android/c-support.c build/lib/Release/android/glib.c build/lib/Release/android/mono-support.c build/lib/Release/android/mono_embeddinator.c --std=c99 -shared -o build/lib/Release/android/android/jni/armeabi/libmanaged.so

In attachment you can find the complete log. Thanks. zE4kBuildLog.txt

gcastaldi avatar Jan 22 '18 11:01 gcastaldi

I have run into this issue before and it occurs because of missing include folders in the android-ndk. For example in my android-ndk-r16b download from the ndk site, I don't have an include folder under platforms/android-24/arch-arm/usr. I solved the issue by downloading android-ndk-r15c and pointing the NDK path to it which does appear to have the include folder and has the headers required.

Zomb avatar Feb 01 '18 23:02 Zomb

Downgrading my NDK to r15c resolved this issue for me

SkyeHoefling avatar May 30 '18 20:05 SkyeHoefling

Just hit this issue myself. Seems all NDK versions above 15c. Looks like the NDK bits that are used are being deprecated too.

Silic0nS0ldier avatar Aug 24 '18 16:08 Silic0nS0ldier

Just hit this issue also. Trying the NDK down grade now. Seems its been around for over a year now. Are there any plans to fix it?

BenBtg avatar Feb 01 '19 13:02 BenBtg

Hit this issue today.

Downgrading now, but its a real huge pain with Mac OS Catalina since the NDK Bundle is a bunch of un-notorized scripts which mac requires you to mack verification exceptions for.

Volatile-Memory avatar Nov 20 '20 05:11 Volatile-Memory