From owner-freebsd-amd64@FreeBSD.ORG Thu Aug 28 16:43:02 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55109106567D; Thu, 28 Aug 2008 16:43:02 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from parsely.rain.com (parsely.rain.com [199.26.172.196]) by mx1.freebsd.org (Postfix) with ESMTP id C2B588FC22; Thu, 28 Aug 2008 16:43:01 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by parsely.rain.com (8.11.4/8.11.4) with UUCP id m7SGgt580013; Thu, 28 Aug 2008 09:42:55 -0700 (PDT) (envelope-from freebsd@sopwith.solgatos.com) Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id QAA00630; Thu, 28 Aug 2008 16:41:46 GMT Message-Id: <200808281641.QAA00630@sopwith.solgatos.com> To: freebsd-amd64@freebsd.org, freebsd-alpha@freebsd.org In-reply-to: Your message of "Thu, 28 Aug 2008 14:36:45 -0000." Date: Thu, 28 Aug 2008 09:41:46 +0100 From: Dieter Cc: Subject: Re: firefox3 from ports? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 16:43:02 -0000 [ -alpha@ added ] > > From what I gather the problems could show up on other > > 64-bit platforms. Alignment requirements vary with CPU arch, but is not a 32 vs 64 bit issue. > > warning: cast from ... to ... increases > > required alignment of target type > > No such warnings on amd64. I think they only show up on architectures > that require strict alignment, and amd64 doesn't. > FWIW, building firefox on OpenBSD/alpha and /sparc64 produces lots > of these warnings, but after all the pointer casting games are done, > the actual accesses still come out properly aligned and firefox > runs. Very interesting. Are you saying that the compiler warnings are wrong? Are you saying that a 2nd cast is done before the actual access which undoes the increase in alignment? Do you know for certain that the code in question is getting executed? Given the large amount of code in firefox, and the large number of features, I can imagine that lots of code only gets executed under rare occasions. > > What is the easiest way to build this port with gcc42? Try setting your PATH so that gcc42 is first. Verify by running "gcc -v". Are the alignment warnings the only remaining compiler warnings?