#17996 closed defect (fixed)
mono 2.4.2.3 does not build: dereferencing pointer to incomplete type
Reported by: | pgijnxn02@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | jdfrens@…, jeremyhu (Jeremy Huddleston Sequoia), dbevans (David B. Evans), ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager) | |
Port: | mono |
Description
Tiger 10.4.11 Mac Mini PPC
Here's where the errors begin:
/bin/sh ../../libtool --quiet --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/l ib/glib-2.0/include -I/opt/local/include -I../../libgc/include -DMONO_BINDIR=\""/opt/local/bin"\" -I../.. -I/opt/local/include -no-cpp-precomp -D_THRE AD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCrea teEvent=MonoCreateEvent -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wn ested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT handles.lo -MD -MP -MF .deps/handles.Tpo -c -o handles.lo handles.c In file included from ../../mono/os/gc_wrapper.h:39, from handles.c:23: ../../libgc/include/gc_typed.h:50: error: parse error before 'GC_PROTO' ../../libgc/include/gc_typed.h:77: error: parse error before 'GC_malloc_explicitly_typed' ../../libgc/include/gc_typed.h:83: error: parse error before 'GC_malloc_explicitly_typed_ignore_off_page' ../../libgc/include/gc_typed.h:86: error: parse error before 'GC_calloc_explicitly_typed' In file included from ../../mono/os/gc_wrapper.h:40, from handles.c:23: ../../libgc/include/gc_mark.h:56: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:109: error: parse error before 'GC_least_plausible_heap_addr' ../../libgc/include/gc_mark.h:109: warning: type defaults to 'int' in declaration of 'GC_least_plausible_heap_addr' ../../libgc/include/gc_mark.h:109: warning: data definition has no type or storage class ../../libgc/include/gc_mark.h:110: error: parse error before 'GC_greatest_plausible_heap_addr' ../../libgc/include/gc_mark.h:110: warning: type defaults to 'int' in declaration of 'GC_greatest_plausible_heap_addr' ../../libgc/include/gc_mark.h:110: warning: data definition has no type or storage class ../../libgc/include/gc_mark.h:134: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:156: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:157: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:160: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:163: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:170: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:171: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:179: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:183: error: parse error before 'GC_PROTO' ../../libgc/include/gc_mark.h:197: error: parse error before 'GC_PROTO' make[3]: *** [handles.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Change History (15)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to mww@… |
---|---|
Port: | mono added |
comment:2 Changed 16 years ago by ralph@…
comment:6 Changed 15 years ago by dbevans (David B. Evans)
Current version of mono (mono @2.4.2.3_0) builds without problems for me on 10.4.11 ppc. Can anyone reproduce this problem on the current version or can this be closed?
comment:8 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Summary: | mono 2.0.1 does not build: parse error before GC_PROTO → mono 2.4.2.3 does not build: dereferencing pointer to incomplete type |
---|
It is still failing to build on Leopard/ppc ...
/bin/sh ../../libtool --quiet --tag=CC --mode=compile /usr/bin/gcc-4.0 -I/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_mono/work/mono-2.4.2.3/libgc/include -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent -D__mono_ppc__ -I../.. -I../../libgc/include -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -O2 -D_NONSTD_SOURCE -arch ppc -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 -MT exceptions-ppc.lo -MD -MP -MF .deps/exceptions-ppc.Tpo -c -o exceptions-ppc.lo exceptions-ppc.c exceptions-ppc.c: In function 'mono_arch_sigctx_to_monoctx': exceptions-ppc.c:601: error: dereferencing pointer to incomplete type exceptions-ppc.c:602: error: dereferencing pointer to incomplete type exceptions-ppc.c:603: error: dereferencing pointer to incomplete type exceptions-ppc.c:604: error: dereferencing pointer to incomplete type exceptions-ppc.c: In function 'mono_arch_monoctx_to_sigctx': exceptions-ppc.c:612: error: dereferencing pointer to incomplete type exceptions-ppc.c:613: error: dereferencing pointer to incomplete type exceptions-ppc.c:614: error: dereferencing pointer to incomplete type exceptions-ppc.c:615: error: dereferencing pointer to incomplete type exceptions-ppc.c: In function 'mono_arch_ip_from_context': exceptions-ppc.c:622: error: dereferencing pointer to incomplete type exceptions-ppc.c: In function 'mono_arch_handle_altstack_exception': exceptions-ppc.c:641: warning: initialization from incompatible pointer type exceptions-ppc.c:650: error: dereferencing pointer to incomplete type exceptions-ppc.c:670: error: dereferencing pointer to incomplete type exceptions-ppc.c:673: warning: assignment from incompatible pointer type exceptions-ppc.c:674: error: invalid application of 'sizeof' to incomplete type 'os_ucontext' exceptions-ppc.c:680: error: dereferencing pointer to incomplete type exceptions-ppc.c:680: error: dereferencing pointer to incomplete type exceptions-ppc.c:689: error: dereferencing pointer to incomplete type exceptions-ppc.c:691: error: dereferencing pointer to incomplete type exceptions-ppc.c:692: error: dereferencing pointer to incomplete type exceptions-ppc.c:693: error: dereferencing pointer to incomplete type exceptions-ppc.c:694: error: dereferencing pointer to incomplete type make[4]: *** [exceptions-ppc.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... mv -f .deps/unwind.Tpo .deps/unwind.Plo mv -f .deps/tramp-ppc.Tpo .deps/tramp-ppc.Plo mini-ppc.c:5035: warning: 'try_offset_access' defined but not used mv -f .deps/mini-ppc.Tpo .deps/mini-ppc.Plo mv -f .deps/method-to-ir.Tpo .deps/method-to-ir.Plo make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_mono/work/mono-2.4.2.3" && /usr/bin/make -j5 all " returned error 2
comment:9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
Do you still see this problem with mono 2.6.3?
comment:10 follow-up: 14 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)
2.6.3 fails to patch on Leopard
---> Applying /Users/jeremy/src/macports-trunk/dports/devel/mono/files/patch-configure.diff patching file configure Hunk #1 succeeded at 18146 (offset -4047 lines). ---> Applying /Users/jeremy/src/macports-trunk/dports/devel/mono/files/patch-data-config.in.diff patching file data/config.in ---> Applying /Users/jeremy/src/macports-trunk/dports/devel/mono/files/patch-interp.h.diff patching file ./mono/interpreter/interp.h Hunk #1 succeeded at 120 (offset 5 lines). ---> Applying /Users/jeremy/src/macports-trunk/dports/devel/mono/files/patch-sys-mman.c.diff patching file support/sys-mman.c ---> Applying /Users/jeremy/src/macports-trunk/dports/devel/mono/files/patch-mono-mini-mini-x86.h.diff patching file mono/mini/mini-x86.h Hunk #1 FAILED at 152. Hunk #2 FAILED at 162. 2 out of 2 hunks FAILED -- saving rejects to file mono/mini/mini-x86.h.rej shell command " cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_devel_mono/work/mono-2.6.3" && /usr/bin/patch -p0 < '/Users/jeremy/src/macports-trunk/dports/devel/mono/files/patch-mono-mini-mini-x86.h.diff'" returned error 1 Error: Target org.macports.patch returned: shell command failed Warning: the following items did not execute (for mono): org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install Log for mono is at: /opt/local/var/macports/logs/_Users_jeremy_src_macports-trunk_dports_devel_mono/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
comment:11 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)
comment:12 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)
jkh added the -D_NONSTD_SOURCE in r19297
he might know if that is still necessary (to answer your comment question)
comment:13 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:14 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
Same on an Intel Mac running 10.5.6