First one was wings, every time I tried to start it was a crash for the whole system, sometimes rebooting and sometimes just freezing everything. I rollbacked my nvidia drivers to find the situation was the same. Then I tried emerge -1 erlang. First I noticed that epoll patch file format wasn't recognized, and this was ignored during emerge. Then it crashed during emerge. I tried many times to reemerge and it crashed all the times (at configure time): logging showed me these lines: checking sys/epoll.h usability... yes checking sys/epoll.h presence... yes checking for sys/epoll.h... yes checking for SO_BSDCOMPAT declaration... yes checking for INADDR_LOOPBACK in netinet/in.h... yes checking for sys_errlist declaration in stdio.h or errno.h... yes checking for working const... yes checking return type of signal handlers... void checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking whether struct sockaddr has sa_len field... no checking for struct exception (and matherr function)... yes checking size of char... 1 checking size of short... 2 checking size of int... 4 checking size of long... 4 checking size of void *... at this point cwhole system crashes. It can be gcc-4.1/my system compromised but my opinion is that epoll patch may be involved. emerge info: Portage 2.1_pre9-r4 (default-linux/x86/2005.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-r3 i686) ================================================================= System uname: 2.6.16-gentoo-r3 i686 AMD Sempron(tm) Processor 3100+ Gentoo Base System version 1.12.0_pre18 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo/ http://ftp.heanet.ie/pub/gentoo/" LANG="it_IT@euro" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex 3dnowext X aalib acl acpi acpi4linux alsa apm audiofile avi berkdb bitmap-fonts bzip2 cli crypt cups curl divx4linux dri dts dvb dvd dvdr dvdread eds emboss encode esd exif expat ffmpeg flac foomaticdb fortran gdbm gif gimp glut gnome gphoto2 gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib isdnlog java joystick jpeg kde lcms libg++ libwww lirc live lm_sensors mad matroska mikmod mmx mmx2 mmxext mng motif mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis ogre opengl oss pam pcre pdflib perl png pppd python qt quicktime readline real reflection scanner sdl session spell spl sse sse-filters sse2 ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32codecs wxgtk1 xcomposite xine xml2 xmms xorg xscreensaver xv xvid xvmc zlib zvbi elibc_glibc input_devices_mouse input_devices_keyboard input_devices_wacom kernel_linux linguas_it userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_vga" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS
hum, no the epoll patch seems already applied, the unrecognized format was about unpack. So I'm without clues....
more info : basically in the configure logs I found it got an error since couldn't find pthread/mit/pthread.h and nptl/pthread.h files. these were the config.log files cointaining "checking size of void" : erts/config.log: configure: In function 'main': configure:4459: warning: incompatible implicit declaration of built-in function 'exit' configure:4484: checking size of void * configure:4503: gcc -o conftest -O2 -march=athlon-xp -pipe -fomit-frame-pointer -I/var/tmp/portage/erlang-10.2.10/work/otp_src_R10B-10/erts/i686-pc-linux-gnu -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE conftest.c -ldl -lm 1>&5 configure: In function 'main': configure:4497: warning: incompatible implicit declaration of built-in function 'exit' lib/erl_interface/config.log: configure:2593: checking for pthread.h configure:2603: gcc -E conftest.c >/dev/null 2>conftest.out configure:2629: checking for pthread/mit/pthread.h configure:2639: gcc -E conftest.c >/dev/null 2>conftest.out configure:2635:33: error: pthread/mit/pthread.h: No such file or directory configure: failed program was: #line 2634 "configure" #include "confdefs.h" #include <pthread/mit/pthread.h> configure:2668: checking for Native POSIX Thread Library configure:2679: checking for nptl/pthread.h configure:2689: gcc -E conftest.c >/dev/null 2>conftest.out configure:2685:26: error: nptl/pthread.h: No such file or directory configure: failed program was: #line 2684 "configure" #include "confdefs.h" #include <nptl/pthread.h>
Thanks to gentoo-dev I now know these files belongs to glibc + nptl use flag. But my glibc-2.4-r1 HAS nptl and nptlonly...... so I guess the issue is incompatibility with glibc-2.4 .
Not sure about what changed, but now erlang compiles fine. Suspected packages that I udpated (all from unstable to another newer unstable release) are: gcc (4.1) glibc (new patchset) linux-headers pax-utils gentoo-sources