#18330 closed defect (fixed)
Mono fails to build
Reported by: | michael.g.ross.98@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | takuo_macport@… | |
Port: | mono |
Description (last modified by mf2k (Frank Schima))
Upgrading Mono produced the following:
sudo port upgrade outdated ---> Building mono Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mono/work/mono-2.0.1" && make all " returned error 2 Command output: ../../doltcompile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/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_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent -O2 -D_NONSTD_SOURCE -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 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: syntax error before 'GC_PROTO' ../../libgc/include/gc_typed.h:77: error: syntax error before 'GC_malloc_explicitly_typed' ../../libgc/include/gc_typed.h:83: error: syntax error before 'GC_malloc_explicitly_typed_ignore_off_page' ../../libgc/include/gc_typed.h:86: error: syntax 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: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:109: error: syntax 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: syntax 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: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:156: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:157: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:160: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:163: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:170: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:171: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:179: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:183: error: syntax error before 'GC_PROTO' ../../libgc/include/gc_mark.h:197: error: syntax 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 Error: Unable to upgrade port: 1
Change History (6)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | mono removed |
Owner: | changed from macports-tickets@… to mww@… |
comment:2 Changed 16 years ago by michael.g.ross.98@…
It's not specific to Xcode 3.1.2 - I'm on Mac 10.5.6 Intel, Xcode 3.1.1.
comment:4 Changed 16 years ago by takuo_macport@…
Mono uses its own boehmgc. If you installed the boehmgc package, since -I/opt/local/include option is placed before -I../../libgc/include, the compiler includes /opt/local/include/gc.h which lacks the GC_PROTO macro instead of ../../libgc/include/gc.h.
I successed building the mono package by uninstalling the boehmgc package.
comment:5 Changed 16 years ago by mww@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Alongisde the update to version 2.2 of mono, I changed the explicit order of include-paths so that the mono-internal boehmgc gets picked up first. It should make no difference now, if or which versions of boehmgc are already installed.
Note: See
TracTickets for help on using
tickets.
I see this same problem. Mac OS X 10.5.6 Intel. Xcode 3.1.2.