https://bugzilla.novell.com/show_bug.cgi?id=659339
https://bugzilla.novell.com/show_bug.cgi?id=659339#c0 Summary: SGen on FreeBSD Classification: Mono Product: Mono: Runtime Version: SVN Platform: x86-64 OS/Version: FreeBSD Status: NEW Severity: Normal Priority: P5 - None Component: GC AssignedTo: lu...@novell.com ReportedBy: y...@iaelu.net QAContact: mono-bugs@lists.ximian.com Found By: Other Blocker: No Description of Problem: I'm trying to compile Mono with SGen since some patches were commited to master to enable SGen on FreeBSD i386 & x86_64 Steps to reproduce the problem: 1. On a computer with FreeBSD 8.1-RELEASE 2. a fresh git clone git://github.com/mono/mono.git 3. cd mono/ 4. ./autogen.sh --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ 5. gmake Actual Results: ./../doltlibtool --quiet --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -I../../eglib/src -I../../eglib/src -DMONO_BINDIR=\"/usr/local/bin/\" -DMONO_ASSEMBLIES=\"/usr/local/lib\" -DMONO_CFG_DIR=\"/usr/local/etc\" -DGC_FREEBSD_THREADS -DPLATFORM_BSD -DHAVE_SGEN_GC -DHAVE_MOVING_COLLECTOR -DHAVE_WRITE_BARRIERS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -mno-tls-direct-seg-refs -MT libmonoruntimesgen_la-sgen-gc.lo -MD -MP -MF deps/libmonoruntimesgen_la-sgen-gc.Tpo -c -o libmonoruntimesgen_la-sgen-gc.lo `test -f 'sgen-gc.c' || echo './'`sgen-gc.c sgen-gc.c: In function 'mono_sgen_thread_info_lookup': sgen-gc.c:4863: warning: cast from pointer to integer of different size sgen-gc.c: In function 'suspend_handler': sgen-gc.c:5022: error: 'ucontext_t' undeclared (first use in this function) sgen-gc.c:5022: error: (Each undeclared identifier is reported only once sgen-gc.c:5022: error: for each function it appears in.) sgen-gc.c:5022: error: expected expression before ')' token sgen-gc.c:5022: error: 'REG_RIP' undeclared (first use in this function) sgen-gc.c:5033: error: expected expression before ')' token sgen-gc.c:5033: error: 'REG_RSP' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_RAX' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_RBX' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_RCX' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_RDX' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_RSI' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_RDI' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_RBP' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R8' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R9' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R10' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R11' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R12' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R13' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R14' undeclared (first use in this function) sgen-gc.c:5039: error: expected expression before ')' token sgen-gc.c:5039: error: 'REG_R15' undeclared (first use in this function) sgen-gc.c: In function 'gc_register_current_thread': sgen-gc.c:5681: warning: cast from pointer to integer of different size sgen-gc.c: In function 'unregister_current_thread': sgen-gc.c:5722: warning: cast from pointer to integer of different size gmake[3]: *** [libmonoruntimesgen_la-sgen-gc.lo] Error 1 gmake[3]: Leaving directory `/usr/home/yom/Mono/git/mono/mono/metadata' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/home/yom/Mono/git/mono/mono' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/yom/Mono/git/mono' gmake: *** [all] Error 2 Expected Results: it should compile. maybe ? How often does this happen? always Additional Information: $ git log commit 6b05daa743f4ece3f6fcd0a937fa269ff12db057 Author: Marek Safar <marek.sa...@gmail.com> Date: Tue Dec 14 13:06:39 2010 +0000 .. I could manage to resolve this error : sgen-gc.c:5022: error: 'ucontext_t' undeclared (first use in this function) by adding a #include <ucontext.h> for FreeBSD in in x86_64 section of "mono/utils/mono-sigcontext.h" But I can't resolve others. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs