1 |
I'using CFLAGS="-march=core2 -O2 -pipe -msse4.1" |
2 |
|
3 |
Firefox builds with success for me. gcc is 4.5.3 for me. It's strange. |
4 |
I had a similar problem but it had a bad kernel configuration. When I have |
5 |
this problem it's gcc receive SIGSEV signal. |
6 |
I don't think that you have the same problem like me. |
7 |
I test in a virtual machine and firefox compile with success: CFLAGS are |
8 |
"-march=native -pipe -O2" |
9 |
|
10 |
I've not really idea for your problem :/ |
11 |
|
12 |
On Mon, Feb 6, 2012 at 6:06 PM, Grant <emailgrant@×××××.com> wrote: |
13 |
|
14 |
> > At first glance firefox uses the arithmetic pointer and Wno-pointer-arith |
15 |
> > lifts warnings or errors when used. |
16 |
> > This is what gcc says : error: pointer of type 'void *' used in |
17 |
> arithmetic |
18 |
> > |
19 |
> > What it gives without this flag and Is there a particular reason for |
20 |
> using |
21 |
> > this one ? |
22 |
> |
23 |
> I'm having trouble following. I'm using: |
24 |
> |
25 |
> CFLAGS="-march=native -O2 -pipe" |
26 |
> |
27 |
> Should I try with different flags? |
28 |
> |
29 |
> - Grant |
30 |
> |
31 |
> |
32 |
> >> >> Does anyone have any ideas on this? I just completed an emerge -e |
33 |
> >> >> world so I don't think anything needs to be re-emerged. Everything |
34 |
> >> >> compiles fine except for gcc-4.5.3-r1 (I'm on gcc-4.3.4) and |
35 |
> >> >> firefox-9.0: |
36 |
> >> >> |
37 |
> >> >> |
38 |
> >> >> |
39 |
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp: |
40 |
> >> >> In function 'void* MapAlignedPages(size_t, size_t)': |
41 |
> >> >> |
42 |
> >> >> |
43 |
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243: |
44 |
> >> >> error: pointer of type 'void *' used in arithmetic |
45 |
> >> >> |
46 |
> >> >> |
47 |
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243: |
48 |
> >> >> error: pointer of type 'void *' used in arithmetic |
49 |
> >> > |
50 |
> >> > That looks like a change in how the compiler treats bad code, or the |
51 |
> >> > introduction of bad code in an updated version of Firefox. The |
52 |
> >> > compiler can't sanely do pointer arithmetic without knowing the |
53 |
> >> > pointer type. Looks like the version you're compiling with throws an |
54 |
> >> > error on that. |
55 |
> >> > |
56 |
> >> > Are using anything like -Werror and/or -Wall in your CFLAGS? |
57 |
> >> > |
58 |
> >> > |
59 |
> >> > |
60 |
> >> > |
61 |
> >> |
62 |
> >> Yes, enabling --Wno-pointer-arith should help. |
63 |
> >> |
64 |
> >> Regards, |
65 |
> >> Florian Philipp |
66 |
> |
67 |
> |