From: Corentin RIVOT <nutsinutsy@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] firefox-9.0 won't compile
Date: Tue, 7 Feb 2012 14:38:35 +0000 [thread overview]
Message-ID: <CAOs30-93gyfz_3uPzjcwk9d908ZzAtT9T4L9Ozvd8AzVaM_gEg@mail.gmail.com> (raw)
In-Reply-To: <CAN0CFw1Wht5LX+8YszChb1+njo=K=-rU2y1BoENdom-141rF8w@mail.gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2012-02-07 14:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-02-08 5:03 ` Grant
2012-02-08 11:25 ` Corentin RIVOT
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOs30-93gyfz_3uPzjcwk9d908ZzAtT9T4L9Ozvd8AzVaM_gEg@mail.gmail.com \
--to=nutsinutsy@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox