public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] firefox-9.0 won't compile
@ 2012-02-04  1:52 Grant
  2012-02-06  4:56 ` Michael Mol
  0 siblings, 1 reply; 8+ messages in thread
From: Grant @ 2012-02-04  1:52 UTC (permalink / raw
  To: Gentoo mailing list

Does anyone have any ideas on this?  I just completed an emerge -e
world so I don't think anything needs to be re-emerged.  Everything
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/src/jsgcchunk.cpp:
In function 'void* MapAlignedPages(size_t, size_t)':
/var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
error: pointer of type 'void *' used in arithmetic
/var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
error: pointer of type 'void *' used in arithmetic
make[5]: *** [jsgcchunk.o] Error 1
make[5]: Leaving directory
`/var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/obj-i686-pc-linux-gnu/js/src'
make[4]: *** [libs_tier_js] Error 2
make[4]: Leaving directory
`/var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/obj-i686-pc-linux-gnu'
make[3]: *** [tier_js] Error 2
make[3]: Leaving directory
`/var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/obj-i686-pc-linux-gnu'
make[2]: *** [default] Error 2
make[2]: Leaving directory
`/var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/obj-i686-pc-linux-gnu'
make[1]: *** [realbuild] Error 2
make[1]: Leaving directory
`/var/tmp/portage/www-client/firefox-9.0/work/mozilla-release'
make: *** [build] Error 2
emake failed

- Grant



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] firefox-9.0 won't compile
  2012-02-04  1:52 [gentoo-user] firefox-9.0 won't compile Grant
@ 2012-02-06  4:56 ` Michael Mol
  2012-02-06 14:39   ` Florian Philipp
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Mol @ 2012-02-06  4:56 UTC (permalink / raw
  To: gentoo-user

On Fri, Feb 3, 2012 at 8:52 PM, Grant <emailgrant@gmail.com> wrote:
> Does anyone have any ideas on this?  I just completed an emerge -e
> world so I don't think anything needs to be re-emerged.  Everything
> 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/src/jsgcchunk.cpp:
> In function 'void* MapAlignedPages(size_t, size_t)':
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> error: pointer of type 'void *' used in arithmetic
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> error: pointer of type 'void *' used in arithmetic

That looks like a change in how the compiler treats bad code, or the
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 an
error on that.

Are using anything like -Werror and/or -Wall in your CFLAGS?




-- 
:wq



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] firefox-9.0 won't compile
  2012-02-06  4:56 ` Michael Mol
@ 2012-02-06 14:39   ` Florian Philipp
  2012-02-06 15:21     ` Corentin RIVOT
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Philipp @ 2012-02-06 14:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

Am 06.02.2012 05:56, schrieb Michael Mol:
> On Fri, Feb 3, 2012 at 8:52 PM, Grant <emailgrant@gmail.com> wrote:
>> Does anyone have any ideas on this?  I just completed an emerge -e
>> world so I don't think anything needs to be re-emerged.  Everything
>> 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/src/jsgcchunk.cpp:
>> In function 'void* MapAlignedPages(size_t, size_t)':
>> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
>> error: pointer of type 'void *' used in arithmetic
>> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
>> error: pointer of type 'void *' used in arithmetic
> 
> That looks like a change in how the compiler treats bad code, or the
> 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 an
> error on that.
> 
> Are using anything like -Werror and/or -Wall in your CFLAGS?
> 
> 
> 
> 

Yes, enabling --Wno-pointer-arith should help.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] firefox-9.0 won't compile
  2012-02-06 14:39   ` Florian Philipp
@ 2012-02-06 15:21     ` Corentin RIVOT
  2012-02-06 18:06       ` Grant
  0 siblings, 1 reply; 8+ messages in thread
From: Corentin RIVOT @ 2012-02-06 15:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]

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 ?

Regards,


On Mon, Feb 6, 2012 at 2:39 PM, Florian Philipp <lists@binarywings.net>wrote:

> Am 06.02.2012 05:56, schrieb Michael Mol:
> > On Fri, Feb 3, 2012 at 8:52 PM, Grant <emailgrant@gmail.com> wrote:
> >> Does anyone have any ideas on this?  I just completed an emerge -e
> >> world so I don't think anything needs to be re-emerged.  Everything
> >> 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/src/jsgcchunk.cpp:
> >> In function 'void* MapAlignedPages(size_t, size_t)':
> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> error: pointer of type 'void *' used in arithmetic
> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> error: pointer of type 'void *' used in arithmetic
> >
> > That looks like a change in how the compiler treats bad code, or the
> > 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 an
> > error on that.
> >
> > Are using anything like -Werror and/or -Wall in your CFLAGS?
> >
> >
> >
> >
>
> Yes, enabling --Wno-pointer-arith should help.
>
> Regards,
> Florian Philipp
>
>

[-- Attachment #2: Type: text/html, Size: 2997 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] firefox-9.0 won't compile
  2012-02-06 15:21     ` Corentin RIVOT
@ 2012-02-06 18:06       ` Grant
  2012-02-07 14:38         ` Corentin RIVOT
  0 siblings, 1 reply; 8+ messages in thread
From: Grant @ 2012-02-06 18:06 UTC (permalink / raw
  To: gentoo-user

> 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.  I'm using:

CFLAGS="-march=native -O2 -pipe"

Should I try with different flags?

- Grant


>> >> Does anyone have any ideas on this?  I just completed an emerge -e
>> >> world so I don't think anything needs to be re-emerged.  Everything
>> >> 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/src/jsgcchunk.cpp:
>> >> In function 'void* MapAlignedPages(size_t, size_t)':
>> >>
>> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
>> >> error: pointer of type 'void *' used in arithmetic
>> >>
>> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
>> >> error: pointer of type 'void *' used in arithmetic
>> >
>> > That looks like a change in how the compiler treats bad code, or the
>> > 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 an
>> > error on that.
>> >
>> > Are using anything like -Werror and/or -Wall in your CFLAGS?
>> >
>> >
>> >
>> >
>>
>> Yes, enabling --Wno-pointer-arith should help.
>>
>> Regards,
>> Florian Philipp



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] firefox-9.0 won't compile
  2012-02-06 18:06       ` Grant
@ 2012-02-07 14:38         ` Corentin RIVOT
  2012-02-08  5:03           ` Grant
  0 siblings, 1 reply; 8+ messages in thread
From: Corentin RIVOT @ 2012-02-07 14:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2208 bytes --]

