Using nasm-0.98.39-r1.ebuild with ghostscript-esp-7.07.1-r8 installed, the build dies when ps2pdf segfaults. Here's the tail end of a trace: munmap(0x2aaaab2e3000, 4096) = 0 gettimeofday({1146498296, 308827}, {240, 1146498296}) = 0 read(3, "edevice\n.setpagedevice\n%END MEDI"..., 4096) = 4096 read(3, "pop pop\n }\n ifelse\n }\n i"..., 4096) = 4096 brk(0x555556268000) = 0x555556268000 read(3, "exch\n dup length dict"..., 4096) = 3329 read(3, "", 4096) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- Gentoo Base System version 1.6.14 Portage 2.0.54 (default-linux/amd64/2005.0, gcc-3.3.4, glibc-2.3.5-r2, 2.6.15-gentoo-r7halloween x86_64) ================================================================= System uname: 2.6.15-gentoo-r7halloween x86_64 AMD Opteron(tm) Processor 240 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 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-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -g" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks noclean nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org rsync://mirror.mcs.anl.gov/pub/gentoo/ http://rsync.gentoo.com" LDFLAGS="-ggdb" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage.local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aalib aim alsa arts audiofile avi berkdb bitmap-fonts bzip2 cli crypt cscope cups curl debug dga doc dri dv dvd dvdr eds emboss encode esd exif expat fbcon flac foomaticdb fortran gd gdbm gif glut gpm gstreamer gtk hardened idn imagemagick imap imlib ipv6 isdnlog jack java jikes jpeg kde lcms lua lzw lzw-tiff mad maildir matroska matrox mcal mikmod mng mp3 mpeg ncurses nls nocd offensive ogg openal opengl pam pcre pda pdflib perl png pppd python qt quicktime readline recode reflection ruby sdl session slang speex spell spl ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb use videos vorbis xml2 xmms xorg xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS
Your gcc is way outdated and unsupported. Reopen if you can reproduce with latest stable gcc (3.4.5-r1 on x86). http://www.gentoo.org/doc/en/gcc-upgrading.xml
... and 3.4.5 on amd64 ;)