Bug 38748 - build-mingw32.sh script gone
Summary: build-mingw32.sh script gone
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: 4.2.0 (C6)
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-02-14 21:46 UTC by Hin-Tak Leung
Modified: 2016-08-30 07:33 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Hin-Tak Leung 2016-02-14 21:46:51 UTC
Just upgraded from 4.0 to 4.2 and found that somebody removed build-win32.sh in April, assuming nobody uses it. Well, the assumption is wrong.
Comment 1 Zoltan Varga 2016-02-19 04:45:39 UTC
It was removed by commit 44f87d758e5ca13609b70134f532d2382b3680e7.
Comment 2 Alexander Köplinger [MSFT] 2016-02-22 12:40:34 UTC
The script was unmaintained for a very long time so it's a bit surprising it still worked for you. The recommended way for building Mono on Windows is shown at http://www.mono-project.com/docs/compiling-mono/windows/.

We don't currently have up-to-date docs for cross-compiling Mono for Windows (the page at http://www.mono-project.com/docs/compiling-mono/windows/cross-compiling-mono-for-windows/ is quite outdated), so I'd be happy to accept a pull request to the website for updating that page.

The build-win32.sh file is available at https://github.com/mono/mono/commit/44f87d758e5ca13609b70134f532d2382b3680e7 if you'd like to maintain it yourself going forward.

Closing this since we want to consolidate the docs and scripts for building Mono and this file isn't in scope, but thanks for the report!
Comment 3 Hin-Tak Leung 2016-08-29 15:12:51 UTC
FWIW, the old script still seems to be working for Cycle 7 Service Release 1 .

I am using mingw 6.2.0 as shipped by fedora.

$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 6.2.0 20160822 (Fedora MinGW 6.2.0-1.fc24)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
Comment 4 Hin-Tak Leung 2016-08-29 16:43:11 UTC
Finished cross-compiling the C part of The resulting binary seems to work fine under wine.
Comment 5 Hin-Tak Leung 2016-08-30 07:33:57 UTC
It is not too difficult to revive the script - you just do

git show 44f87d758e5ca13609b70134f532d2382b3680e7^:build-mingw32.sh > build-mingw32.sh
chmod a+rx build-mingw32.sh

if you are sitting on top of a local mono git clone.