Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-browser][PATCH 2/4] chromium: gcc-6 support
Date: Wed, 20 Jul 2016 16:13:35 -0400	[thread overview]
Message-ID: <20160720201335.GA23547@openSUSE-i7.site> (raw)
In-Reply-To: <CAMKF1spXxjfGzhg58hHNDcxQaRWWJ4pB36y7WTbpLjBSM_01LA@mail.gmail.com>

On Wed 2016-07-20 @ 12:59:21 PM, Khem Raj wrote:
> On Wed, Jul 20, 2016 at 12:51 PM, Trevor Woerner <twoerner@gmail.com> wrote:
> > Allow chromium to build with gcc-6.
> 
> bunch of patches are deleted. Are they upstreamed ? or how do they
> help compiling chromium with gcc6?

At some point in the past (I could figure out who, but I don't want to give
the impression that I'm pointing fingers) someone added the following line to
the recipe:

	-Ddisable_fatal_linker_warnings=1

The *intention* was to keep the build from failing due to compiler -Werror
issues. For whatever reason this line has no effect on the build; the -Werror
is still used, and builds still fail for annoying, non-critical reasons.
Therefore we've amassed a large set of patches that try to fix these
warnings by either fixing the code itself:


	> > ---- a/third_party/ots/src/name.cc
	> > -+++ b/third_party/ots/src/name.cc
	> > -@@ -79,7 +79,7 @@ bool ots_name_parse(Font *font, const uint8_t* data, size_t length) {
	> > -   const char* string_base = reinterpret_cast<const char*>(data) +
	> > -       string_offset;
	> > -
	> > --  NameRecord prev_record;
	> > -+  NameRecord prev_record(0, 0, 0, 0);
	> > -   bool sort_required = false;
	> > -

or by (more likely) some l337 #pragma tricks:


	> > ---- a/third_party/WebKit/Source/wtf/dtoa/bignum.cc
	> > -+++ b/third_party/WebKit/Source/wtf/dtoa/bignum.cc
	> > -@@ -102,7 +102,10 @@
	> > -     }
	> > -
	> > -
	> > -+#pragma GCC diagnostic push
	> > -+#pragma GCC diagnostic warning "-Wstrict-overflow"
	> > -     void Bignum::AssignDecimalString(Vector<const char> value) {
	> > -+#pragma GCC diagnostic pop
	> > -         // 2^64 = 18446744073709551616 > 10^19
	> > -         const int kMaxUint64DecimalDigits = 19;
	> > -         Zero();
	> > -@@ -696,7 +696,10 @@
	> > -     }

What I've done here is to patch the various BUILD.gn files and *gyp files so
that -Werror is actually removed from our build (which was the original
intent), thereby making a number of subsequent patches superfluous.

Given the chromium developers use a completely different compiler and,
therefore, are unlikely to be tripping over the same warning/error problems we
keep seeing, I believe this is a sensible thing to do. Especially since, going
forward, is reduces the maintanance burden, and (in my opinion) the upstream
developers are probably unlikely to ever accept these sorts of patches anyway.


  reply	other threads:[~2016-07-20 20:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-20 19:51 [meta-browser][PATCH 0/4] chromium updates Trevor Woerner
2016-07-20 19:51 ` [meta-browser][PATCH 1/4] chromium: remove unused patch Trevor Woerner
2016-07-20 19:51 ` [meta-browser][PATCH 2/4] chromium: gcc-6 support Trevor Woerner
2016-07-20 19:59   ` Khem Raj
2016-07-20 20:13     ` Trevor Woerner [this message]
2016-07-20 20:23       ` Khem Raj
2016-07-20 19:52 ` [meta-browser][PATCH 3/4] chromium: split into -wayland and -x11 Trevor Woerner
2016-07-20 20:00   ` Khem Raj
2016-07-20 20:02     ` Khem Raj
2016-07-20 20:16       ` Trevor Woerner
2016-07-20 19:52 ` [meta-browser][PATCH 4/4] chromium-x11: update 48.0.2548.0 -> 52.0.2743.76 Trevor Woerner

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=20160720201335.GA23547@openSUSE-i7.site \
    --to=twoerner@gmail.com \
    --cc=openembedded-devel@lists.openembedded.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