[MacPorts] #18330: Mono fails to build
#18330: Mono fails to build --------------------------------------------------+------------------------- Reporter: michael.g.ross.98@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: mono | Port: mono --------------------------------------------------+------------------------- 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 -- Ticket URL: <http://trac.macports.org/ticket/18330> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18330: Mono fails to build --------------------------------------------------+------------------------- Reporter: michael.g.ross.98@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: mono --------------------------------------------------+------------------------- Changes (by macsforever2000@…): * keywords: mono => * owner: macports-tickets@… => mww@… Old description:
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
New description: 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 }}} -- Comment: I see this same problem. Mac OS X 10.5.6 Intel. Xcode 3.1.2. -- Ticket URL: <http://trac.macports.org/ticket/18330#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18330: Mono fails to build --------------------------------------------------+------------------------- Reporter: michael.g.ross.98@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: mono --------------------------------------------------+------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/18330#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18330: Mono fails to build --------------------------------------------------+------------------------- Reporter: michael.g.ross.98@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: mono --------------------------------------------------+------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/18330#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18330: Mono fails to build ---------------------------------------------------+------------------------ Reporter: michael.g.ross.98@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: mono | ---------------------------------------------------+------------------------ Changes (by mww@…): * status: new => closed * resolution: => fixed Comment: 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. -- Ticket URL: <http://trac.macports.org/ticket/18330#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts