The doomlegacy compile dies with a segmentation fault when using nasm-0.98.37. doomlegacy does compile ok using nasm-0.98.36. Reproducible: Always Steps to Reproduce: 1. emerge nasm-0.98.37 2. emerge doomlegacy Actual Results: nasm -o objs/tmap.o -f elf -DLINUX tmap.nas tmap.nas:133: warning: section attributes ignored on redeclaration of section `.data' tmap.nas:873: warning: section attributes ignored on redeclaration of section `.data' tmap.nas:1104: warning: section attributes ignored on redeclaration of section `.data' make: *** [objs/tmap.o] Segmentation fault make: *** Deleting file `objs/tmap.o' !!! ERROR: app-games/doomlegacy-1.40-r2 failed. !!! Function src_compile, Line 79, Exitcode 2 !!! build failed Expected Results: doomlegacy to compile ok. Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6) ================================================================= System uname: 2.4.20-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-pipe" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" CXXFLAGS="-pipe" FEATURES="sandbox autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif gpm jpeg gnome libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts bonobo svga java X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl 3dfx cdr doc dvd sse tcltk tetex -3dnow"
In this particular case nasm-0.98.37 doesn't seem to like the -DLINUX macro: # cd /var/tmp/portage/doomlegacy-1.40-r2/work/doomlegacy_src # nasm -o objs/tmap.o -f elf -DLINUX tmap.nas tmap.nas:133: warning: section attributes ignored on redeclaration of section `.data' tmap.nas:873: warning: section attributes ignored on redeclaration of section `.data' tmap.nas:1104: warning: section attributes ignored on redeclaration of section `.data' Segmentation fault # # nasm -o objs/tmap.o -DLINUX tmap.nas tmap.nas:133: warning: ignoring unknown section attribute: "write" tmap.nas:219: error: binary output format does not support external references ..... tmap.nas:1145: error: binary output format does not support external references tmap.nas:1223: error: binary output format does not support external references # # nasm -o objs/tmap.o -f elf tmap.nas #
i confirm this
nasm-0.98.37's -f elf support is totally broken. I've masked this version of nasm in package.mask. I'm going to close this bug because it's not really a game bug and will hopefully be resolved with the next release of nasm.
nasm's problem
.38 fixes this
use .38 !