[Mono-dev] Problems Compiling Mono in Cygwin

Rolf Bjarne Kvinge rolflists at ya.com
Fri Dec 14 11:21:15 EST 2007


>From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Luke Page
>Sent: viernes, 14 de diciembre de 2007 10:54
>To: mono-devel-list at lists.ximian.com
>Subject: [Mono-dev] Problems Compiling Mono in Cygwin
>I am currently pulling my hair out over compiling the latest trunk of mono
from SVN. I have XP SP2 and am following Shana's guide as suggested by the
mono website ( http://shana.iidbbs.com/en/mono_cygwin_tutorial.html).
>The first problem may be irrelevant, as I solved it, but it does seem
>Problem 1:
>The compiler failed to build System.XML, with the the following messages 
>It appeared that even though the makefile specified it and the echo command
was on the shell output, no define was put in PatternParser.cs in
System.XML/Mono.Xml.Xsl which meant it was identical to
>I added the define at the top of the generated PatternParser.cs file and
the build continued.

I investigated a bit regarding the first issue, and it looks like a cygwin
weirdness. The following patch works around the issue, but I have no idea
what's causing it in the first place (and why it doesn't happen on monobuild
for instance). It might even be a cygwin regression, this code hasn't
changed in years.

Index: Makefile
--- Makefile    (revision 91271)
+++ Makefile    (working copy)
@@ -106,7 +106,9 @@

 Mono.Xml.Xsl/PatternParser.cs: Mono.Xml.Xsl/PatternParser.jay
        echo "#define XSLT_PATTERN" > $@
-       $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs >>$@
+       $(topdir)/jay/jay -ct $< < $(topdir)/jay/skeleton.cs > tmp
+       cat tmp >> $@
+       rm -f tmp

 Mono.Xml.Xsl/PatternTokenizer.cs: System.Xml.XPath/Tokenizer.cs
        echo "#define XSLT_PATTERN" > $@


More information about the Mono-devel-list mailing list