>>> Emerging (1 of 10) dev-dotnet/log4net-1.2.11::gentoo * log4net-1.2.11-src.zip SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * log4net.snk SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking log4net-1.2.11-src.zip to /var/tmp/portage/dev-dotnet/log4net-1.2.11/work >>> Unpacking log4net.snk to /var/tmp/portage/dev-dotnet/log4net-1.2.11/work unpack log4net.snk: file format not recognized. Ignoring. >>> Source unpacked in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work >>> Preparing source in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11 ... /var/tmp/portage/dev-dotnet/log4net-1.2.11/temp/environment: line 2060: /usr/bin/gmcs: No such file or directory * ERROR: dev-dotnet/log4net-1.2.11::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2060: Called die * The specific snippet of code: * /usr/bin/gmcs -t:library -out:log4net.dll -keyfile:"${DISTDIR}"/log4net.snk -r:System.Data -r:System.Web $(find src -name "*.cs") || die * * If you need support, post the output of `emerge --info '=dev-dotnet/log4net-1.2.11::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-dotnet/log4net-1.2.11::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-dotnet/log4net-1.2.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-dotnet/log4net-1.2.11/temp/environment'. * Working directory: '/var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11' * S: '/var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11' Reproducible: Always
Created attachment 410410 [details] build.log
Created attachment 410412 [details] emerge-info.txt
Created attachment 410414 [details] emerge-pqv.txt
Found this on another site: It looks to me like gmcs is the C# compiler. Looking around it seems like starting in C# 4.0, dmcs should be used instead.
Created attachment 410416 [details, diff] fix-compilation.patch With the attached patch I could compile it on my machine. It should also work with the old compiler.
This applies to (IMHO) the most dev-dotnet packages. nini, dbus-sharp, ...
I am using ln -s dmcs /usr/bin/gmcs to get all the necessary packages merged, but this is just a workaround.
gmcs is deprecated, should use mcs