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 1Rv5fP-0005IL-Gb for garchives@archives.gentoo.org; Wed, 08 Feb 2012 11:26:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BE2A2E06CC; Wed, 8 Feb 2012 11:26:16 +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 181F4E063E for ; Wed, 8 Feb 2012 11:25:15 +0000 (UTC) Received: by lahd3 with SMTP id d3so436472lah.40 for ; Wed, 08 Feb 2012 03:25:15 -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=miHb11bQj/UWfBVx2nDS+x8yXNjzX7bW/hlz39/Bpxw=; b=EyDaCr+mvV6XIOT+tcmhKUgt6QXUxgtC3ibZcsi+U1tsLVvy1h0GeiDMuiC3a3Vztt fnH9G6QuTvHTAPFQgsndiqJOhPHnm4JhpTwH7jbf/y7AI+FQ9R1Bp4FsvGBrkOH8gsYc JD8OgdM7GTtManur1omQ3W1xmOPahC23oWDec= 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.152.134.200 with SMTP id pm8mr5233750lab.34.1328700315110; Wed, 08 Feb 2012 03:25:15 -0800 (PST) Received: by 10.152.113.164 with HTTP; Wed, 8 Feb 2012 03:25:15 -0800 (PST) In-Reply-To: References: <4F2FE60F.90907@binarywings.net> Date: Wed, 8 Feb 2012 11:25:15 +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=f46d042fde2e4b8dbe04b87226bf X-Archives-Salt: 23fae746-f822-4065-9fb9-b969944d79ae X-Archives-Hash: 09d6d70ff320a4b1eb990a4b8b92810d --f46d042fde2e4b8dbe04b87226bf Content-Type: text/plain; charset=ISO-8859-1 Looks your variable MAKEOPT in make.conf. Decrease the "-jX" flag for "-j1" can solve the problem but your problem it's still strange. It is possible that this comes from a lack of ram. regards, On Wed, Feb 8, 2012 at 5:03 AM, Grant wrote: > > 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 :/ > > Thanks everyone for the help with this. I was able to compile > gcc-4.5.3-r1 and now it looks like firefox-9.0 will compile if I can > keep it from running out of memory. I'm going to compile without > -pipe soon and if that doesn't work I've got more RAM on the way. > > - Grant > > > >> > 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. > > --f46d042fde2e4b8dbe04b87226bf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Looks your variable MAKEOPT in make.conf. Decrease the "-jX" flag= for "-j1" can solve the problem but your problem it's still = strange.
It is possible that this comes from a lack of ram.

regards,

On Wed, Feb 8= , 2012 at 5:03 AM, Grant <emailgrant@gmail.com> wrote:
> I'using CFLAGS=3D"-march=3Dcore2 -O2 -pipe = -msse4.1"
>
> Firefox builds with success for me. gcc is 4.5.3 for me. It's stra= nge.
> 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 a= re
> "-march=3Dnative -pipe -O2"
>
> I've not really idea for your problem :/

Thanks everyone for the help with this. =A0I was able to compile
gcc-4.5.3-r1 and now it looks like firefox-9.0 will compile if I can
keep it from running out of memory. =A0I'm going to compile without
-pipe soon and if that doesn't work I've got more RAM on the way.
- Grant


>> > 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 *= 9; used in
>> > arithmetic
>> >
>> > What it gives without this flag and Is there a particular rea= son for
>> > using
>> > 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 co= mpleted 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 o= n gcc-4.3.4) and
>> >> >> firefox-9.0:
>> >> >>
>> >> >>
>> >> >>
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/moz= illa-release/js/src/jsgcchunk.cpp:
>> >> >> In function 'void* MapAlignedPages(size_t, s= ize_t)':
>> >> >>
>> >> >>
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/moz= illa-release/js/src/jsgcchunk.cpp:243:
>> >> >> error: pointer of type 'void *' used in = arithmetic
>> >> >>
>> >> >>
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/moz= illa-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 Fi= refox. The
>> >> > compiler can't sanely do pointer arithmetic with= out knowing the
>> >> > pointer type. Looks like the version you're comp= iling with throws an
>> >> > error on that.
>> >> >
>> >> > Are using anything like -Werror and/or -Wall in your= CFLAGS?
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >> Yes, enabling --Wno-pointer-arith should help.


--f46d042fde2e4b8dbe04b87226bf--