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 |
Thanks everyone for the help with this. I was able to compile |
13 |
gcc-4.5.3-r1 and now it looks like firefox-9.0 will compile if I can |
14 |
keep it from running out of memory. I'm going to compile without |
15 |
-pipe soon and if that doesn't work I've got more RAM on the way. |
16 |
|
17 |
- Grant |
18 |
|
19 |
|
20 |
>> > At first glance firefox uses the arithmetic pointer and |
21 |
>> > Wno-pointer-arith |
22 |
>> > lifts warnings or errors when used. |
23 |
>> > This is what gcc says : error: pointer of type 'void *' used in |
24 |
>> > arithmetic |
25 |
>> > |
26 |
>> > What it gives without this flag and Is there a particular reason for |
27 |
>> > using |
28 |
>> > this one ? |
29 |
>> |
30 |
>> I'm having trouble following. I'm using: |
31 |
>> |
32 |
>> CFLAGS="-march=native -O2 -pipe" |
33 |
>> |
34 |
>> Should I try with different flags? |
35 |
>> |
36 |
>> - Grant |
37 |
>> |
38 |
>> |
39 |
>> >> >> Does anyone have any ideas on this? I just completed an emerge -e |
40 |
>> >> >> world so I don't think anything needs to be re-emerged. Everything |
41 |
>> >> >> compiles fine except for gcc-4.5.3-r1 (I'm on gcc-4.3.4) and |
42 |
>> >> >> firefox-9.0: |
43 |
>> >> >> |
44 |
>> >> >> |
45 |
>> >> >> |
46 |
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp: |
47 |
>> >> >> In function 'void* MapAlignedPages(size_t, size_t)': |
48 |
>> >> >> |
49 |
>> >> >> |
50 |
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243: |
51 |
>> >> >> error: pointer of type 'void *' used in arithmetic |
52 |
>> >> >> |
53 |
>> >> >> |
54 |
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243: |
55 |
>> >> >> error: pointer of type 'void *' used in arithmetic |
56 |
>> >> > |
57 |
>> >> > That looks like a change in how the compiler treats bad code, or the |
58 |
>> >> > introduction of bad code in an updated version of Firefox. The |
59 |
>> >> > compiler can't sanely do pointer arithmetic without knowing the |
60 |
>> >> > pointer type. Looks like the version you're compiling with throws an |
61 |
>> >> > error on that. |
62 |
>> >> > |
63 |
>> >> > Are using anything like -Werror and/or -Wall in your CFLAGS? |
64 |
>> >> > |
65 |
>> >> > |
66 |
>> >> > |
67 |
>> >> > |
68 |
>> >> |
69 |
>> >> Yes, enabling --Wno-pointer-arith should help. |