[Mono-list] Mono build failure

David B. Bitton david@codenoevil.com
Mon, 30 Dec 2002 22:08:02 -0500


I built the latest tonight from a Cygwin Bash prompt, and was able to 
get past the afformentioned failure.  I'm now having a failure w/ 
debug.c.  This is the output:

---

gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. 
-I/home/bittondb/src/mono/install/include/glib-2.0 -I/home/bitto
ndb/src/mono/install/lib/glib-2.0/include 
-I/home/bittondb/src/mono/install/include/glib-2.0 
-I/home/bittondb/src/mono/i
nstall/lib/glib-2.0/include -I/home/david/src/mono/install/include 
-DGC_WIN32_THREADS -g -Wall -Wunused -Wmissing-protot
ypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes 
-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wc
ast-align -Wwrite-strings -Wp,-MD,.deps/debug.pp -c debug.c 
-DDLL_EXPORT -DPIC -o .libs/debug.lo
debug.c:38: parse error before "debugger_thread_cond"
debug.c:38: warning: type defaults to `int' in declaration of 
`debugger_thread_cond'
debug.c:38: `PTHREAD_COND_INITIALIZER' undeclared here (not in a function)
debug.c:38: warning: data definition has no type or storage class
debug.c:39: parse error before "debugger_thread_mutex"
debug.c:39: warning: type defaults to `int' in declaration of 
`debugger_thread_mutex'
debug.c:39: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here 
(not in a function)
debug.c:39: warning: data definition has no type or storage class
debug.c:40: parse error before "debugger_start_cond"
debug.c:40: warning: type defaults to `int' in declaration of 
`debugger_start_cond'
debug.c:40: `PTHREAD_COND_INITIALIZER' undeclared here (not in a function)
debug.c:40: warning: data definition has no type or storage class
debug.c:41: parse error before "debugger_start_mutex"
debug.c:41: warning: type defaults to `int' in declaration of 
`debugger_start_mutex'
debug.c:41: `PTHREAD_MUTEX_INITIALIZER' undeclared here (not in a function)
debug.c:41: warning: data definition has no type or storage class
debug.c: In function `mono_debugger_lock':
debug.c:75: warning: implicit declaration of function `pthread_mutex_lock'
debug.c: In function `mono_debugger_unlock':
debug.c:81: warning: implicit declaration of function `pthread_mutex_unlock'
debug.c: In function `mono_debugger_signal':
debug.c:90: warning: implicit declaration of function `pthread_cond_signal'
debug.c: In function `debugger_thread_func':
debug.c:1311: `SIGSTOP' undeclared (first use in this function)
debug.c:1311: (Each undeclared identifier is reported only once
debug.c:1311: for each function it appears in.)
debug.c:1323: warning: implicit declaration of function `pthread_cond_wait'
debug.c: In function `initialize_debugger_support':
debug.c:1351: `pthread_t' undeclared (first use in this function)
debug.c:1351: parse error before "thread"
debug.c:1367: warning: implicit declaration of function `pthread_create'
debug.c:1367: `thread' undeclared (first use in this function)
make[3]: *** [debug.lo] Error 1
make[3]: Leaving directory `/cygdrive/c/src/mono/mono/mono/jit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/src/mono/mono/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/src/mono/mono'
make: *** [all-recursive-am] Error 2

David Bitton@JERRY ~/src/mono
$

---

David B. Bitton wrote:
> I'm trying to build mono on Win32 using the mono-build-w32.sh script. 
> I'm able to get through autoconf, automake, etc., but the compilation of 
> mono is failing.
> 
> This is failure:
> 
> ---
> 
> Making all in interpreter
> make[3]: Entering directory `/cygdrive/c/src/mono/mono/mono/interpreter'
> /bin/sh ../../libtool --mode=link gcc -mno-cygwin -O -g -Wall -Wunused 
> -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototyp
> es  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual 
> -Wcast-align -Wwrite-strings -L/cygdrive/c/src/mono/install
> /lib -o mint.exe  interp.o ../arch/libmonoarch.la 
> ../metadata/libmonoruntime.la           ../metadata/libmetad
> ata.la          ../io-layer/libwapi.la 
> ../utils/libmonoutils.la                
> ../os/libmonoos-L/cygdrive/c/src/mon
> o/install/lib -lglib-2.0 -lintl -liconv -Wl,--export-dynamic  
> -L/cygdrive/c/src/mono/install/lib -lg
> module-2.0 -lglib-2.0 -lintl -liconv                    -lm -lgc 
> -lws2_32 -lpsapi
> gcc -mno-cygwin -O -g -Wall -Wunused -Wmissing-prototypes 
> -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-e
> xterns -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -o 
> mint.exe interp.o -Wl,--export-dynamic  -L/cygdrive/c/src/mono
> /install/lib ../arch/.libs/libmonoarch.al 
> ../metadata/.libs/libmonoruntime.al ../metadata/.libs/libmetadata.al 
> ../io-layer/.libs/lib
> wapi.al ../utils/.libs/libmonoutils.al ../os/.libs/libmonoos.al 
> -lgmodule-2.0 -lglib-2.0 .libs/libimp-cygintl-2.a -L/usr/lib .libs/l
> ibimp-cygiconv-2.a -lgc -lws2_32 -lpsapi
> interp.o(.text+0xc84): In function `ves_pinvoke_method':
> /cygdrive/c/src/mono/mono/mono/interpreter/interp.c:593: undefined 
> reference to `mono_create_trampoline'
> interp.o(.text+0xca6):/cygdrive/c/src/mono/mono/mono/interpreter/interp.c:598: 
> undefined reference to `mono_create_trampoline'
> interp.o(.text+0x8498): In function `ves_exec_method':
> /cygdrive/c/src/mono/mono/mono/interpreter/interp.c:3957: undefined 
> reference to `mono_create_method_pointer'
> interp.o(.text+0x9d4a): In function `main':
> /cygdrive/c/src/mono/mono/mono/interpreter/interp.c:4468: undefined 
> reference to `mono_set_rootdir'
> interp.o(.text+0x9dc6):/cygdrive/c/src/mono/mono/mono/interpreter/interp.c:4481: 
> undefined reference to `mono_create_method_pointer'
> 
> make[3]: *** [mint.exe] Error 1
> make[3]: Leaving directory `/cygdrive/c/src/mono/mono/mono/interpreter'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/cygdrive/c/src/mono/mono/mono'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/cygdrive/c/src/mono/mono'
> make: *** [all-recursive-am] Error 2
> 
> ---
> 


-- 
David B. Bitton
david@codenoevil.com
www.codenoevil.com

Code Made Fresh Daily™