[Mono-bugs] [Bug 58453][Cri] New - Mono beta1: build fail on linux ppc

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 May 2004 13:22:58 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by arrakis42@videotron.ca.

http://bugzilla.ximian.com/show_bug.cgi?id=58453

--- shadow/58453	2004-05-13 13:22:58.000000000 -0400
+++ shadow/58453.tmp.26091	2004-05-13 13:22:58.000000000 -0400
@@ -0,0 +1,93 @@
+Bug#: 58453
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: Gentoo ppc
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: arrakis42@videotron.ca               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono beta1: build fail on linux ppc
+
+When I try to build mono, it faild and tell that the uc_regs struct do not
+correspond...
+
+gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libgc/include
+-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
+-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGC_LINUX_THREADS
+-DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions
+-D_FILE_OFFSET_BITS=64 -pipe -mcpu=750 -O2 -fno-strict-aliasing -g -Wall
+-Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
+-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
+-Wcast-align -Wwrite-strings -c exceptions-ppc.c -MT exceptions-ppc.lo -MD
+-MP -MF .deps/exceptions-ppc.TPlo  -fPIC -DPIC -o .libs/exceptions-ppc.lo
+exceptions-ppc.c: In function `mono_arch_get_throw_exception_generic':
+exceptions-ppc.c:642: warning: cast from pointer to integer of different size
+exceptions-ppc.c:645: warning: passing arg 2 of `ppc_patch' from
+incompatible pointer type
+exceptions-ppc.c:664: warning: passing arg 2 of `ppc_patch' from
+incompatible pointer type
+exceptions-ppc.c: In function `mono_arch_find_jit_info':
+exceptions-ppc.c:779: warning: unused variable `ctx_regs'
+exceptions-ppc.c:756: warning: unused variable `ptr'
+exceptions-ppc.c:757: warning: unused variable `p'
+exceptions-ppc.c: In function `mono_arch_handle_exception':
+exceptions-ppc.c:1082: structure has no member named `uc_regs'
+exceptions-ppc.c:1083: structure has no member named `uc_regs'
+exceptions-ppc.c:1084: structure has no member named `uc_regs'
+exceptions-ppc.c:1085: structure has no member named `uc_regs'
+exceptions-ppc.c:1091: structure has no member named `uc_regs'
+exceptions-ppc.c:1092: structure has no member named `uc_regs'
+exceptions-ppc.c:1093: structure has no member named `uc_regs'
+exceptions-ppc.c:1094: structure has no member named `uc_regs'
+make[4]: *** [exceptions-ppc.lo] Error 1
+make[4]: Leaving directory
+`/var/tmp/portage/mono-0.91/work/mono-0.91/mono/mini'
+make[3]: *** [all] Error 2
+make[3]: Leaving directory
+`/var/tmp/portage/mono-0.91/work/mono-0.91/mono/mini'
+make[2]: *** [all-recursive] Error 1
+make[2]: Leaving directory `/var/tmp/portage/mono-0.91/work/mono-0.91/mono'
+make[1]: *** [all-recursive] Error 1
+make[1]: Leaving directory `/var/tmp/portage/mono-0.91/work/mono-0.91'
+make: *** [all] Error 2
+ 
+!!! ERROR: dev-dotnet/mono-0.91 failed.
+!!! Function src_compile, Line 41, Exitcode 2
+!!! MONO compilation failure
+
+
+Steps to reproduce the problem:
+1. Build mono on Gentoo linux 2004.1 with gcc 3.2.3
+
+There is my ucontext struct:
+/* Userlevel context.  */
+typedef struct ucontext
+  {
+    unsigned long int uc_flags;
+    struct ucontext *uc_link;
+    stack_t uc_stack;
+#if __WORDSIZE == 32
+    mcontext_t uc_mcontext;
+    __sigset_t uc_sigmask;
+#else
+    sigset_t    uc_sigmask;
+    mcontext_t  uc_mcontext;  /* last for extensibility */
+#endif
+  } ucontext_t;
+
+There is my sigcontext struct
+struct sigcontext_struct {
+        unsigned long   _unused[4];
+        int             signal;
+        unsigned long   handler;
+        unsigned long   oldmask;
+        struct pt_regs  *regs;
+};