i use MSYS2 to be compiling mono i downloaded mono, download command:
git clone --recurse-submodules https://github.com/mono/mono.git -j16
mono configure the command ./autogen.sh --prefix=$PREFIX make -j16
after which a compilation error occurred:
make[2]: Leaving directory '/d/mono/support'
Making all in data
make[2]: Entering directory '/d/mono/data'
Making all in net_2_0
make[3]: Entering directory '/d/mono/data/net_2_0'
Making all in Browsers
make[4]: Entering directory '/d/mono/data/net_2_0/Browsers'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/d/mono/data/net_2_0/Browsers'
make[4]: Entering directory '/d/mono/data/net_2_0'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/d/mono/data/net_2_0'
make[3]: Leaving directory '/d/mono/data/net_2_0'
Making all in net_4_0
make[3]: Entering directory '/d/mono/data/net_4_0'
Making all in Browsers
make[4]: Entering directory '/d/mono/data/net_4_0/Browsers'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/d/mono/data/net_4_0/Browsers'
make[4]: Entering directory '/d/mono/data/net_4_0'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/d/mono/data/net_4_0'
make[3]: Leaving directory '/d/mono/data/net_4_0'
Making all in net_4_5
make[3]: Entering directory '/d/mono/data/net_4_5'
Making all in Browsers
make[4]: Entering directory '/d/mono/data/net_4_5/Browsers'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/d/mono/data/net_4_5/Browsers'
make[4]: Entering directory '/d/mono/data/net_4_5'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/d/mono/data/net_4_5'
make[3]: Leaving directory '/d/mono/data/net_4_5'
make[3]: Entering directory '/d/mono/data'
cp gdb/mono-gdb.py mono-sgen-gdb.py
make[3]: Leaving directory '/d/mono/data'
make[2]: Leaving directory '/d/mono/data'
Making all in runtime
make[2]: Entering directory '/d/mono/runtime'
cp ../data/config etc/mono/config
if test -d "/d/mono/support"; then \
sed 's,target="$mono_libdir/libMonoPosixHelper.so",target="/d/mono/support/libMonoPosixHelper.la",' etc/mono/config > etc/mono/config.tmp \
&& mv etc/mono/config.tmp etc/mono/config \
; \
else \
echo "Unknown directory '/d/mono/support'" && false; \
fi
if test -d "/d/mono/mono/native"; then \
sed 's,target="$mono_libdir/libmono-native.so",target="/d/mono/mono/native/libmono-native.la",' etc/mono/config > etc/mono/config.tmp \
&& mv etc/mono/config.tmp etc/mono/config \
; \
else \
echo "Unknown directory '/d/mono/mono/native'" && false; \
fi
if test -d "/d/mono/mono/btls/build-shared"; then \
sed 's,target="$mono_libdir/libmono-btls-shared.so",target="/d/mono/mono/btls/build-shared/libmono-btls-shared.so",' etc/mono/config > etc/mono/config.tmp \
&& mv etc/mono/config.tmp etc/mono/config \
; \
else \
echo "Unknown directory '/d/mono/mono/btls/build-shared'"; \
fi
Unknown directory '/d/mono/mono/btls/build-shared'
if test -n ""; then \
sed 's,target="libgdiplus.so",target="",' etc/mono/config > etc/mono/config.tmp \
&& mv etc/mono/config.tmp etc/mono/config \
; \
fi
cat etc/mono/config
<configuration>
<dllmap dll="i:cygwin1.dll" target="libc.so.6" os="!windows" />
<dllmap dll="libc" target="libc.so.6" os="!windows"/>
<dllmap dll="intl" target="libc.so.6" os="!windows"/>
<dllmap dll="intl" name="bind_textdomain_codeset" target="libc.so.6" os="solaris"/>
<dllmap dll="libintl" name="bind_textdomain_codeset" target="libc.so.6" os="solaris"/>
<dllmap dll="libintl" target="libc.so.6" os="!windows"/>
<dllmap dll="i:libxslt.dll" target="libxslt.so" os="!windows"/>
<dllmap dll="i:odbc32.dll" target="libodbc.so.2" os="!windows"/>
<dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/>
<dllmap dll="oci" target="libclntsh.so" os="!windows"/>
<dllmap dll="db2cli" target="libdb2_36.so" os="!windows"/>
<dllmap dll="MonoPosixHelper" target="/d/mono/support/libMonoPosixHelper.la" os="!windows" />
<dllmap dll="System.Native" target="/d/mono/mono/native/libmono-native.la" os="!windows" />
<dllmap dll="System.Net.Security.Native" target="/d/mono/mono/native/libmono-native.la" os="!windows" />
<dllmap dll="System.Security.Cryptography.Native.Apple" target="/d/mono/mono/native/libmono-native.la" os="osx" />
<dllmap dll="libmono-btls-shared" target="$mono_libdir/libmono-btls-shared.so" os="!windows" />
<dllmap dll="i:msvcrt" target="libc.so.6" os="!windows"/>
<dllmap dll="i:msvcrt.dll" target="libc.so.6" os="!windows"/>
<dllmap dll="sqlite" target="libsqlite.so.0" os="!windows"/>
<dllmap dll="sqlite3" target="libsqlite3.so.0" os="!windows"/>
<dllmap dll="libX11" target="libX11.so" os="!windows" />
<dllmap dll="libgdk-x11-2.0" target="libgdk-x11-2.0.so.0" os="!windows"/>
<dllmap dll="libgdk_pixbuf-2.0" target="libgdk_pixbuf-2.0.so.0" os="!windows"/>
<dllmap dll="libgtk-x11-2.0" target="libgtk-x11-2.0.so.0" os="!windows"/>
<dllmap dll="libglib-2.0" target="libglib-2.0.so.0" os="!windows"/>
<dllmap dll="libgobject-2.0" target="libgobject-2.0.so.0" os="!windows"/>
<dllmap dll="libgnomeui-2" target="libgnomeui-2.so.0" os="!windows"/>
<dllmap dll="librsvg-2" target="librsvg-2.so.2" os="!windows"/>
<dllmap dll="libXinerama" target="libXinerama.so.1" os="!windows" />
<dllmap dll="libasound" target="libasound.so.2" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcairo-2.dll" target="$mono_libdir/libcairo.2.dylib" os="osx" />
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
<dllmap dll="libcups" target="libcups.dylib" os="osx"/>
<dllmap dll="i:kernel32.dll">
<dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
<dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
</dllmap>
<dllmap dll="gdiplus" target="libgdiplus.so" os="!windows"/>
<dllmap dll="gdiplus.dll" target="libgdiplus.so" os="!windows"/>
<dllmap dll="gdi32" target="libgdiplus.so" os="!windows"/>
<dllmap dll="gdi32.dll" target="libgdiplus.so" os="!windows"/>
</configuration>
/bin/sh ../mkinstalldirs _tmpinst/bin
mkdir -p -- _tmpinst/bin
cp mono-wrapper _tmpinst/bin/mono
echo '#! /bin/sh' > _tmpinst/bin/ilasm ; \
r=`pwd`; m=`cd D:/mono/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/ilasm/ilasm.exe"'" "$@"' >> _tmpinst/bin/ilasm ; \
chmod +x _tmpinst/bin/ilasm
echo '#! /bin/sh' > _tmpinst/bin/csc ; \
r=`pwd`; m=`cd D:/mono/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"D:/mono/external/roslyn-binaries/Microsoft.Net.Compilers/3.9.0/csc.exe"'" "$@"' >> _tmpinst/bin/csc ; \
chmod +x _tmpinst/bin/csc
echo '#! /bin/sh' > _tmpinst/bin/mcs ; \
r=`pwd`; m=`cd D:/mono/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_x/mcs.exe"'" "$@"' >> _tmpinst/bin/mcs ; \
chmod +x _tmpinst/bin/mcs
echo '#! /bin/sh' > _tmpinst/bin/al ; \
r=`pwd`; m=`cd D:/mono/mcs && pwd`; \
echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_x/al.exe"'" "$@"' >> _tmpinst/bin/al ; \
chmod +x _tmpinst/bin/al
if test -w D:/mono/mcs; then :; else chmod -R +w D:/mono/mcs; fi
cd D:/mono/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='gcc' all-profiles
mkdir -p -- build/deps
make[6]: mono: No such file or directory
make[6]: *** [build/profiles/build.make:134: build/deps/basic-profile-check.exe] Error 127
*** Downloading bootstrap required 'monolite-win32/1A5E0066-58DC-428A-B21C-0AD6CDAE2789'
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
Makefile:20: warning: overriding recipe for target 'test-local'
../../build/library.make:188: warning: ignoring old recipe for target 'test-local'
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
/bin/sh: line 1: mono: command not found
--2023-08-11 02:46:37-- https://download.mono-project.com/monolite/monolite-win32-1A5E0066-58DC-428A-B21C-0AD6CDAE2789-latest.tar.gz
Loaded CA certificate '/usr/ssl/certs/ca-bundle.crt'
Resolving download.mono-project.com (download.mono-project.com)... 152.199.19.161, 2606:2800:133:206e:1315:22a5:2006:24fd
Connecting to download.mono-project.com (download.mono-project.com)|152.199.19.161|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5354467 (5.1M) [application/x-gzip]
Saving to: ‘STDOUT’
- 100%[==================================================================================================================================================================>] 5.11M 3.60MB/s in 1.4s
2023-08-11 02:46:39 (3.60 MB/s) - written to stdout [5354467/5354467]
*** The runtime 'mono' doesn't appear to be usable.
*** Trying the 'monolite-win32/1A5E0066-58DC-428A-B21C-0AD6CDAE2789' directory.
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.
error CS2021: File name 'r:System.dll' is empty, contains invalid characters, has a drive specification without an absolute path, or is too long
error CS2021: File name 'r:mscorlib.dll' is empty, contains invalid characters, has a drive specification without an absolute path, or is too long
make[8]: *** [build/profiles/build.make:134: build/deps/basic-profile-check.exe] Error 1
*** The contents of your 'monolite-win32/1A5E0066-58DC-428A-B21C-0AD6CDAE2789' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[8]: *** [build/profiles/build.make:117: do-profile-check-monolite] Error 1
make[7]: *** [build/profiles/build.make:93: do-profile-check] Error 2
make[6]: *** [build/profiles/build.make:129: do-profile-check-monolite] Error 2
make[5]: *** [build/profiles/build.make:93: do-profile-check] Error 2
make[4]: *** [Makefile:57: profile-do--build--all] Error 2
make[3]: *** [Makefile:53: profiles-do--all] Error 2
make[2]: *** [Makefile:710: all-mcs] Error 2
make[2]: Leaving directory '/d/mono/runtime'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/d/mono'
make: *** [Makefile:530: all] Error 2
is it possible to build mono for windows 10 without the help of cygwin ?
build mono according to instructions https://www.mono-project.com/docs/compiling-mono/windows/
./autogen.sh --prefix=$PREFIX --host=x86_64-w64-mingw32
make get-monolite-latest
make
was not completed successfully