On Fri, Jan 11, 2019 at 4:34 PM Jo Shields <direct...@apebox.org> wrote: > > > On 11/01/2019 10:22, Mathieu Malaterre wrote: > > However the build failed for me later on, reporting a failure to find > > 'mcs' (*). My G4 is rather slow so let me try again to check there are > > no other build failure later on. Mark do you have a faster ppc machine > > ? > > > > (*)if test -w /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mcs; then > > :; else chmod -R +w > > /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mcs; fi > > cd /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mcs && make > > --no-print-directory -s NO_DIR_CHECK=1 > > PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 > > ' CC='gcc' all-profiles > > mkdir -p -- build/deps > > make[7]: mcs: Command not found > > > The class library needs a C# compiler, so first it checks whether you > have one in $PATH it can use. It is normal that you wouldn't have one > (and it would likely be too out of date anyway, and get rejected) > > > > make[7]: *** [build/profiles/basic.make:118: > > build/deps/basic-profile-check.exe] Error 127 > > *** The runtime 'mono' doesn't appear to be usable. > > *** Trying the 'monolite-linux/1051600014' directory. > > > Now it's looking at the bootstrap compiler bundled into the source > package, and checking the version on it. > > > > Unhandled Exception: > > System.NullReferenceException: Object reference not set to an instance > > of an object > > at Mono.CSharp.Binary.CreatePointerOperatorsTable > > (Mono.CSharp.BuiltinTypes types) [0x0006b] in > > <9d70195405974ada92fc07fda5c6d57c>:0 > > [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: > > Object reference not set to an instance of an object > > at Mono.CSharp.Binary.CreatePointerOperatorsTable > > (Mono.CSharp.BuiltinTypes types) [0x0006b] in > > <9d70195405974ada92fc07fda5c6d57c>:0 > > > Here's a real problem - the runtime is totally screwing up the basic > compiler check. Looping in Calvin (HI CALVIN!) - does the above look > familiar, in any of your PowerPC tinkering? > > > > make[9]: *** [build/profiles/basic.make:118: > > build/deps/basic-profile-check.exe] Error 1 > > *** The contents of your 'monolite-linux/1051600014' directory may be > > out-of-date > > *** You may want to try 'make get-monolite-latest' > > > The build system gives up as it can't find a viable compiler to use. >
Ah right now I understand what is going on. For some reason, rebuilding it from scratch, I get now a much complete backtrace: if test -w /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mcs; then :; else chmod -R +w /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mcs; fi cd /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='gcc' all-profiles make[7]: mcs: Command not found make[7]: *** [build/profiles/basic.make:118: build/deps/basic-profile-check.exe] Error 127 *** The runtime 'mono' doesn't appear to be usable. *** Trying the 'monolite-linux/1051600014' directory. Stacktrace: /proc/self/maps: 00100000-00103000 r-xp 00000000 00:00 0 [vdso] 00211000-003de000 r-xp 00000000 08:03 1654 /lib/powerpc-linux-gnu/libc-2.28.so 003de000-003fc000 ---p 001cd000 08:03 1654 /lib/powerpc-linux-gnu/libc-2.28.so 003fc000-00401000 r--p 001db000 08:03 1654 /lib/powerpc-linux-gnu/libc-2.28.so 00401000-00402000 rw-p 001e0000 08:03 1654 /lib/powerpc-linux-gnu/libc-2.28.so 00402000-00405000 rw-p 00000000 00:00 0 00415000-0043a000 r-xp 00000000 08:03 1813 /lib/powerpc-linux-gnu/libpthread-2.28.so 0043a000-00454000 ---p 00025000 08:03 1813 /lib/powerpc-linux-gnu/libpthread-2.28.so 00454000-00455000 r--p 0002f000 08:03 1813 /lib/powerpc-linux-gnu/libpthread-2.28.so 00455000-00456000 rw-p 00030000 08:03 1813 /lib/powerpc-linux-gnu/libpthread-2.28.so 00456000-00458000 rw-p 00000000 00:00 0 00468000-0046b000 r-xp 00000000 08:03 1758 /lib/powerpc-linux-gnu/libdl-2.28.so 0046b000-00487000 ---p 00003000 08:03 1758 /lib/powerpc-linux-gnu/libdl-2.28.so 00487000-00488000 r--p 0000f000 08:03 1758 /lib/powerpc-linux-gnu/libdl-2.28.so 00488000-00489000 rw-p 00010000 08:03 1758 /lib/powerpc-linux-gnu/libdl-2.28.so 00499000-004a2000 r-xp 00000000 08:03 1822 /lib/powerpc-linux-gnu/librt-2.28.so 004a2000-004b8000 ---p 00009000 08:03 1822 /lib/powerpc-linux-gnu/librt-2.28.so 004b8000-004b9000 r--p 0000f000 08:03 1822 /lib/powerpc-linux-gnu/librt-2.28.so 004b9000-004ba000 rw-p 00010000 08:03 1822 /lib/powerpc-linux-gnu/librt-2.28.so 004ca000-005a0000 r-xp 00000000 08:03 1764 /lib/powerpc-linux-gnu/libm-2.28.so 005a0000-005b5000 ---p 000d6000 08:03 1764 /lib/powerpc-linux-gnu/libm-2.28.so 005b5000-005ba000 r--p 000db000 08:03 1764 /lib/powerpc-linux-gnu/libm-2.28.so 005ba000-005bb000 rw-p 000e0000 08:03 1764 /lib/powerpc-linux-gnu/libm-2.28.so 005cb000-005d6000 r-xp 00000000 08:03 135684 /usr/lib/powerpc-linux-gnu/libfakeroot/libfakeroot-sysv.so 005d6000-005ea000 ---p 0000b000 08:03 135684 /usr/lib/powerpc-linux-gnu/libfakeroot/libfakeroot-sysv.so Memory around native instruction pointer (0xb7ccf950): 0xb7ccf940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0xb7ccf950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0xb7ccf960 00 00 00 00 00 00 00 1a 00 00 00 00 00 00 00 00 ................ 0xb7ccf970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Native stacktrace: /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(+0xdae20) [0x6d6e20] /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(+0x4b6d4) [0x6476d4] linux-vdso32.so.1(__kernel_sigtramp_rt32+0) [0x100410] [0xb7ccf950] [0xb7c20e0c] [0xb7c2093c] [0xb7cbf55c] [0xb7cbfaa0] /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(+0x4af04) [0x646f04] /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(+0x2391d4) [0x8351d4] /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(+0x23c7a4) [0x8387a4] /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(mono_jit_exec+0x108) [0x69ceb8] /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(mono_main+0x18c8) [0x69ee68] /home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/mono/mini/mono(+0x42df4) [0x63edf4] /lib/powerpc-linux-gnu/libc.so.6(+0x22558) [0x233558] /lib/powerpc-linux-gnu/libc.so.6(__libc_start_main+0xe8) [0x233748] Debug info from gdb: [New LWP 6506] [New LWP 6507] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1". 0x0042db04 in __waitpid (options=0, stat_loc=0xbffa0d14, pid=512) at ../sysdeps/unix/sysv/linux/waitpid.c:28 28 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory. Id Target Id Frame * 1 Thread 0xb7d02220 (LWP 6479) "mono" 0x0042db04 in __waitpid (options=0, stat_loc=0xbffa0d14, pid=512) at ../sysdeps/unix/sysv/linux/waitpid.c:28 2 Thread 0xb77ff450 (LWP 6506) "SGen worker" 0x004258e0 in futex_wait_cancelable (private=0, expected=0, futex_word=0x200) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 3 Thread 0xb624a450 (LWP 6507) "Finalizer" 0x00429ffc in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xb02788 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 Thread 3 (Thread 0xb624a450 (LWP 6507)): #0 0x00429ffc in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0xb02788 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 #1 do_futex_wait (sem=sem@entry=0xb02788 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:115 #2 0x0042a198 in __new_sem_wait_slow (sem=sem@entry=0xb02788 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:282 #3 0x0042a288 in __new_sem_wait (sem=sem@entry=0xb02788 <finalizer_sem>) at sem_wait.c:42 #4 0x008c3234 in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0xb02788 <finalizer_sem>) at ../../mono/utils/mono-os-semaphore.h:209 #5 mono_coop_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0xb02788 <finalizer_sem>) at ../../mono/utils/mono-coop-semaphore.h:43 #6 finalizer_thread (unused=unused@entry=0x0) at gc.c:903 #7 0x00869e00 in start_wrapper_internal (stack_ptr=0xb624b000, start_info=0x0) at threads.c:1127 #8 start_wrapper (data=0x12330e0) at threads.c:1187 #9 0x0041caa8 in start_thread (arg=0xbffa1a54) at pthread_create.c:486 #10 0x00322320 in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:78 Thread 2 (Thread 0xb77ff450 (LWP 6506)): #0 0x004258e0 in futex_wait_cancelable (private=0, expected=0, futex_word=0x200) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0xb0a434 <lock>, cond=0xb0a470 <work_cond>) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=cond@entry=0xb0a470 <work_cond>, mutex=mutex@entry=0xb0a434 <lock>) at pthread_cond_wait.c:655 #3 0x00947ab4 in mono_os_cond_wait (mutex=0xb0a434 <lock>, cond=0xb0a470 <work_cond>) at ../../mono/utils/mono-os-mutex.h:173 #4 get_work (job=<synthetic pointer>, do_idle=<synthetic pointer>, work_context=<synthetic pointer>, worker_index=<optimized out>) at sgen-thread-pool.c:165 #5 thread_func (data=0x0) at sgen-thread-pool.c:196 #6 0x0041caa8 in start_thread (arg=0xb0a4e0 <threads>) at pthread_create.c:486 #7 0x00322320 in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:78 Thread 1 (Thread 0xb7d02220 (LWP 6479)): #0 0x0042db04 in __waitpid (options=0, stat_loc=0xbffa0d14, pid=512) at ../sysdeps/unix/sysv/linux/waitpid.c:28 #1 __waitpid (pid=512, pid@entry=6508, stat_loc=stat_loc@entry=0xbffa0d14, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25 #2 0x006d6ec8 in mono_handle_native_crash (signal=signal@entry=0x98a080 "SIGILL", ctx=ctx@entry=0xbffa1340, info=info@entry=0xbffa12c0) at mini-exceptions.c:3312 #3 0x006476d4 in mono_sigill_signal_handler (_dummy=4, _info=0xbffa12c0, context=0xbffa1340) at mini-runtime.c:3374 #4 <signal handler called> #5 0xb7ccf950 in ?? () #6 0xb7c0918c in ?? () #7 0xb7c20e0c in ?? () #8 0xb7c2093c in ?? () #9 0xb7cbf55c in ?? () #10 0xb7cbfaa0 in ?? () #11 0x00646f04 in mono_jit_runtime_invoke (method=0xbffa18c0, obj=0xb780f458, params=0xbffa1c78, exc=<optimized out>, error=0xbffa1ac0) at mini-runtime.c:3134 #12 0x008351d4 in do_runtime_invoke (method=0x11f12a8, obj=<optimized out>, params=<optimized out>, exc=<optimized out>, error=0xbffa1ca8) at object.c:2941 #13 0x008387a4 in do_exec_main_checked (method=0x11f12a8, args=<optimized out>, error=0xbffa1ca8) at object.c:4853 #14 0x0069ceb8 in mono_jit_exec (domain=domain@entry=0x11ed460, assembly=assembly@entry=0x1233ae0, argc=argc@entry=8, argv=argv@entry=0xbffa2180) at driver.c:1209 #15 0x0069ee68 in main_thread_handler (user_data=<synthetic pointer>) at driver.c:1286 #16 mono_main (argc=<optimized out>, argv=<optimized out>) at driver.c:2399 #17 0x0063edf4 in mono_main_with_options (argv=<optimized out>, argc=<optimized out>) at main.c:50 #18 main (argc=<optimized out>, argv=<optimized out>) at main.c:398 ================================================================= Got a SIGILL while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Aborted make[9]: *** [build/profiles/basic.make:118: build/deps/basic-profile-check.exe] Error 134 *** The contents of your 'monolite-linux/1051600014' directory may be out-of-date *** You may want to try 'make get-monolite-latest' make[9]: *** [build/profiles/basic.make:100: do-profile-check-monolite] Error 1 make[8]: *** [build/profiles/basic.make:76: do-profile-check] Error 2 make[7]: *** [build/profiles/basic.make:112: do-profile-check-monolite] Error 2 make[6]: *** [build/profiles/basic.make:76: do-profile-check] Error 2 make[5]: *** [Makefile:54: profile-do--basic--all] Error 2 make[4]: *** [Makefile:50: profiles-do--all] Error 2 make[3]: *** [Makefile:605: all-mcs] Error 2 make[3]: Leaving directory '/home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3/runtime' make[2]: *** [Makefile:544: all-recursive] Error 1 make[2]: Leaving directory '/home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3' make[1]: *** [Makefile:474: all] Error 2 make[1]: Leaving directory '/home/mathieu/tmp/debian/mono-5.16.0.220+dfsg3' make: *** [debian/rules:148: build-stamp] Error 2