Closed Bug 200068 Opened 23 years ago Closed 23 years ago

build failure : prdtoa.c

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: latexer, Assigned: bryner)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5 Build Identifier: CVS checkout from tonight fails to build. Yields the following error: make[5]: Entering directory `/var/tmp/portage/phoenix-cvs-0.5-r2/work/mozilla/nsprpub/pr/src/misc' gcc -o prdtoa.o -c -march=pentium3 -O3 -pipe -msse -msse2 -mmmx -funroll-loops -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -s -pipe -ansi -pthread -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/var/tmp/portage/phoenix-cvs-0.5-r2/work/mozilla/dist/include/nspr -I../../../pr/include -I../../../pr/include/private prdtoa.c {standard input}: Assembler messages: {standard input}:4390: Error: suffix or operands invalid for `movd' {standard input}:5735: Error: suffix or operands invalid for `movd' {standard input}:6672: Error: suffix or operands invalid for `movd' make[5]: *** [prdtoa.o] Error 1 make[5]: Leaving directory `/var/tmp/portage/phoenix-cvs-0.5-r2/work/mozilla/nsprpub/pr/src/misc' make[4]: *** [export] Error 2 make[4]: Leaving directory `/var/tmp/portage/phoenix-cvs-0.5-r2/work/mozilla/nsprpub/pr/src' make[3]: *** [export] Error 2 make[3]: Leaving directory `/var/tmp/portage/phoenix-cvs-0.5-r2/work/mozilla/nsprpub/pr' make[2]: *** [export] Error 2 make[2]: Leaving directory `/var/tmp/portage/phoenix-cvs-0.5-r2/work/mozilla/nsprpub' make[1]: *** [nspr] Error 2 make[1]: Leaving directory `/var/tmp/portage/phoenix-cvs-0.5-r2/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/phoenix-cvs-0.5-r2 failed. !!! Function src_compile, Line 134, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Error Expected Results: Compile sucka!
Can you provide additional details about your configuration? Specifically, your version of gcc, binutils, and what method you used to pull the source tree.
Looking at this again, this almost certainly seems like a compiler/binutils problem. It looks like the compiler is outputting assembly that the assembler doesn't like. Perhaps the compiler flags you're using (-march=pentium3 -O3 -pipe -msse -msse2 -mmmx) require a more recent binutils than what you have? At any rate I don't think it's a Mozilla or NSPR bug.
The whole gcc -mfpmath=sse thing is quite buggy. I've tried a number of packages and very few actually build. In this case you actually need -march=pentium4 because that's the only Intel cpu that supports sse2. You won't be able to build mozilla, though. It will probably die in jsdtoa.c. This isn't a mozilla bug.
Resolving as of comment 2 and comment 3.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.