OT of image ./../../class/lib/build//mscorlib.dll failed. Mono Ahead of Time compiler - compiling assembly /var/tmp/portage/dev-lang/mono-5.0.1.1/work/mono-5.0.1.1-abi_x86_32.x86/mcs/class/lib/build/mscorlib.dll AOTID 4AABD6AA-0C83-30F0-410A-755E48B611D3 Using profile data file './../../class/lib/build/csc.System.Core.dll.aotprofile' Using profile data file './../../class/lib/build/csc.corlib.dll.aotprofile' Added 94 methods from profile. Added 107 methods from profile. Code: 4138129(58%) Info: 117629(1%) Ex Info: 2482516(35%) Unwind Info: 80(0%) Class Info: 109142(1%) PLT: 7301(0%) GOT Info: 124171(1%) Offsets: 99408(1%) GOT: 60508 Compiled: 22084/22084 (100%), No GOT slots: 14585 (66%), Direct calls: 34150 (69%) Executing the native assembler: "as" -o /var/tmp/portage/dev-lang/mono-5.0.1.1/temp/mono_aot_M0fPSv.o /var/tmp/portage/dev-lang/mono-5.0.1.1/temp/mono_aot_M0fPSv Executing the native linker: "ld" -shared -o /var/tmp/portage/dev-lang/mono-5.0.1.1/work/mono-5.0.1.1-abi_x86_32.x86/mcs/class/lib/build/mscorlib.dll.so.tmp /var/tmp/portage/dev-lang/mono-5.0.1.1/temp/mono_aot_M0fPSv.o WZ Executing the native linker: "ld" -shared -o ./../../class/lib/build//Microsoft.CodeAnalysis.dll.so.tmp /var/tmp/portage/dev-lang/mono-5.0.1.1/temp/mono_aot_9yFkWZ.o zV.o make[7]: *** [Makefile:59: ../../class/lib/build//mscorlib.dll.so] Error 1 ld: /var/tmp/portage/dev-lang/mono-5.0.1.1/temp/mono_aot_74zMwb.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC ld: final link failed: Nonrepresentable section on output AOT of image /var/tmp/portage/dev-lang/mono-5.0.1.1/work/mono-5.0.1.1-abi_x86_32.x86/external/roslyn-binaries/Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.0.0/tools//Microsoft.CodeAnalysis.CSharp.dll failed. Mono Ahead of Time compiler - compiling assembly /var/tmp/portage/dev-lang/mono-5.0.1.1/work/mono-5.0.1.1-abi_x86_32.x86/external/roslyn-binaries/Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.0.0/tools/Microsoft.CodeAnalysis.CSharp.dll AOTID C58DE106-BAB7-7238-200D-DC325CA43A4D Using profile data file './../../class/lib/build/csc.System.Core.dll.aotprofile' Using profile data file './../../class/lib/build/csc.corlib.dll.aotprofile' Added 1709 methods from profile. Added 1683 methods from profile. Code: 5888100(58%) Info: 170892(1%) Ex Info: 3285994(32%) Unwind Info: 80(0%) Class Info: 284474(2%) PLT: 13768(0%) GOT Info: 235670(2%) Offsets: 127330(1%) GOT: 111192 Compiled: 31083/31083 (100%), No GOT slots: 17057 (54%), Direct calls: 33000 (77%) Reproducible: Always Portage 2.3.6 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.3.0, glibc-2.24-r1, 4.11.3-gentoo x86_64) ================================================================= System uname: Linux-4.11.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.3 KiB Mem: 24625360 total, 19854328 free KiB Swap: 26488828 total, 26488828 free Timestamp of repository gentoo: Sun, 04 Jun 2017 18:00:01 +0000 Timestamp of repository poly-c: Sat, 03 Jun 2017 08:25:44 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r2::gentoo dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo dev-util/cmake: 3.8.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.26.3::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r3::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 5.4.0-r3::gentoo, 6.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::gentoo Repositories:
see https://github.com/gentoo/dotnet/issues/300