I'using CFLAGS="-march=core2 -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 have
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=native -pipe -O2"

I've not really idea for your problem :/

On Mon, Feb 6, 2012 at 6:06 PM, Grant <emailgrant@gmail.com> wrote:

> > 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.  I'm using:
>
> CFLAGS="-march=native -O2 -pipe"
>
> Should I try with different flags?
>
> - Grant
>
>
> >> >> Does anyone have any ideas on this?  I just completed an emerge -e
> >> >> world so I don't think anything needs to be re-emerged.  Everything
> >> >> 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/src/jsgcchunk.cpp:
> >> >> In function 'void* MapAlignedPages(size_t, size_t)':
> >> >>
> >> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> >> error: pointer of type 'void *' used in arithmetic
> >> >>
> >> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> >> error: pointer of type 'void *' used in arithmetic
> >> >
> >> > That looks like a change in how the compiler treats bad code, or the
> >> > 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 an
> >> > error on that.
> >> >
> >> > Are using anything like -Werror and/or -Wall in your CFLAGS?
> >> >
> >> >
> >> >
> >> >
> >>
> >> Yes, enabling --Wno-pointer-arith should help.
> >>
> >> Regards,
> >> Florian Philipp
>
>

[-- Attachment #2: Type: text/html, Size: 3499 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] firefox-9.0 won't compile
  2012-02-07 14:38         ` Corentin RIVOT
@ 2012-02-08  5:03           ` Grant
  2012-02-08 11:25             ` Corentin RIVOT
  0 siblings, 1 reply; 8+ messages in thread
From: Grant @ 2012-02-08  5:03 UTC (permalink / raw
  To: gentoo-user

> I'using CFLAGS="-march=core2 -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 have
> 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=native -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.  I'm using:
>>
>> CFLAGS="-march=native -O2 -pipe"
>>
>> Should I try with different flags?
>>
>> - Grant
>>
>>
>> >> >> Does anyone have any ideas on this?  I just completed an emerge -e
>> >> >> world so I don't think anything needs to be re-emerged.  Everything
>> >> >> 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/src/jsgcchunk.cpp:
>> >> >> In function 'void* MapAlignedPages(size_t, size_t)':
>> >> >>
>> >> >>
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
>> >> >> error: pointer of type 'void *' used in arithmetic
>> >> >>
>> >> >>
>> >> >> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
>> >> >> error: pointer of type 'void *' used in arithmetic
>> >> >
>> >> > That looks like a change in how the compiler treats bad code, or the
>> >> > 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 an
>> >> > error on that.
>> >> >
>> >> > Are using anything like -Werror and/or -Wall in your CFLAGS?
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >> Yes, enabling --Wno-pointer-arith should help.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] firefox-9.0 won't compile
  2012-02-08  5:03           ` Grant
@ 2012-02-08 11:25             ` Corentin RIVOT
  0 siblings, 0 replies; 8+ messages in thread
From: Corentin RIVOT @ 2012-02-08 11:25 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2882 bytes --]

Looks your variable MAKEOPT in make.conf. Decrease the "-jX" flag for "-j1"
can solve the problem but your problem it's still strange.
It is possible that this comes from a lack of ram.

regards,

On Wed, Feb 8, 2012 at 5:03 AM, Grant <emailgrant@gmail.com> wrote:

> > I'using CFLAGS="-march=core2 -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
> have
> > 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=native -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.  I'm using:
> >>
> >> CFLAGS="-march=native -O2 -pipe"
> >>
> >> Should I try with different flags?
> >>
> >> - Grant
> >>
> >>
> >> >> >> Does anyone have any ideas on this?  I just completed an emerge -e
> >> >> >> world so I don't think anything needs to be re-emerged.
>  Everything
> >> >> >> 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/src/jsgcchunk.cpp:
> >> >> >> In function 'void* MapAlignedPages(size_t, size_t)':
> >> >> >>
> >> >> >>
> >> >> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> >> >> error: pointer of type 'void *' used in arithmetic
> >> >> >>
> >> >> >>
> >> >> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> >> >> error: pointer of type 'void *' used in arithmetic
> >> >> >
> >> >> > That looks like a change in how the compiler treats bad code, or
> the
> >> >> > 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
> an
> >> >> > error on that.
> >> >> >
> >> >> > Are using anything like -Werror and/or -Wall in your CFLAGS?
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> Yes, enabling --Wno-pointer-arith should help.
>
>

[-- Attachment #2: Type: text/html, Size: 4428 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-08 11:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-04  1:52 [gentoo-user] firefox-9.0 won't compile Grant
2012-02-06  4:56 ` Michael Mol
2012-02-06 14:39   ` Florian Philipp
2012-02-06 15:21     ` Corentin RIVOT
2012-02-06 18:06       ` Grant
2012-02-07 14:38         ` Corentin RIVOT
2012-02-08  5:03           ` Grant
2012-02-08 11:25             ` Corentin RIVOT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox