From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RuT0O-0008RN-Rf for garchives@archives.gentoo.org; Mon, 06 Feb 2012 18:09:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5CADE07DF; Mon, 6 Feb 2012 18:09:13 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 3799CE07AD for ; Mon, 6 Feb 2012 18:06:54 +0000 (UTC) Received: by eaad1 with SMTP id d1so635852eaa.40 for ; Mon, 06 Feb 2012 10:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=EA7+OqK9uqnc8Ipmjq4z3gQ4MtMTuQJmn0AsIw/lxhM=; b=sR1mAvQ3qIJQ01+YsEqmF1Nih+KL8RCTRo2HgvsKhDJ6wb2OtiqApj2u0qXSVVjVnb N9CLZZ0ng9cAqbktiDhs0vqps5JrNlB2jDQ3qh/uckM4VOL32Yjxo5XvmS682BmojiQh FI0yltzptLZ+/kAIrd/NwBEbgdMDllaC8OlWQ= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.213.113.211 with SMTP id b19mr1577356ebq.34.1328551614446; Mon, 06 Feb 2012 10:06:54 -0800 (PST) Received: by 10.213.106.20 with HTTP; Mon, 6 Feb 2012 10:06:54 -0800 (PST) In-Reply-To: References: <4F2FE60F.90907@binarywings.net> Date: Mon, 6 Feb 2012 10:06:54 -0800 Message-ID: Subject: Re: [gentoo-user] firefox-9.0 won't compile From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 92693d6e-2bf1-4774-afd8-21848ae8c4a7 X-Archives-Hash: c86e1e75e1871709fd8bb3a4b1992d45 > At first glance firefox uses the arithmetic pointer and Wno-pointer-arith > lifts warnings or errors when used. > This is what gcc says : error: pointer of type 'void *' used in arithmeti= c > > What it gives without this flag and Is there a particular reason for usin= g > this one ? I'm having trouble following. I'm using: CFLAGS=3D"-march=3Dnative -O2 -pipe" Should I try with different flags? - Grant >> >> Does anyone have any ideas on this? =A0I just completed an emerge -e >> >> world so I don't think anything needs to be re-emerged. =A0Everything >> >> compiles fine except for gcc-4.5.3-r1 (I'm on gcc-4.3.4) and >> >> firefox-9.0: >> >> >> >> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/j= sgcchunk.cpp: >> >> In function 'void* MapAlignedPages(size_t, size_t)': >> >> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/j= sgcchunk.cpp:243: >> >> error: pointer of type 'void *' used in arithmetic >> >> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/j= sgcchunk.cpp:243: >> >> error: pointer of type 'void *' used in arithmetic >> > >> > That looks like a change in how the compiler treats bad code, or the >> > introduction of bad code in an updated version of Firefox. The >> > compiler can't sanely do pointer arithmetic without knowing the >> > pointer type. Looks like the version you're compiling with throws an >> > error on that. >> > >> > Are using anything like -Werror and/or -Wall in your CFLAGS? >> > >> > >> > >> > >> >> Yes, enabling --Wno-pointer-arith should help. >> >> Regards, >> Florian Philipp