Pierre Neidhardt <m...@ambrevar.xyz> writes:
The readme says we need dotnet to build msbuild.
On the other hand, there is this tag:
https://github.com/mono/msbuild/releases/tag/0.08
So maybe it's bootstrappable after all.
Looks like it already tries to use this in the build, but
something goes wrong
here at least. Haven't spent any time debugging it
#+begin_example
$ make
./eng/cibuild_bootstrapped_msbuild.sh --host_type mono
--configuration Release --binaryLog --skip_tests
,** Downloading MSBUILD from
https://github.com/mono/msbuild/releases/download/0.08/mono_msbuild_6.4.0.208.zip
Unhandled Exception:
System.TypeInitializationException: The type initializer for
'Microsoft.Build.CommandLine.MSBuildApp' threw an exception. --->
System.TypeInitializationException: The type initializer for
'Microsoft.Build.Shared.FileUtilities' threw an exception. --->
System.TypeInitializationException: The type initializer for
'Microsoft.Build.Shared.FileSystem.FileSystems' threw an
exception. ---> System.TypeInitializationException: The type
initializer for 'Microsoft.Build.Shared.NativeMethodsShared' threw
an exception. ---> System.TypeLoadException: Could not load type
'System.Runtime.InteropServices.OSPlatform' from assembly
'mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
at Microsoft.Build.Shared.NativeMethodsShared..cctor ()
<0x40261770 + 0x00107> in <filename unknown>:0
--- End of inner exception stack trace ---
at Microsoft.Build.Shared.FileSystem.FileSystems.GetFileSystem
() <0x40261720 + 0x0000b> in <filename unknown>:0
at Microsoft.Build.Shared.FileSystem.FileSystems..cctor ()
<0x402616f0 + 0x0000b> in <filename unknown>:0
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Build.CommandLine.MSBuildApp..cctor () <0x40260ff0
+ 0x0015b> in <filename unknown>:0
--- End of inner exception stack trace ---
[ERROR] FATAL UNHANDLED EXCEPTION:
System.TypeInitializationException: The type initializer for
'Microsoft.Build.CommandLine.MSBuildApp' threw an exception. --->
System.TypeInitializationException: The type initializer for
'Microsoft.Build.Shared.FileUtilities' threw an exception. --->
System.TypeInitializationException: The type initializer for
'Microsoft.Build.Shared.FileSystem.FileSystems' threw an
exception. ---> System.TypeInitializationException: The type
initializer for 'Microsoft.Build.Shared.NativeMethodsShared' threw
an exception. ---> System.TypeLoadException: Could not load type
'System.Runtime.InteropServices.OSPlatform' from assembly
'mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
at Microsoft.Build.Shared.NativeMethodsShared..cctor ()
<0x40261770 + 0x00107> in <filename unknown>:0
--- End of inner exception stack trace ---
at Microsoft.Build.Shared.FileSystem.FileSystems.GetFileSystem
() <0x40261720 + 0x0000b> in <filename unknown>:0
at Microsoft.Build.Shared.FileSystem.FileSystems..cctor ()
<0x402616f0 + 0x0000b> in <filename unknown>:0
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Build.CommandLine.MSBuildApp..cctor () <0x40260ff0
+ 0x0015b> in <filename unknown>:0
--- End of inner exception stack trace ---
make: *** [Makefile:2: all-mono] Error 1
#+end_example