This applies to 1.6.3-r2 (~amd64), also: g++ -DP_LINUX=2.6.7-gentoo-r8 -DP_64BIT -ffunction-sections -fdata-sections -D_REENTRANT -Wall -DP_64BIT -DP_USE_PRAGMA -DPHAS_TEMPLATES -I/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib/unix -I/usr/include/pwlib -I/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include -DP_USE_PRAGMA -Os -DNDEBUG -O2 -march=k8 -pipe -fomit-frame-pointer -fweb -ftracer -fPIC -x c++ -c asn_lex.cxx -o obj_linux_x86_64_r/asn_lex.o In file included from /var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib/unix/ptlib/../../contain.h:776, from /var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib/unix/ptlib/contain.h:120, from /var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib.h:139, from asn_lex.l:88: /var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib/contain.inl: In constructor `PAbstractList::PAbstractList()': /var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/include/ptlib/contain.inl:419: warning: right-hand operand of comma has no effect asn_lex.l: In function `int yylex()': asn_lex.l:492: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/pwlib-1.5.2-r3/temp/ccIN4BA9.out file, please attach this to your bugreport. make[1]: *** [obj_linux_x86_64_r/asn_lex.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/pwlib-1.5.2-r3/work/pwlib/tools/asnparser' make: *** [opt] Error 2 !!! ERROR: dev-libs/pwlib-1.5.2-r3 failed. !!! Function src_compile, Line 62, Exitcode 2 !!! make failed
Please provide your emerge info.
Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.7-gentoo-r8) ================================================================= System uname: 2.6.7-gentoo-r8 x86_64 12 Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -fweb -ftracer -fPIC" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer -fweb -ftracer -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache fixpackages keeptemp keepwork sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3ds X aalib acl acpi aim alsa amd64 anthy apache2 apm arts avi berkdb bzlib calendar caps cdr cjk crypt cups directfb dvb dvd dvdr encode esd ethereal faac faad fam fbcon flac foomaticdb ftp gcc gcj gdbm gif gimp gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml icq imap imlib inifile ipv6 jabber java javascript jikes joystick jpeg kde ldap libcaca libg++ libwww live lufsusermount mad maildir matroska mcal md5sum memlimit mikmod mng motif mozcalendar mozdomi mozilla mozp3p mozsvg mozxmlterm mpeg msn mysql nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses net nls nocd oav oggvorbis ooo-kde openal opengl opie oscar oss pam pda pdflib perl php pic png python qt quicktime readline ruby samba scanner sdk sdl session shared skk slang slp snmp socks5 speex spell ssl ssvg tcltk tcpd theora tiff truetype unicode usb v4l v4l2 vhosts vim-with-x virus-scan wmf wxwindows xchattext xml2 xmms xosd xprint xsl xv xvid yahoo zlib"
[ebuild R ] sys-devel/gcc-3.4.0-r6 -bootstrap -build -debug -f77 +gcj +gtk2 -hardened -multilib -n32 -n64 +nls -objc -static -(uclibc) 0 kB [ebuild R ] sys-devel/bison-1.875 +nls -static -(uclibc) 0 kB
it's generally discouraged to put -fPIC in your CFLAGS... other than that i cant say much more than worksforme. perhaps you borked something in your local install?
yeah, i just did an emerge of pwlib using the exact same cflags as you... works fine here. i'm using gcc 3.4.1.
Works with GCC 3.4.1. Perhaps DEPEND on non-3.4.0?
BUG only occurs on <gcc-3.4.0. CANTFIX.
Can be fixed by DEPENDing on a proper version of gcc...