[Mono-dev] Win32 build errors (recent change)

Steven Boswell II ulatekh at yahoo.com
Mon Jun 18 01:49:37 UTC 2012


I tried mightily to get latest Mono to build under MS Windows, starting with Rob's patch to help that along, and finally got stumped.  Attached are two patches, one with changes I know are good, and one with changes that shouldn't be necessary.

It turns out I hadn't installed sed, and the Mono build scripts use sed liberally.  So one of the good patches is to add AC_PROG_SED to configure.in, so its existence is tested for.  (Modifying every reference to "sed" to use "$(SED)" instead is left to a future date. ;-)

Does mcs recognize MS-Windows-style slash-prefixed options, or only Linux-style dash-prefixed options?  In my build, the slash-prefixed options ("/nologo", "/noconfig", and "/optimize") were being mistaken for pathnames.  The "hack" patch fixes two files, changing slash-options to dash-options.  I didn't think this was necessary?

Finally, my build died at "MCS [basic] System.Core.dll", because it couldn't find mscorlib.dll and System.dll .  The second section of my good patch modifies mcs/build/profiles/basic.make to look like the other profile makefiles, i.e. by adding "-lib:$(topdir)/class/lib/$(PROFILE)" to PROFILE_MCS_FLAGS.  And both mcs/class/lib/basic/mscorlib.dll and mcs/class/lib/System.dll both exist.  But it didn't help; the build still dies there.  So I'm stumped.

Has anyone else gotten further building Mono under MS Windows?

Steven Boswell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120617/b127530c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-mingw-hack.patch
Type: application/octet-stream
Size: 834 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120617/b127530c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-mingw-good.patch
Type: application/octet-stream
Size: 810 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120617/b127530c/attachment-0001.obj>


More information about the Mono-devel-list mailing list