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 1RumDO-0007K4-Px for garchives@archives.gentoo.org; Tue, 07 Feb 2012 14:40:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32380E068F; Tue, 7 Feb 2012 14:40:00 +0000 (UTC) Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id E1BE6E064B for ; Tue, 7 Feb 2012 14:38:36 +0000 (UTC) Received: by lahd3 with SMTP id d3so4857518lah.40 for ; Tue, 07 Feb 2012 06:38:35 -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; bh=+nUX23sqn+s7IcprnEwnIs/Y9okN00vmlTW/8iRkoks=; b=ESMpUufH5gABGhXIKGwP4qm72ZXP18eS2s35g1Wy15Okq1b9m2mTogp1UeCI4lJ1jq 1lGGaR1utjFfWYCdnqsKEPiDkH9AdaFi3khiB6XM9RlyNd9PVeYsZWjEkVlGsT8fTVvX 7/uTzaCuvljG/sJV2po99AklyZB/ZGiXviElk= 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.112.41.169 with SMTP id g9mr6453291lbl.94.1328625515911; Tue, 07 Feb 2012 06:38:35 -0800 (PST) Received: by 10.152.113.164 with HTTP; Tue, 7 Feb 2012 06:38:35 -0800 (PST) In-Reply-To: References: <4F2FE60F.90907@binarywings.net> Date: Tue, 7 Feb 2012 14:38:35 +0000 Message-ID: Subject: Re: [gentoo-user] firefox-9.0 won't compile From: Corentin RIVOT To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=e0cb4efe338aea596404b860bbf6 X-Archives-Salt: 99d4de92-26b4-48a7-9a84-9fe8502c9d33 X-Archives-Hash: fee590594277d55d4d3091b25e7deeb5 --e0cb4efe338aea596404b860bbf6 Content-Type: text/plain; charset=ISO-8859-1 I'using CFLAGS="-march=core2 -O2 -pipe -msse4.1" Firefox builds with success for me. gcc is 4.5.3 for me. It's strange. I had a similar problem but it had a bad kernel configuration. When I have this problem it's gcc receive SIGSEV signal. I don't think that you have the same problem like me. I test in a virtual machine and firefox compile with success: CFLAGS are "-march=native -pipe -O2" I've not really idea for your problem :/ On Mon, Feb 6, 2012 at 6:06 PM, Grant wrote: > > 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 > arithmetic > > > > What it gives without this flag and Is there a particular reason for > using > > this one ? > > I'm having trouble following. I'm using: > > CFLAGS="-march=native -O2 -pipe" > > Should I try with different flags? > > - Grant > > > >> >> Does anyone have any ideas on this? I just completed an emerge -e > >> >> world so I don't think anything needs to be re-emerged. Everything > >> >> 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/jsgcchunk.cpp: > >> >> In function 'void* MapAlignedPages(size_t, size_t)': > >> >> > >> >> > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243: > >> >> error: pointer of type 'void *' used in arithmetic > >> >> > >> >> > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.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 > > --e0cb4efe338aea596404b860bbf6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'using CFLAGS=3D"-march=3Dcore2 -O2 -pipe -msse4.1"

F= irefox builds with success for me. gcc is 4.5.3 for me. It's strange.I had<= /span> a similar problem but it had a bad kernel configuration. When I= have this problem it's gcc receive SIGSEV signal.
I don't think that you have the same problem like me.
I test i= n a virtual machine and firefox compile with success: CFLAGS are "-mar= ch=3Dnative -pipe -O2"

I've not really idea for your problem :/

On Mon, Feb 6, 2012 at 6:06 PM, Grant <emailgrant@gmail.com>= wrote:
> At first glance firef= ox 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 i= n arithmetic
>
> What it gives without this flag and Is there a particular reason for u= sing
> this one ?

I'm having trouble following. =A0I'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 a= n emerge -e
>> >> world so I don't think anything needs to be re-emerge= d. =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-rele= ase/js/src/jsgcchunk.cpp:
>> >> In function 'void* MapAlignedPages(size_t, size_t)= 9;:
>> >>
>> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-rele= ase/js/src/jsgcchunk.cpp:243:
>> >> error: pointer of type 'void *' used in arithmeti= c
>> >>
>> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-rele= ase/js/src/jsgcchunk.cpp:243:
>> >> error: pointer of type 'void *' used in arithmeti= c
>> >
>> > That looks like a change in how the compiler treats bad code,= or the
>> > introduction of bad code in an updated version of Firefox. Th= e
>> > compiler can't sanely do pointer arithmetic without knowi= ng the
>> > pointer type. Looks like the version you're compiling wit= h throws an
>> > error on that.
>> >
>> > Are using anything like -Werror and/or -Wall in your CFLAGS?<= br> >> >
>> >
>> >
>> >
>>
>> Yes, enabling --Wno-pointer-arith should help.
>>
>> Regards,
>> Florian Philipp


--e0cb4efe338aea596404b860bbf6--