Precise error appears to be undefined "mono_build_date" in libmono.so.0.
Context from log file is:
echo "#define XSLT_PATTERN" > Mono.Xml.Xsl/PatternTokenizer.cs
cat System.Xml.XPath/Tokenizer.cs >>Mono.Xml.Xsl/PatternTokenizer.cs
MCS [basic] System.Xml.dll
/root2/var/tmp/portage/dev-lang/mono-2.2-r2/work/mono-2.2/mono/mini/.libs/lt-mono: relocation error: /root2/var/tmp/portage/dev-lang/mono-2.2-r2/work/mono-2.2/mono/mini/.libs/lt-mono: symbol mono_build_date, version VER_1 not defined in file libmono.so.0 with link time reference
make: *** [../../class/lib/basic/System.Xml.dll] Error 127
Steps to Reproduce:
1. emerge mono (2.2) [which requires "dev-lang/mono ~x86" in /etc/portage/package.keywords]
Emerge should succeed.
Please attach build.log and emerge --info.
Also, if you already have mono installed, does emerge -C mono&&emerge mono make it compile?
Created attachment 180302 [details]
emerge --info information
emerge --info listing
Created attachment 180307 [details]
build.log for mono-2.2 that fails
Build.log for mono-2.2-r3 that fails.
The log you attached does not match the output you pasted in the Description.
Created attachment 186019 [details]
Log from failed emerge matching bug description
I got the same error (see build log attached in previous comment).
emerge -C mono && emerge mono resolved the issue for me.