Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27852 - doomlegacy-1.40-r2 fails to compile with nasm-0.98.37
Summary: doomlegacy-1.40-r2 fails to compile with nasm-0.98.37
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-03 03:48 UTC by Brandy Westcott (RETIRED)
Modified: 2003-09-19 10:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brandy Westcott (RETIRED) gentoo-dev 2003-09-03 03:48:51 UTC
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"
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-09-03 03:56:59 UTC
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 
	# 
 
 
Comment 2 Ahmed Farid 2003-09-03 11:04:31 UTC
i confirm this
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2003-09-05 12:03:29 UTC
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.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2003-09-05 12:04:41 UTC
nasm's problem
Comment 5 SpanKY gentoo-dev 2003-09-19 10:54:39 UTC
.38 fixes this
Comment 6 SpanKY gentoo-dev 2003-09-19 10:56:33 UTC
use .38 !