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: Wed, 08 Feb 2012 11:26:28
Message-Id: CAOs30-8zUqeoosGpPcsc5toH7dSWhTBJJHBq-hhg_DcQPiGngg@mail.gmail.com
In Reply to: Re: [gentoo-user] firefox-9.0 won't compile by Grant
1 Looks your variable MAKEOPT in make.conf. Decrease the "-jX" flag for "-j1"
2 can solve the problem but your problem it's still strange.
3 It is possible that this comes from a lack of ram.
4
5 regards,
6
7 On Wed, Feb 8, 2012 at 5:03 AM, Grant <emailgrant@×××××.com> wrote:
8
9 > > I'using CFLAGS="-march=core2 -O2 -pipe -msse4.1"
10 > >
11 > > Firefox builds with success for me. gcc is 4.5.3 for me. It's strange.
12 > > I had a similar problem but it had a bad kernel configuration. When I
13 > have
14 > > this problem it's gcc receive SIGSEV signal.
15 > > I don't think that you have the same problem like me.
16 > > I test in a virtual machine and firefox compile with success: CFLAGS are
17 > > "-march=native -pipe -O2"
18 > >
19 > > I've not really idea for your problem :/
20 >
21 > Thanks everyone for the help with this. I was able to compile
22 > gcc-4.5.3-r1 and now it looks like firefox-9.0 will compile if I can
23 > keep it from running out of memory. I'm going to compile without
24 > -pipe soon and if that doesn't work I've got more RAM on the way.
25 >
26 > - Grant
27 >
28 >
29 > >> > At first glance firefox uses the arithmetic pointer and
30 > >> > Wno-pointer-arith
31 > >> > lifts warnings or errors when used.
32 > >> > This is what gcc says : error: pointer of type 'void *' used in
33 > >> > arithmetic
34 > >> >
35 > >> > What it gives without this flag and Is there a particular reason for
36 > >> > using
37 > >> > this one ?
38 > >>
39 > >> I'm having trouble following. I'm using:
40 > >>
41 > >> CFLAGS="-march=native -O2 -pipe"
42 > >>
43 > >> Should I try with different flags?
44 > >>
45 > >> - Grant
46 > >>
47 > >>
48 > >> >> >> Does anyone have any ideas on this? I just completed an emerge -e
49 > >> >> >> world so I don't think anything needs to be re-emerged.
50 > Everything
51 > >> >> >> compiles fine except for gcc-4.5.3-r1 (I'm on gcc-4.3.4) and
52 > >> >> >> firefox-9.0:
53 > >> >> >>
54 > >> >> >>
55 > >> >> >>
56 > >> >> >>
57 > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:
58 > >> >> >> In function 'void* MapAlignedPages(size_t, size_t)':
59 > >> >> >>
60 > >> >> >>
61 > >> >> >>
62 > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
63 > >> >> >> error: pointer of type 'void *' used in arithmetic
64 > >> >> >>
65 > >> >> >>
66 > >> >> >>
67 > /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
68 > >> >> >> error: pointer of type 'void *' used in arithmetic
69 > >> >> >
70 > >> >> > That looks like a change in how the compiler treats bad code, or
71 > the
72 > >> >> > introduction of bad code in an updated version of Firefox. The
73 > >> >> > compiler can't sanely do pointer arithmetic without knowing the
74 > >> >> > pointer type. Looks like the version you're compiling with throws
75 > an
76 > >> >> > error on that.
77 > >> >> >
78 > >> >> > Are using anything like -Werror and/or -Wall in your CFLAGS?
79 > >> >> >
80 > >> >> >
81 > >> >> >
82 > >> >> >
83 > >> >>
84 > >> >> Yes, enabling --Wno-pointer-arith should help.
85 >
86 >