Package: src:mono Version: 4.2.1.102+dfsg2-6 One cannot build mono on partch.d.o (PPC64 kernel, bug PPC32 BE userland). mono does build fine from a PPC32 kernel/PPC32 userland.
The mcs step fails with a low level crash: Compilation failed: 4 error(s), 338 warnings Stacktrace: at <unknown> <0xffffffff> at (wrapper managed-to-native) System.Environment.Exit (int) <0x000cc> at Mono.CSharp.Driver.Main (string[]) <0x00424> at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0x00134> Native stacktrace: ./mono() [0x100affd0] ./mono() [0x100ebf20] linux-vdso32.so.1(__kernel_sigtramp_rt32+0) [0x1003c0] ./mono() [0x10226304] ./mono() [0x10226344] ./mono() [0x10233768] ./mono() [0x1021dcac] ./mono() [0x1021df8c] ./mono() [0x10220c88] ./mono() [0x102213f8] ./mono(mono_domain_finalize+0xe8) [0x101c4418] ./mono() [0x100235f0] ./mono() [0x1013564c] [0xeff1b024] [0xf5bb1530] [0xf5bb1750] ./mono() [0x10026650] ./mono() [0x101cc310] ./mono(mono_runtime_exec_main+0x208) [0x101d3df8] ./mono(mono_jit_exec+0xb8) [0x1007c288] ./mono(mono_main+0x11b8) [0x1007d968] ./mono() [0x10020e7c] /lib/powerpc-linux-gnu/libc.so.6(+0x21614) [0xfca1614] /lib/powerpc-linux-gnu/libc.so.6(__libc_start_main+0xdc) [0xfca181c] Debug info from gdb: [New LWP 1254] [New LWP 1253] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1". 0x0fe56a08 in waitpid () at ../sysdeps/unix/syscall-template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. Id Target Id Frame 3 Thread 0xf6fff440 (LWP 1253) "mono" 0x0fe4f798 in __pthread_cond_wait (cond=cond@entry=0x10369a38 <work_cond>, mutex=mutex@entry=0x10369a04 <lock>) at pthread_cond_wait.c:186 2 Thread 0xf5adf440 (LWP 1254) "Finalizer" 0x0fe52f5c in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0x10361a34 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 * 1 Thread 0xf78043d0 (LWP 1252) "mono" 0x0fe56a08 in waitpid () at ../sysdeps/unix/syscall-template.S:84 Thread 3 (Thread 0xf6fff440 (LWP 1253)): #0 0x0fe4f798 in __pthread_cond_wait (cond=cond@entry=0x10369a38 <work_cond>, mutex=mutex@entry=0x10369a04 <lock>) at pthread_cond_wait.c:186 #1 0x1023cce0 in mono_os_cond_wait (mutex=0x10369a04 <lock>, cond=0x10369a38 <work_cond>) at ../../mono/utils/mono-os-mutex.h:105 #2 thread_func (thread_data=0x0) at sgen-thread-pool.c:121 #3 0x0fe47410 in start_thread (arg=0xf6fff440) at pthread_create.c:336 #4 0x0fd8016c in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:93 Thread 2 (Thread 0xf5adf440 (LWP 1254)): #0 0x0fe52f5c in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0x10361a34 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0x10361a34 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:115 #2 0x0fe53108 in __new_sem_wait_slow (sem=0x10361a34 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:282 #3 0x0fe531b4 in __new_sem_wait (sem=sem@entry=0x10361a34 <finalizer_sem>) at sem_wait.c:30 #4 0x101c3c08 in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0x10361a34 <finalizer_sem>) at ../../mono/utils/mono-os-semaphore.h:163 #5 mono_coop_sem_wait (sem=0x10361a34 <finalizer_sem>, flags=MONO_SEM_FLAGS_ALERTABLE) at ../../mono/utils/mono-coop-semaphore.h:40 #6 finalizer_thread (unused=unused@entry=0x0) at gc.c:726 #7 0x1019df64 in start_wrapper_internal (data=0x101c3950 <finalizer_thread>) at threads.c:731 #8 start_wrapper (data=data@entry=0x10648240) at threads.c:778 #9 0x102799c8 in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92 #10 0x0fe47410 in start_thread (arg=0xf5adf440) at pthread_create.c:336 #11 0x0fd8016c in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:93 Thread 1 (Thread 0xf78043d0 (LWP 1252)): #0 0x0fe56a08 in waitpid () at ../sysdeps/unix/syscall-template.S:84 #1 0x100b00b8 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0xf74423e0, info=info@entry=0xf7442360) at mini-exceptions.c:2399 #2 0x100ebf20 in mono_arch_handle_altstack_exception (sigctx=0xf74423e0, siginfo=0xf7442360, fault_addr=<optimized out>, stack_ovf=0) at exceptions-ppc.c:669 #3 <signal handler called> #4 major_free_swept_blocks (allowance=<optimized out>) at sgen-marksweep.c:1977 #5 0x10233768 in sgen_memgov_calculate_minor_collection_allowance () at sgen-memory-governor.c:116 #6 0x1021dcac in major_finish_collection (reason=reason@entry=0x10329938 "user request", old_next_pin_slot=14, forced=forced@entry=1) at sgen-gc.c:2032 #7 0x1021df8c in major_do_collection (reason=0x10329938 "user request", forced=1) at sgen-gc.c:2072 #8 0x10220c88 in sgen_perform_collection (requested_size=requested_size@entry=0, generation_to_collect=1, reason=reason@entry=0x10329938 "user request", wait_to_finish=wait_to_finish@entry=1) at sgen-gc.c:2289 #9 0x102213f8 in sgen_gc_collect (generation=1) at sgen-gc.c:2714 #10 0x101fe834 in mono_gc_collect (generation=<optimized out>) at sgen-mono.c:2534 #11 0x101c4418 in mono_domain_finalize (domain=domain@entry=0x1060cba8, timeout=timeout@entry=2000) at gc.c:406 #12 0x100235f0 in mini_cleanup (domain=0x1060cba8) at mini-runtime.c:4176 #13 0x1013564c in ves_icall_System_Environment_Exit (result=1) at icall.c:6843 #14 0xeff1b024 in ?? () #15 0xf5bb1530 in ?? () #16 0xf5bb1750 in ?? () #17 0x10026650 in mono_jit_runtime_invoke (method=0x1, obj=0x0, params=0xff8a688c, exc=0x0, error=0xff8a6780) at mini-runtime.c:2691 #18 0x101cc310 in do_runtime_invoke (method=0x1060fc90, obj=0x0, params=0xff8a688c, exc=exc@entry=0x0, error=error@entry=0xff8a6858) at object.c:2898 #19 0x101d08c4 in mono_runtime_invoke_checked (method=<optimized out>, obj=<optimized out>, params=<optimized out>, error=error@entry=0xff8a6858) at object.c:3058 #20 0x101d3df8 in mono_runtime_exec_main (method=0x1060fc90, args=<optimized out>, exc=exc@entry=0x0) at object.c:4471 #21 0x101d4224 in mono_runtime_run_main (method=<optimized out>, argc=<optimized out>, argv=<optimized out>, exc=exc@entry=0x0) at object.c:4050 #22 0x1007c288 in mono_jit_exec (domain=domain@entry=0x1060cba8, assembly=assembly@entry=0x1064b5c8, argc=argc@entry=7, argv=argv@entry=0xff8a6c78) at driver.c:1034 #23 0x1007d968 in main_thread_handler (user_data=<synthetic pointer>) at driver.c:1094 #24 mono_main (argc=<optimized out>, argv=<optimized out>) at driver.c:2133 #25 0x10020e7c in mono_main_with_options (argv=0xff8a6c74, argc=8) at main.c:20 #26 main (argc=<optimized out>, argv=<optimized out>) at main.c:53 ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================

