firefox3 under powerpc not building

Andreas Tobler andreast-list at fgznet.ch
Sun Aug 9 19:28:44 UTC 2009


Hi,

I can not build firefox3 (3.0.13 and up) under FreeBSD -CURRENT. As far 
as I tracked down it is an issue in the firefox sources itself.

The last working build I had was 3.0.10.

Here in this area it breaks:

http://mxr.mozilla.org/mozilla1.9.1/diff?file=/security/nss/lib/freebl/Makefile&diffvar=mozilla1.8.0

The below snippet does somehow not work.
-----
# some code wants _X86_ defined for intel CPUs.
# coreconf does this for windows, but not for Linux, FreeBSD, etc.
ifeq (,$(filter-out x86 x86_64,$(CPU_ARCH)))
ifneq (,$(filter-out WIN%,$(OS_TARGET)))
         DEFINES += -D_X86_
endif
endif
-----

On powerpc I get the -D_X86_ passed to the compile options, very bad. 
But I do not understand why. Might be that the first filter-out does not 
work as expected?

I compared with an x86 build and with an x86_64 build. On the x86 it 
works as expected. But also under der x86_64 it does not do what I 
expect. Under x86_64 I'd expect the -D_X86_ in the compile options, right?

Could you please enlight me here?

If you need further information I'm happy to provide it.

TIA,
Andreas

ppc machine:

FreeBSD wolfram.andreas.nets 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r196039M: 
Mon Aug  3 09:30:09 CEST 2009 
andreast at wolfram.andreas.nets:/usr/obj/export/devel/src/sys/ANDREAST_ppc_pb 
  powerpc



More information about the freebsd-gecko mailing list