https://bugs.winehq.org/show_bug.cgi?id=45064
Bug ID: 45064 Summary: building wine-mono 4.7.1 fails with "out of sync mscorlib.dll" on debian 9 stretch 64-bit Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mscoree Assignee: wine-bugs@winehq.org Reporter: o.dierick@piezo-forte.be Distribution: ---
Created attachment 61201 --> https://bugs.winehq.org/attachment.cgi?id=61201 full wine-mono build log
I'm trying to build wine-mono myself so that I can start fixing bugs in mono that are triggered by some windows native .NET apps.
Here's the steps I've followed: - Install Debian 9 stretch 64 bits in a virtualbox 5.2.10 virtual machine with guest additions (3.9GB RAM, 3.40Ghz x6 CPU); - full package update; - Install wine-3.6 WoW64 unpatched custom build in /home/wine-tools/wine-builds/3.6_plain_wow (same prefix as make install). - Install package git 1:2.11.0-3+deb9u2 (+all dependencies); - add i386 architecture to dpkg; - Install package libc6-i386 2.24-11+deb9u3; - Install package mono-mcs 4.6.2.7+dfsg-1 (+all dependencies); - Install packages autoconf 2.69-10 & automake 1:1.15-6 (+all dependencies); - Install package libtool 2.4.6-2 (+dependency); - Install package mingw-w64 5.0.1-1 (+dependency); - Install package g++ 4:6.3.0-4 (+all dependencies); - Install package cmake 3.7.2-1 (+all dependencies); - Install package gettext 0.19.8.1-2; - Install packages build-essential 12.3 & mono-devel 4.6.2.7+dfsg-1 (+all dependencies); - Ran $ git clone --recursive git://github.com/madewokherd/wine-mono.git - cd in build dir (/home/olivier/src/wine-mono; git clone created the wine-mono part) - Ran $ git checkout wine-mono-4.7.1 - Ran $ git submodule update --recursive - Ran $ WINE=/home/wine-tools/wine-builds/3.6_plain_wow/bin/wine64 ./build-winemono.sh >~/tmp/wine-mono.log.txt 2>&1
--- log --- (...) if test -w /home/olivier/src/wine-mono/mono/mcs; then :; else chmod -R +w /home/olivier/src/wine-mono/mono/mcs; fi cd /home/olivier/src/wine-mono/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 cant resolve internal call to "System.RuntimeTypeHandle::HasReferences(System.RuntimeType)" (tested without signature also) Microsoft (R) Visual C# Compiler version 2.0.0.61404 Copyright (C) Microsoft Corporation. All rights reserved.
Your mono runtime and class libraries are out of sync. The out of sync library is: /media/wine-shares/mono/mono/mcs/class/lib/monolite/mscorlib.dll
When you update one from git you need to update, compile and install the other too. Do not report this as a bug unless you're sure you have updated correctly: you probably have a broken mono install. If you see other errors or faults after this message they are probably related and you need to fix your mono install first. CSC [basic] mscorlib.dll cant resolve internal call to "System.RuntimeTypeHandle::HasReferences(System.RuntimeType)" (tested without signature also) (...) --- end ---
It's not clear what the build script is doing at that point and so not clear which mono runtime the error is about or where the offending class libraries came from. How can I fix that so that I can build wine-mono?