<div dir="ltr"><div>I'm running into some trouble compiling Mono on Windows. Here are the steps I followed:<br><br></div><div>1. Do a git clone (using 1b5ef4d3df262c66f58596bda152db5f4c34741c, "Add a GSHAREDVT_REG_IREG return marshalling convention on ARM.", 2013-06-23)<br>
</div><div>2. Install cygwin. Include packages: autoconf, automake, bison, gcc-core, gcc-g++, libtool, make, python, wget, zip (all from <a href="http://www.mono-project.com/Compiling_Mono_on_Windows">http://www.mono-project.com/Compiling_Mono_on_Windows</a>), mingw-pthreads (get an error with mono/utils/atomic.c without it because it #includes <pthread.h>), gettext, gettext-devel (seem to be missing msgfmt without the devel package)<br>
3. Start cygwin<br>4. Copy checkout to /home/Greg/mono<br>5. Run:<br><br>export PATH="$PATH:/cygdrive/c/Program Files (x86)/Mono-3.0.10/bin"<br>cd mono<br>./autogen.sh --prefix=/usr/local 2>&1 | tee ~/autogen_output_with_stderror.txt<br>
make V=1 2>&1 | tee ~/make_output_with_stderror_verbose.txt<br><br><br></div><div>I did see this in the autogen output. Is it anything to be concerned about?<br><br>checking winternl.h usability... no<br>checking winternl.h presence... yes<br>
configure: WARNING: winternl.h: present but cannot be compiled<br>configure: WARNING: winternl.h:     check for missing prerequisite headers?<br>configure: WARNING: winternl.h: see the Autoconf documentation<br>configure: WARNING: winternl.h:     section "Present But Cannot Be Compiled"<br>
configure: WARNING: winternl.h: proceeding with the compiler's result<br>configure: WARNING:     ## ---------------------------------------------------------------------------- ##<br>configure: WARNING:     ## Report this to <a href="http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono">http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono</a> ##<br>
configure: WARNING:     ## ---------------------------------------------------------------------------- ##<br><br><br><br></div><div><br>Here are the last several lines of output from make:<br><br>make[7]: Entering directory `/home/Greg/mono/mcs/class/EntityFramework.SqlServer'<br>
make all-local<br>make[8]: Entering directory `/home/Greg/mono/mcs/class/EntityFramework.SqlServer'<br>Converting EntityFramework.SqlServer.dll.sources to ../../build/deps/net_4_5_EntityFramework.SqlServer.dll.response ...<br>
MONO_PATH="./../../class/lib/net_4_5;$MONO_PATH" /home/Greg/mono/runtime/mono-wrapper  ./../../class/lib/net_4_5/resgen.exe "../../../external/entityframework/src/EntityFramework.SqlServer/Properties/Resources.SqlServer.resx" "System.Data.Entity.SqlServer.Properties.Resources.SqlServer.resources"<br>
Read in 44 resources from 'C:\Users\Greg\Documents\Programs\cygwin\home\Greg\mono\external\entityframework\src\EntityFramework.SqlServer\Properties\Resources.SqlServer.resx'<br>Writing resource file...  Done.<br>MONO_PATH="./../../class/lib/build;$MONO_PATH" /home/Greg/mono/runtime/mono-wrapper  ./../../class/lib/build/mcs.exe /codepage:65001  /nologo -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -nowarn:1699 -nostdlib -lib:./../../class/lib/net_4_5 -r:mscorlib.dll /debug+ /debug:full -optimize  /noconfig -r:System.dll -r:System.Xml.dll -r:System.Core.dll -r:EntityFramework.dll -r:System.Data.dll  -keyfile:../ecma.pub -delaysign -warn:1  -resource:System.Data.Entity.SqlServer.Properties.Resources.SqlServer.resources  -resource:../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.ProviderManifest.xml -resource:../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition.ssdl -resource:../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition_Sql8.ssdl -resource:../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3.ssdl -resource:../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3_Sql8.ssdl -resource:../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMapping.msl -resource:../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMappingVersion3.msl -target:library -out:../../class/lib/net_4_5/EntityFramework.SqlServer.dll  @./../../build/deps/net_4_5_EntityFramework.SqlServer.dll.response<br>
error CS1566: Error reading resource file `../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition.ssdl'<br>
error CS1566: Error reading resource file `../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinition_Sql8.ssdl'<br>
error CS1566: Error reading resource file `../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3.ssdl'<br>
error CS1566: Error reading resource file `../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaDefinitionVersion3_Sql8.ssdl'<br>
error CS1566: Error reading resource file `../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMapping.msl'<br>
error CS1566: Error reading resource file `../../../external/entityframework/src/EntityFramework.SqlServer/Resources/System/Data/SqlClient/System.Data.Resources.SqlClient.SqlProviderServices.StoreSchemaMappingVersion3.msl'<br>
Compilation failed: 6 error(s), 0 warnings<br>../../build/library.make:256: recipe for target `../../class/lib/net_4_5/EntityFramework.SqlServer.dll' failed<br>make[8]: *** [../../class/lib/net_4_5/EntityFramework.SqlServer.dll] Error 1<br>
make[8]: Leaving directory `/home/Greg/mono/mcs/class/EntityFramework.SqlServer'<br>../../build/rules.make:137: recipe for target `do-all' failed<br>make[7]: *** [do-all] Error 2<br>make[7]: Leaving directory `/home/Greg/mono/mcs/class/EntityFramework.SqlServer'<br>
../build/rules.make:158: recipe for target `all-recursive' failed<br>make[6]: *** [all-recursive] Error 1<br>make[6]: Leaving directory `/home/Greg/mono/mcs/class'<br>build/rules.make:158: recipe for target `all-recursive' failed<br>
make[5]: *** [all-recursive] Error 1<br>make[5]: Leaving directory `/home/Greg/mono/mcs'<br>Makefile:99: recipe for target `profile-do--net_4_5--all' failed<br>make[4]: *** [profile-do--net_4_5--all] Error 2<br>make[4]: Leaving directory `/home/Greg/mono/mcs'<br>
Makefile:95: recipe for target `profiles-do--all' failed<br>make[3]: *** [profiles-do--all] Error 2<br>make[3]: Leaving directory `/home/Greg/mono/mcs'<br>Makefile:547: recipe for target `all-local' failed<br>
make[2]: *** [all-local] Error 2<br>make[2]: Leaving directory `/home/Greg/mono/runtime'<br>Makefile:463: recipe for target `all-recursive' failed<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/Greg/mono'<br>
Makefile:390: recipe for target `all' failed<br>make: *** [all] Error 2<br><br><br><br></div><div>Complete autogen log is at <a href="http://pastie.org/private/mo0bnluwmekwiws4na4zg">http://pastie.org/private/mo0bnluwmekwiws4na4zg</a> and complete make log is at <a href="http://www.animerecs.com/Content/make_output_with_stderror_verbose.txt">http://www.animerecs.com/Content/make_output_with_stderror_verbose.txt</a> (too big for a pastebin site so I put it on my own site).<br>
<br></div><div>Any ideas? Also, is there a way to only build the mono runtime and/or a way to only run the tests for a particular component? I'm primarily interested in testing a bugfix for <a href="https://bugzilla.xamarin.com/show_bug.cgi?id=12752">https://bugzilla.xamarin.com/show_bug.cgi?id=12752</a>.<br>
<br></div><div>- Greg<br></div></div>