When emerging pm3 (dev-lang), the build stopped with a NIL pointer access error. When building it manually, I didn't have this problem (which was due to my CFLAGS settings) but now the build stopped at m3gdb. So I created a new ebuild which sets CFLAGS to empty and explicitely skips m3gdb. Reproducible: Always Steps to Reproduce: 1. emerge pm3 Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/gentootmp" PORTDIR_OVERLAY="" USE="x86 apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts tetex bonobo svga tcltk guile postgres X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis qt kde motif opengl mozilla -oss -3dnow -java afs alsa cdr dga directfb doc fbcon gtk imap gphoto2 odbc perl usb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer " CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer " ACCEPT_KEYWORDS="x86" MAKEOPTS="-j1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 7973 [details] Changed ebuild for pm3. New ebuild with following changes: 1) CFLAGS="" 2) Add M3OPTIONS to make to set the INSTALL_ROOT and EXPORTPATH and to skip build of m3gdb. 3) Fix creation of /etc/env.d/05pm3
you only have to tweak CFLAGS while using gcc-3.x ... interesting that it finished building at all with gcc-3.x at all though ... :)
Hmm, then there should be a test for the gcc version. But what about the m3gdb problem? I'll do another build with the old ebuild an post the exact error in a few moments. Stay tuned... :-)
reason i didnt put in tests was cause i couldnt get it to build at all with gcc-3.x and who the hell uses modula3 anyways ;)
OK. The problem with m3gdb was in my manual build only. The debian patch in the ebuild switches m3gdb off in src/PACKAGES. So the only remaining thing is the CFLAGS.
could you try tweaking your CFLAGS to see what sets it off ? i think its -O3 or 686 support ... i use -march=i686 and -O3 and it dies for me too ... in other words, see if like `env CFLAGS="-O1" emerge pm3` works, and then -O2, and then -O3, you know ;)
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" emerge pm3: No go CFLAGS="-O1 -march=pentium3 -pipe -fomit-frame-pointer" emerge pm3: Works fine
ok, added fixes and then some to pm3 ... thanks for this info :) http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-lang/pm3/pm3-1.1.15.ebuild.diff?r1=1.3&r2=1.4 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-lang/pm3/files/pm3-1.1.15.patch.diff?r1=1.1&r2=1.2 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-lang/pm3/files/PACKAGES?rev=1.1&content-type=text/vnd.viewcvs-markup