Hi all........

Auke Kok auke.kok at planet.nl
Thu Feb 20 20:48:58 GMT 2003


On Thu, 2003-02-20 at 18:48, rcrongeyer at rpicc.com wrote:
> Ok I got Xft and gtk+-2 installed but Mozilla still fails with this:
> jsdtoa.c
> gcc -o jsdtoa.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI
> -DEXPORT_JS_API  -DJS_USE_SAFE_ARENA   -I../../dist/include/js
> -I../../dist/include -I/usr/src/mozilla/dist/include/nspr      -I.
> -I/usr/X11R6/include   -fPIC -I/usr/X11R6/include -Wall -W -Wno-unused
> -Wpointer-arith -Wcast-align -Wno-long-long -O3 -mcpu=pentium4
> -march=pentium4 -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections 
> -I/usr/X11R6/include -include ../../mozilla-config.h -DMOZILLA_CLIENT
> -Wp,-MD,.deps/jsdtoa.pp jsdtoa.c
> jsdtoa.c: In function `JS_strtod':
> jsdtoa.c:1239: warning: `rv0' might be used uninitialized in this function
> jsdtoa.c:1874: unable to find a register to spill in class `AREG'
> jsdtoa.c:1874: this is the insn:
> (insn:QI 2402 2401 2403 (set (reg:CCNO 17 flags)
>         (compare:CCNO (and:SI (subreg:SI (reg/v:DI 21 rxmm0 [369]) 0)
>                 (const_int 1 [0x1]))
>             (const_int 0 [0x0]))) 281 {testsi_1} (insn_list 2398 (nil))
>     (expr_list:REG_DEAD (reg/v:DI 21 rxmm0 [369])
>         (nil)))
> jsdtoa.c:1874: confused by earlier errors, bailing out
> make[3]: *** [jsdtoa.o] Error 1
> make[3]: Leaving directory `/usr/src/mozilla/js/src'
> make[2]: *** [libs] Error 2
> make[2]: Leaving directory `/usr/src/mozilla/js'
> make[1]: *** [tier_2] Error 2
> make[1]: Leaving directory `/usr/src/mozilla'
> make: *** [default] Error 2
>  ! Problem Detected !
> Creating /var/log/lunar/compile/mozilla-1.2.1.bz2
> 

The problem is not mozilla but gcc:

-O3 -mcpu=pentium4 -march=pentium4

These will fail on mozilla. Try -march=pentium3 or -march=i686, which
*will* work allright. Leave out the sse/sse2 and any other optz to be
sure.

note: apparently amd code doesn't suffer from this and it's specifically
pentium4. Maybe a bugnote to gcc?

sofar



-- 
Auke Kok <auke.kok at planet.nl>



More information about the Lunar mailing list