public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] chromium-65.0.3325.146 compilation warnings
@ 2018-03-12  8:17 Mick
  2018-03-12  8:27 ` Alexander Kapshuk
  2018-03-12 17:11 ` [gentoo-user] " Nikos Chantziaras
  0 siblings, 2 replies; 5+ messages in thread
From: Mick @ 2018-03-12  8:17 UTC (permalink / raw
  To: gentoo-user

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

I can see a few warnings pilling up on different systems when trying to emerge 
chromium-65.0.3325.146:

warning: unknown warning option '-Wno-enum-compare-switch'; did you mean '-
Wno-enum-compare'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-tautological-unsigned-zero-compare' [-
Wunknown-warning-option]
warning: unknown warning option '-Wno-null-pointer-arithmetic'; did you mean 
'-Wno-null-arithmetic'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-tautological-constant-compare'; did you 
mean '-Wno-tautological-pointer-compare'? [-Wunknown-warning-option]
4 warnings generated.

Does this mean I should be using a different gcc or CFLAGS?

They mostly are:

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

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [gentoo-user] chromium-65.0.3325.146 compilation warnings
  2018-03-12  8:17 [gentoo-user] chromium-65.0.3325.146 compilation warnings Mick
@ 2018-03-12  8:27 ` Alexander Kapshuk
  2018-03-12  8:34   ` Mick
  2018-03-12 17:11 ` [gentoo-user] " Nikos Chantziaras
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Kapshuk @ 2018-03-12  8:27 UTC (permalink / raw
  To: Gentoo mailing list

On Mon, Mar 12, 2018 at 10:17 AM, Mick <michaelkintzios@gmail.com> wrote:
> I can see a few warnings pilling up on different systems when trying to emerge
> chromium-65.0.3325.146:
>
> warning: unknown warning option '-Wno-enum-compare-switch'; did you mean '-
> Wno-enum-compare'? [-Wunknown-warning-option]
> warning: unknown warning option '-Wno-tautological-unsigned-zero-compare' [-
> Wunknown-warning-option]
> warning: unknown warning option '-Wno-null-pointer-arithmetic'; did you mean
> '-Wno-null-arithmetic'? [-Wunknown-warning-option]
> warning: unknown warning option '-Wno-tautological-constant-compare'; did you
> mean '-Wno-tautological-pointer-compare'? [-Wunknown-warning-option]
> 4 warnings generated.
>
> Does this mean I should be using a different gcc or CFLAGS?
>
> They mostly are:
>
> CFLAGS="-march=native -O2 -pipe"
>
> --
> Regards,
> Mick

On my x86 system, I've been seeing similar warnings being generated by
clang when compiling the ffmpeg that comes with chromium.
I've also hit another bug related to that, where clang compilation
terminates with an error message along the lines of there being not
enough registers available.
There's a bug registered for that in chromium bugzilla, which I can't
reference at the moment. So far, no solution has been implemented, as
far as I could tell.


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

* Re: [gentoo-user] chromium-65.0.3325.146 compilation warnings
  2018-03-12  8:27 ` Alexander Kapshuk
@ 2018-03-12  8:34   ` Mick
  0 siblings, 0 replies; 5+ messages in thread
From: Mick @ 2018-03-12  8:34 UTC (permalink / raw
  To: gentoo-user

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

On Monday, 12 March 2018 08:27:31 GMT Alexander Kapshuk wrote:
> On Mon, Mar 12, 2018 at 10:17 AM, Mick <michaelkintzios@gmail.com> wrote:
> > I can see a few warnings pilling up on different systems when trying to
> > emerge chromium-65.0.3325.146:
> > 
> > warning: unknown warning option '-Wno-enum-compare-switch'; did you mean
> > '-
> > Wno-enum-compare'? [-Wunknown-warning-option]
> > warning: unknown warning option '-Wno-tautological-unsigned-zero-compare'
> > [- Wunknown-warning-option]
> > warning: unknown warning option '-Wno-null-pointer-arithmetic'; did you
> > mean '-Wno-null-arithmetic'? [-Wunknown-warning-option]
> > warning: unknown warning option '-Wno-tautological-constant-compare'; did
> > you mean '-Wno-tautological-pointer-compare'? [-Wunknown-warning-option]
> > 4 warnings generated.
> > 
> > Does this mean I should be using a different gcc or CFLAGS?
> > 
> > They mostly are:
> > 
> > CFLAGS="-march=native -O2 -pipe"
> > 
> > --
> > Regards,
> > Mick
> 
> On my x86 system, I've been seeing similar warnings being generated by
> clang when compiling the ffmpeg that comes with chromium.
> I've also hit another bug related to that, where clang compilation
> terminates with an error message along the lines of there being not
> enough registers available.
> There's a bug registered for that in chromium bugzilla, which I can't
> reference at the moment. So far, no solution has been implemented, as
> far as I could tell.

Right, clang's the culprit ... thanks for letting me know.  An amd64 system 
completed the emerge without problems, two others are still chugging along.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* [gentoo-user] Re: chromium-65.0.3325.146 compilation warnings
  2018-03-12  8:17 [gentoo-user] chromium-65.0.3325.146 compilation warnings Mick
  2018-03-12  8:27 ` Alexander Kapshuk
@ 2018-03-12 17:11 ` Nikos Chantziaras
  2018-03-12 18:02   ` Mick
  1 sibling, 1 reply; 5+ messages in thread
From: Nikos Chantziaras @ 2018-03-12 17:11 UTC (permalink / raw
  To: gentoo-user

On 12/03/18 10:17, Mick wrote:
> I can see a few warnings pilling up on different systems when trying to emerge
> chromium-65.0.3325.146:
> 
> warning: unknown warning option '-Wno-enum-compare-switch'; did you mean '-
> Wno-enum-compare'? [-Wunknown-warning-option]
> warning: unknown warning option '-Wno-tautological-unsigned-zero-compare' [-
> Wunknown-warning-option]
> warning: unknown warning option '-Wno-null-pointer-arithmetic'; did you mean
> '-Wno-null-arithmetic'? [-Wunknown-warning-option]
> warning: unknown warning option '-Wno-tautological-constant-compare'; did you
> mean '-Wno-tautological-pointer-compare'? [-Wunknown-warning-option]
> 4 warnings generated.
> 
> Does this mean I should be using a different gcc or CFLAGS?

No. What these warnings mean is that the chromium build system is
passing these options to the compiler:

   -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare
   -Wno-null-pointer-arithmetic -Wno-tautological-constant-compare

but the compiler version installed on your system doesn't support them.

Your own CFLAGS got nothing to do with this. Furthermore, these warnings 
are of no interest to you whatsoever, unless you're a chromium developer.

GCC 7.3 and Clang 6.0 do support these options, but if you're using a 
version that doesn't, it's of no consequence. Warning options do not 
affect code generation.



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

* Re: [gentoo-user] Re: chromium-65.0.3325.146 compilation warnings
  2018-03-12 17:11 ` [gentoo-user] " Nikos Chantziaras
@ 2018-03-12 18:02   ` Mick
  0 siblings, 0 replies; 5+ messages in thread
From: Mick @ 2018-03-12 18:02 UTC (permalink / raw
  To: gentoo-user

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

On Monday, 12 March 2018 17:11:16 GMT Nikos Chantziaras wrote:

> No. What these warnings mean is that the chromium build system is
> passing these options to the compiler:
> 
>    -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare
>    -Wno-null-pointer-arithmetic -Wno-tautological-constant-compare
> 
> but the compiler version installed on your system doesn't support them.
> 
> Your own CFLAGS got nothing to do with this. Furthermore, these warnings
> are of no interest to you whatsoever, unless you're a chromium developer.

I don't believe I possess the abilities to be developer.  :-)


> GCC 7.3 and Clang 6.0 do support these options, but if you're using a
> version that doesn't, it's of no consequence. Warning options do not
> affect code generation.

OK, I think it's clang what done it.  I'm on gcc-7.3.0, but clang-5.0.1.

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2018-03-12 18:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12  8:17 [gentoo-user] chromium-65.0.3325.146 compilation warnings Mick
2018-03-12  8:27 ` Alexander Kapshuk
2018-03-12  8:34   ` Mick
2018-03-12 17:11 ` [gentoo-user] " Nikos Chantziaras
2018-03-12 18:02   ` Mick

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