MONO_PATH="../../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/mono/mini/mono ../../mcs/mcs.exe -d:NET_1_1 -d:ONLY_1_1 -g /noconfig /unsafe /r:mscorlib.dll /r:System.dll /r:System.Xml.dll /r:System.Drawing.dll /r:Accessibility.dll /nowarn:649 /nowarn:169 /nowarn:67 /nowarn:108 /nowarn:114 /target:library /out:../../class/lib/System.Windows.Forms.dll @System.Windows.Forms.dll.sources Internal() warning CS0162: Unreachable code detected Internal() warning CS0162: Unreachable code detected Internal() warning CS0162: Unreachable code detected Internal() warning CS0162: Unreachable code detected System.Windows.Forms/win32Structs.cs(1043) warning CS8021: The CharSet named property on StructLayout does not work correctly on Microsoft.NET You might want to remove the CharSet declaration or compile using the Mono runtime instead of the Microsoft .NET runtime Compilation succeeded - 5 warning(s) make[2]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/System.Windows.Forms' make[2]: Entering directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/System.Design' Creating ../../build/deps/System.Design.dll.makefrag ... make[2]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/System.Design' make[2]: Entering directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/System.Design' touch ../../build/deps/System.Design.dll.stamp MONO_PATH="../../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/mono/mini/mono ../../mcs/mcs.exe -d:NET_1_1 -d:ONLY_1_1 -g /noconfig /r:mscorlib.dll /r:System.dll /r:System.Web.dll /r:System.Windows.Forms.dll /r:System.Drawing.dll /target:library /out:../../class/lib/System.Design.dll @System.Design.dll.sources Compilation succeeded make[2]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/System.Design' make[2]: Entering directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/PEAPI' Creating ../../build/deps/PEAPI.dll.makefrag ... make[2]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/PEAPI' make[2]: Entering directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/PEAPI' touch ../../build/deps/PEAPI.dll.stamp MONO_PATH="../../class/lib:$MONO_PATH" /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/mono/mini/mono ../../mcs/mcs.exe -d:NET_1_1 -d:ONLY_1_1 -g /noconfig /r:mscorlib.dll /r:System.dll /target:library /out:../../class/lib/PEAPI.dll @PEAPI.dll.sources Compilation succeeded make[2]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/PEAPI' make[2]: Entering directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/Npgsql' Creating ../../build/deps/Npgsql_test.dll.response ... Creating ../../build/deps/Npgsql_test.dll.makefrag ... Creating ../../build/deps/Npgsql.dll.makefrag ... make[2]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/Npgsql' make[2]: Entering directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/Npgsql' monoresgen Npgsql/NpgsqlState.resx ** (/usr/bin/monoresgen.exe:24330): WARNING **: cant resolve internal call to "System.Threading.Thread::current_lcid()" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:24330): WARNING **: cant resolve internal call to "System.Threading.Thread::current_lcid()" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:24330): WARNING **: cant resolve internal call to "System.Globalization.CompareInfo::construct_compareinfo(string)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:24330): WARNING **: cant resolve internal call to "System.Globalization.CompareInfo::construct_compareinfo(string)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. /usr/bin/monoresgen: line 2: 24327 Killed /usr/bin/mono /usr/bin/monoresgen.exe "$@" make[2]: *** [Npgsql/NpgsqlState.resources] Error 137 make[2]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/Npgsql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class' make: *** [all-recursive] Error 1 !!! ERROR: dev-dotnet/mono-0.30.1 failed. !!! Function src_compile, Line 59, Exitcode 2 !!! MCS compilation failure Needs patch: http://home.jesus.ox.ac.uk/~rmoss/gentoo/linux.make.diff
make[2]: Entering directory `/var/tmp/portage/mono-0.30.1/work/mcs-0.30.1/class/Npgsql' monoresgen Npgsql/NpgsqlState.resx ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.String::InternalReplace(string,string,System.Globalization.CompareInfo)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.ValueType::InternalGetHashCode(object,object[]&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Globalization.CultureInfo::construct_internal_locale(string)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::current_lcid()" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(byte&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(double&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(int16&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(int&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(long&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(intptr&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(object&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(sbyte&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(single&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(uint16&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(uint&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(ulong&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileRead(uintptr&)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(byte&,byte)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(double&,double)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(int16&,int16)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(int&,int)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(long&,long)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(intptr&,intptr)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(object&,object)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(sbyte&,sbyte)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(single&,single)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(uint16&,uint16)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(uint&,uint)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(ulong&,ulong)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Threading.Thread::VolatileWrite(uintptr&,uintptr)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Type::type_is_instance(System.Type,object)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. ** (/usr/bin/monoresgen.exe:19352): WARNING **: cant resolve internal call to "System.Type::IsInstanceOfType(object)" (tested without signature also) Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll When you update one from cvs 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. Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required in (unmanaged) System.Type:GetTypeFromHandle (System.RuntimeTypeHandle) in <0x0002c> System.Threading.Thread:get_CurrentCulture () in <0x00016> System.Globalization.CultureInfo:get_CurrentCulture () in <0x00013> System.String:ToLower () in <0x00033> .ResGen:GetReader (System.IO.Stream,string) in <0x000a7> .ResGen:CompileResourceFile (string,string) in <0x00406> .ResGen:Main (string[])
I can confirm that the patch that aent provided if copied into /var/portage/dev-dotnet/mono/files and then the following patch to the ebuild... --- mono-0.30.1.ebuild 2004-02-13 15:11:07.000000000 -0500 +++ mono-0.30.1-r1.ebuild 2004-02-16 09:24:34.000000000 -0500 @@ -31,6 +31,9 @@ src_unpack() { unpack ${A} + + cd ${MCS_P} + epatch ${FILESDIR}/linux.make.diff # add our own little in-place mcs script echo "${S}/mono/mini/mono ${S}/runtime/mcs.exe \"\$@\" " > ${S}/runtime/mcs Does successfully fix the problem and allow you to compile.
Created attachment 26168 [details] The linux.make.diff Use this to get mono 30.1 to compile
Created attachment 26169 [details] The ebuild that includes the patch
Thanks for the patch. Now I also have mono 30.1. But my old problem still exists: gtk-sharp 0.16 still won't compile
build still fails on amd64: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../.. -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions -DNO_PORT -g -O2 -pipe -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -c unknown.c -MT unknown.lo -MD -MP -MF .deps/unknown.TPlo -o unknown.o >/dev/null 2>&1 mv -f .libs/unknown.lo unknown.lo make[4]: *** No rule to make target `/libmonoarch-.la', needed by `libmonoarch.la'. Stop. make[4]: Leaving directory `/var/tmp/portage/mono-0.30.1/work/mono-0.30.1/mono/arch'
Mono 0.31 fails to build. I get this error on both my machines. creating libmono.la (cd .libs && rm -f libmono.la && ln -s ../libmono.la libmono.la) source='main.c' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libgc/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE -D_REENTRANT -fexceptions -D_FILE_OFFSET_BITS=64 -march=athlon-xp -pipe -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -c `test -f 'main.c' || echo './'`main.c /bin/sh ../../libtool --mode=link gcc -march=athlon-xp -pipe -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -o mono -export-dynamic main.o libmono.la -pthread -lgthread-2.0 -lglib-2.0 -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0 -lm -lpthread -lm -L/usr/lib -licui18n -licuuc -licudata -lpthread -lm -lnsl -lpthread -lm -lrt gcc -march=athlon-xp -pipe -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -o .libs/mono main.o -pthread -Wl,--export-dynamic -Wl,--export-dynamic ./.libs/libmono.so -L/usr/lib /usr/lib/libgthread-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -licui18n -licuuc -licudata -lnsl -lpthread -lm -lrt ./.libs/libmono.so: undefined reference to `___tls_get_addr' collect2: ld returned 1 exit status make[4]: *** [mono] Error 1 make[4]: Leaving directory `/var/tmp/portage/mono-0.31/work/mono-0.31/mono/mini' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/mono-0.31/work/mono-0.31/mono/mini' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mono-0.31/work/mono-0.31/mono' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mono-0.31/work/mono-0.31' make: *** [all] Error 2 !!! ERROR: dev-dotnet/mono-0.31 failed. !!! Function src_compile, Line 48, Exitcode 2 !!! MONO compilation failure
Compiles fine in newer versions...