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 1Ruzhz-0007IM-IK for garchives@archives.gentoo.org; Wed, 08 Feb 2012 05:04:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26BF4E074E; Wed, 8 Feb 2012 05:04:27 +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 C9EEFE06A1 for ; Wed, 8 Feb 2012 05:03:18 +0000 (UTC) Received: by eaak14 with SMTP id k14so11806eaa.40 for ; Tue, 07 Feb 2012 21:03:18 -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=278+e6/qLRSdMkn3GPloavHyEKKODfaQkKSptYQh6LM=; b=p3NlRs0AOctKPOU4lJkLLZrbwHZ0INEJBBdJR+hXhAtmAET07Jo0dRLSc1KjvnNTXN 0uTkX+53St8bZnn/RNP+ULGjz8zGL+mIsoeLoUCTBXzNdO316k6TYUp7wUJg4+qx6ILu VwXDT6f9+6Qcj1Izq8qDB2yQJ2rIe8BTJek7s= 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.14.135.140 with SMTP id u12mr7847617eei.73.1328677397996; Tue, 07 Feb 2012 21:03:17 -0800 (PST) Received: by 10.213.106.20 with HTTP; Tue, 7 Feb 2012 21:03:17 -0800 (PST) In-Reply-To: References: <4F2FE60F.90907@binarywings.net> Date: Tue, 7 Feb 2012 21:03:17 -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: ee7f1601-a126-46ae-95d1-3314c4bfde3e X-Archives-Hash: 828c34df8e803a86237767045f36f4c0 > 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 strange. > I had a similar problem but it had a bad kernel configuration. When I hav= e > 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=3Dnative -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. =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 an emerge = -e >> >> >> world so I don't think anything needs to be re-emerged. =A0Everyth= ing >> >> >> 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/sr= c/jsgcchunk.cpp: >> >> >> In function 'void* MapAlignedPages(size_t, size_t)': >> >> >> >> >> >> >> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/sr= c/jsgcchunk.cpp:243: >> >> >> error: pointer of type 'void *' used in arithmetic >> >> >> >> >> >> >> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/sr= c/jsgcchunk.cpp:243: >> >> >> error: pointer of type 'void *' used in arithmetic >> >> > >> >> > That looks like a change in how the compiler treats bad code, or th= e >> >> > 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 a= n >> >> > error on that. >> >> > >> >> > Are using anything like -Werror and/or -Wall in your CFLAGS? >> >> > >> >> > >> >> > >> >> > >> >> >> >> Yes, enabling --Wno-pointer-arith should help.