mono does not compile on my system (I tried also dev-lang/mono-1.2.6-r1 and dev-lang/mono-1.2.5) with the some result. it just get stuck on this line: make[7]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' and eat up all procesor time and keeps hanging. top - 16:49:46 up 2 days, 10:07, 3 users, load average: 1.13, 1.06, 0.93 Tasks: 61 total, 3 running, 58 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0% us, 44.7% sy, 55.3% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 1028220k total, 939284k used, 88936k free, 278576k buffers Swap: 1953496k total, 2444k used, 1951052k free, 560692k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 31536 root 39 19 10104 2524 1788 R 99.9 0.2 1:17.76 mono Reproducible: Always Steps to Reproduce: 1.emerge -av mono 2. 3. Actual Results: i686-pc-linux-gnu-ar cru .libs/libMonoSupportW.a supportw.o support-heap.o i686-pc-linux-gnu-ranlib .libs/libMonoSupportW.a creating libMonoSupportW.la (cd .libs && rm -f libMonoSupportW.la && ln -s ../libMonoSupportW.la libMonoSupportW.la) make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/support' Making all in docs make[2]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/docs' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/docs' Making all in data make[2]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' Making all in net_1_1 make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_1_1' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_1_1' Making all in net_2_0 make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_2_0' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_2_0' make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' Making all in runtime make[2]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/runtime' d=`cd ../support && pwd`; \ sed 's,target="libMonoPosixHelper[^"]*",target="'$d/libMonoPosixHelper.la'",' ../data/config > etc/mono/configt if test -z ""; then :; else \ sed 's,<configuration>,& <dllmap dll="gdiplus.dll" target="" />,' etc/mono/configt > etc/mono/configtt; \ mv -f etc/mono/configtt etc/mono/configt; fi mv -f etc/mono/configt etc/mono/config /bin/sh /var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/install-sh -d _tmpinst/bin cp mono-wrapper _tmpinst/bin/mono echo '#! /bin/sh' > _tmpinst/bin/mcs ; \ r=`pwd`; m=`cd ../mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/default/mcs.exe"'" "$@"' >> _tmpinst/bin/mcs ; \ chmod +x _tmpinst/bin/mcs echo '#! /bin/sh' > _tmpinst/bin/ilasm ; \ r=`pwd`; m=`cd ../mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/ilasm/ilasm.exe"'" "$@"' >> _tmpinst/bin/ilasm ; \ chmod +x _tmpinst/bin/ilasm echo '#! /bin/sh' > _tmpinst/bin/gmcs ; \ r=`pwd`; m=`cd ../mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_2_0/gmcs.exe"'" "$@"' >> _tmpinst/bin/gmcs ; \ chmod +x _tmpinst/bin/gmcs if test -w ../mcs; then :; else chmod -R +w ../mcs; fi cd ../mcs && make PROFILES='default net_2_0' CC='i686-pc-linux-gnu-gcc' all-profiles make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' make profile-do--default--all profile-do--net_2_0--all make[4]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' make PROFILE=basic all make[5]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' make[6]: *** [build/deps/basic-profile-check.exe] Error 1 make[6]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' *** The compiler 'false' doesn't appear to be usable. *** Trying the 'monolite' directory. make[7]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.24-gentoo-r3 i686) ================================================================= System uname: 2.6.24-gentoo-r3 i686 Intel(R) Celeron(R) CPU 420 @ 1.60GHz Timestamp of tree: Tue, 04 Mar 2008 18:00:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="rsync://192.168.1.1/gentoo-portage/distfiles rsync://192.168.1.1/gentoo-portage/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://192.168.1.1/gentoo-portage" USE="X acl apache berkdb cifs cli cracklib crypt cups dri fortran gdbm gpm gtk2 gui iconv ipv6 isdnlog midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pppd python readline reflection samba session slang spl ssl tcpd unicode x86 xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810 i915 fglrx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
For starters, upgrade your toolchain (gcc + binutils + linux-headers + glibc) to latest stable at least and try again.
it didn't help after nice -n 19 emerge -av gcc binutils linux-headers glibc nice -n 19 emerge -av mono have the some behavior creating libMonoSupportW.la (cd .libs && rm -f libMonoSupportW.la && ln -s ../libMonoSupportW.la libMonoSupportW.la) make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/support' Making all in docs make[2]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/docs' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/docs' Making all in data make[2]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' Making all in net_1_1 make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_1_1' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_1_1' Making all in net_2_0 make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_2_0' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data/net_2_0' make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/data' Making all in runtime make[2]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/runtime' d=`cd ../support && pwd`; \ sed 's,target="libMonoPosixHelper[^"]*",target="'$d/libMonoPosixHelper.la'",' ../data/config > etc/mono/configt if test -z ""; then :; else \ sed 's,<configuration>,& <dllmap dll="gdiplus.dll" target="" />,' etc/mono/configt > etc/mono/configtt; \ mv -f etc/mono/configtt etc/mono/configt; fi mv -f etc/mono/configt etc/mono/config /bin/sh /var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/install-sh -d _tmpinst/bin cp mono-wrapper _tmpinst/bin/mono echo '#! /bin/sh' > _tmpinst/bin/mcs ; \ r=`pwd`; m=`cd ../mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/default/mcs.exe"'" "$@"' >> _tmpinst/bin/mcs ; \ chmod +x _tmpinst/bin/mcs echo '#! /bin/sh' > _tmpinst/bin/ilasm ; \ r=`pwd`; m=`cd ../mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/ilasm/ilasm.exe"'" "$@"' >> _tmpinst/bin/ilasm ; \ chmod +x _tmpinst/bin/ilasm echo '#! /bin/sh' > _tmpinst/bin/gmcs ; \ r=`pwd`; m=`cd ../mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_2_0/gmcs.exe"'" "$@"' >> _tmpinst/bin/gmcs ; \ chmod +x _tmpinst/bin/gmcs if test -w ../mcs; then :; else chmod -R +w ../mcs; fi cd ../mcs && make PROFILES='default net_2_0' CC='i686-pc-linux-gnu-gcc' all-profiles make[3]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' make profile-do--default--all profile-do--net_2_0--all make[4]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' make PROFILE=basic all make[5]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' make[6]: *** [build/deps/basic-profile-check.exe] Error 1 make[6]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' *** The compiler 'false' doesn't appear to be usable. *** Trying the 'monolite' directory. make[7]: Entering directory `/var/tmp/portage/dev-lang/mono-1.2.6-r2/work/mono-1.2.6/mcs' emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686) ================================================================= System uname: 2.6.24-gentoo-r3 i686 Intel(R) Celeron(R) CPU 420 @ 1.60GHz Timestamp of tree: Tue, 04 Mar 2008 18:00:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="rsync://192.168.1.1/gentoo-portage/distfiles rsync://192.168.1.1/gentoo-portage/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://192.168.1.1/gentoo-portage" USE="X acl apache berkdb cifs cli cracklib crypt cups dri fortran gdbm gpm gtk2 gui iconv ipv6 isdnlog midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pppd python readline reflection samba session slang spl ssl tcpd unicode x86 xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810 i915 fglrx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** This bug has been marked as a duplicate of bug 204677 ***