Date: Sat, 15 Aug 2009 14:09:22 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Andreas Tobler <andreast-list@fgznet.ch> Cc: gecko@freebsd.org Subject: Re: firefox3 under powerpc not building Message-ID: <1250359762.23396.28.camel@shumai.marcuscom.com> In-Reply-To: <4A807B1B.20605@fgznet.ch> References: <4A7F1AB0.9040605@fgznet.ch> <4A807B1B.20605@fgznet.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-Ih/I+gl1u7F+SJBpBHZH Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2009-08-10 at 21:55 +0200, Andreas Tobler wrote: > Hi again, >=20 > replying to myself. >=20 >=20 > Andreas Tobler wrote: >=20 > > I can not build firefox3 (3.0.13 and up) under FreeBSD -CURRENT. As far= =20 > > as I tracked down it is an issue in the firefox sources itself. > >=20 > > The last working build I had was 3.0.10. > >=20 > > Here in this area it breaks: > >=20 > > http://mxr.mozilla.org/mozilla1.9.1/diff?file=3D/security/nss/lib/freeb= l/Makefile&diffvar=3Dmozilla1.8.0 > >=20 > > 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 +=3D -D_X86_ > > endif > > endif > > ----- >=20 > It does not work on powerpc since the CPU_ARCH is set to x86 in=20 > security/coreconf/FreeBSD.mk, gah! >=20 > > On powerpc I get the -D_X86_ passed to the compile options, very bad.=20 > > But I do not understand why. Might be that the first filter-out does no= t=20 > > work as expected? > >=20 > > I compared with an x86 build and with an x86_64 build. On the x86 it=20 > > works as expected. But also under der x86_64 it does not do what I=20 > > expect. Under x86_64 I'd expect the -D_X86_ in the compile options, rig= ht? >=20 > The x86_64 case is also clear now, the CPU_ARCH is set to amd64, so the=20 > -D_X86_ is not set. We might need a patch to=20 > security/nss/lib/freebl/Makefile which also includes the amd64 to the=20 > first filter-out above? Like this one: Thanks for these patches. Can you resend them as attachments (or post them) so they can be easily extracted? Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-Ih/I+gl1u7F+SJBpBHZH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkqG+dEACgkQb2iPiv4Uz4c1ZACfYQk/DaHs3w1z8w9XMnGpp8lA 3g0AoIe5MvzglIDnueqznPdV9sdDv69c =LyBV -----END PGP SIGNATURE----- --=-Ih/I+gl1u7F+SJBpBHZH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1250359762.23396.28.camel>