[Mono-bugs] [Bug 41768][Blo] New - Mini doesn't compile

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 22 Apr 2003 23:46:40 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by r.h.lee@attbi.com.

http://bugzilla.ximian.com/show_bug.cgi?id=41768

--- shadow/41768	Tue Apr 22 23:46:40 2003
+++ shadow/41768.tmp.24004	Tue Apr 22 23:46:40 2003
@@ -0,0 +1,76 @@
+Bug#: 41768
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: r.h.lee@attbi.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mini doesn't compile
+
+Description of Problem:
+This is a log for a fixed mini compile bug. Its here just in case other
+mini compile problems occur.
+
+When using a build procedure that seperates the source from the build, make
+complained about being unable to locate files for mini, specifically some
+include files and monoburg files.
+
+This is a patch to fix the problem:
+
+--- Makefile.am	2003-04-19 00:40:29.000000000 -0700
++++ Makefile.am.patch	2003-04-19 00:39:23.000000000 -0700
+@@ -15,7 +15,7 @@
+ 
+ INCLUDES = \
+ 	$(WARN) -fexceptions -DMONO_USE_EXC_TABLES	\
+-	-I$(top_srcdir) $(MINI_CFLAGS)
++	-I$(top_srcdir) -I$(top_srcdir)/mono/jit $(MINI_CFLAGS)
+ 
+ # hack for automake to have the same source file in a library and a bin
+ genmdesc_CFLAGS = $(AM_CFLAGS)
+@@ -80,9 +80,9 @@
+ 	$(MCS) /out:TestDriver.dll /target:library TestDriver.cs
+ 
+ cpu-pentium.h: cpu-pentium.md genmdesc
+-	./genmdesc cpu-pentium.md cpu-pentium.h pentium
++	./genmdesc $(srcdir)/cpu-pentium.md cpu-pentium.h pentium
+ 
+-BURGSRC= inssel.brg inssel-x86.brg inssel-long32.brg inssel-float.brg
++BURGSRC= $(srcdir)/inssel.brg $(srcdir)/inssel-x86.brg
+$(srcdir)/inssel-long32.brg $(srcdir)/inssel-float.brg
+ 
+ inssel.c inssel.h: $(BURGSRC)
+ 	$(monodir)/mono/monoburg/monoburg -c 1 -p -e $(BURGSRC) -d inssel.h -s
+inssel.c
+
+=== end patch
+
+From: Miguel de Icaza <miguel@ximian.com>
+To: Richard Lee <r.h.lee@attbi.com>
+
+This line looks suspicious:
+
+-       -I$(top_srcdir) $(MINI_CFLAGS)
++       -I$(top_srcdir) -I$(top_srcdir)/mono/jit $(MINI_CFLAGS)
+
+====
+Turns out mini isn't supposed to use jit files.
+====
+From: Martin Baulig <martin@gnome.org>
+To: Richard Lee <r.h.lee@attbi.com>
+
+Now I see the problem, but your makefile change is wrong.
+
+We need to remove these #include's and rewrite this to use the mini code
+instead.
+I'll fix this tomorrow together with a few other cleanups of this code.
+====