Gentoo Archives: gentoo-user

From: Corentin RIVOT <nutsinutsy@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] firefox-9.0 won't compile
Date: Mon, 06 Feb 2012 15:22:38
Message-Id: CAOs30-_iLLAYprtk8wjrOe6bPHDdWjO0kBVMQdGoH4cQ76tunA@mail.gmail.com
In Reply to: Re: [gentoo-user] firefox-9.0 won't compile by Florian Philipp
1 At first glance firefox uses the arithmetic pointer and Wno-pointer-arith
2 lifts warnings or errors when used.
3 This is what gcc says : error: pointer of type 'void *' used in arithmetic
4
5 What it gives without this flag and Is there a particular reason for using this
6 one ?
7
8 Regards,
9
10
11 On Mon, Feb 6, 2012 at 2:39 PM, Florian Philipp <lists@×××××××××××.net>wrote:
12
13 > Am 06.02.2012 05:56, schrieb Michael Mol:
14 > > On Fri, Feb 3, 2012 at 8:52 PM, Grant <emailgrant@×××××.com> wrote:
15 > >> Does anyone have any ideas on this? I just completed an emerge -e
16 > >> world so I don't think anything needs to be re-emerged. Everything
17 > >> compiles fine except for gcc-4.5.3-r1 (I'm on gcc-4.3.4) and
18 > >> firefox-9.0:
19 > >>
20 > >>
21 > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:
22 > >> In function 'void* MapAlignedPages(size_t, size_t)':
23 > >>
24 > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
25 > >> error: pointer of type 'void *' used in arithmetic
26 > >>
27 > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
28 > >> error: pointer of type 'void *' used in arithmetic
29 > >
30 > > That looks like a change in how the compiler treats bad code, or the
31 > > introduction of bad code in an updated version of Firefox. The
32 > > compiler can't sanely do pointer arithmetic without knowing the
33 > > pointer type. Looks like the version you're compiling with throws an
34 > > error on that.
35 > >
36 > > Are using anything like -Werror and/or -Wall in your CFLAGS?
37 > >
38 > >
39 > >
40 > >
41 >
42 > Yes, enabling --Wno-pointer-arith should help.
43 >
44 > Regards,
45 > Florian Philipp
46 >
47 >

Replies

Subject Author
Re: [gentoo-user] firefox-9.0 won't compile Grant <emailgrant@×××××.com>