LAST LINES OF OUTPUT: gcc -pipe -march=pentium4 -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-1.0.1-r1/work/mono-1.0.1/mono/mini' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/mono-1.0.1-r1/work/mono-1.0.1/mono/mini' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/mono-1.0.1-r1/work/mono-1.0.1/mono' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mono-1.0.1-r1/work/mono-1.0.1' make: *** [all] Error 2 !!! ERROR: dev-dotnet/mono-1.0.1-r1 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! MONO compilation failure MY USE FLAGS: USE="acpi acpi4linux aim apache2 async bzlib calendar cddb cdrom cgi \ chroot clanJavaScript clanVoice cpdflib cscope ctype curl \ curlwrappers dbx dga dio divx4linux dnd doc dv dvb dvd dvdr dvdread \ erandom escreen exif fastcgi fbcon fbdev fdftk ffmpeg fftw flash \ flatfile fluidsynth freetds freetype ftp gimp gimpprint glgd glut gs \ gtkhtml iconv icq ieee1394 image imagemagick innodb iodbc jabber java \ javacomm javadoc javamail javascript jboss jce jdepend jikes jp2 \ libcaca libgda log4j lzw lzw-tiff matroska mcal md5sum mhash migemo \ ming mixer mng mono mozilla mozp3p mozsvg mozxmlterm mpeg4 mplayer \ msdav msn mssql music mysqli net netcdf nptl odbc offensive ofx \ ooo-kde openal openssh operanom2 oscar pcntl pcre pear-db pfpro php \ plotutils portaudio posix print pthreads qdbm quotes recode regexp \ rhino samba sasl servlet-2.3 servlet-2.4 session shaper shared \ sharedmem simplexml skey slp smartcard sndfile soap sockets socks5 \ sox speedo spl stroke svg sysvipc szip theora tidy tiff timidity \ tokenizer transcode transparent-proxy type1 ucs4 unicode usb uudeview \ v4l v4l2 vim-with-x wmf wxwindows xalan Xaw3d xerces xforms xine xml \ xmlrpc xprint xsl xvid yahoo yaz yv12 zvbi -gnome -svga -gtk" Please tell me if you need anything more.
Ugh. Okay, this should have bailed. If using NPTL, you should use the new 1.0.1-r2, which is package.masked. I'll look into why you weren't given the appropriate error messages and information regarding this.
Okay, i've just added a better check for NPTL, so when you sync, trying to emerge 1.0.1-r1 should give you an informative message telling you to use the package.masked 1.0.1-r2 version of mono. Please test that if you can before trying -r2.
Nope, the new error message does not appear, and emerge still fails: # emerge sync # emerge mono ... make[1]: Leaving directory `/var/tmp/portage/mono-1.0.1-r1/work/mono-1.0.1' make: *** [all] Error 2 !!! ERROR: dev-dotnet/mono-1.0.1-r1 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! MONO compilation failure The same happens even when I do: # USE="-nptl" emerge mono
It may not have hit your rsync mirror yet. Check the date of the top changelog entry for mono, make sure it shows my latest addition. If not, wait for a while, sync, and try again. If it is there.. well.. sh*t. cause it should die the second it finds the 'nptl' USE flag.
Okay, turns out the configure script was trying really hard to screw things up, and was setting tls to __thread, even though NPTL wasn't there. I just commited a fix for this, so try waiting a bit longer and try then. *sigh*
Seems to work fine now. Thanks ;-)