From: Petr Vorel <petr.vorel@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 5/6] package/uclibc: fix compilation errors
Date: Wed, 9 Sep 2020 07:38:51 +0200 [thread overview]
Message-ID: <20200909053851.GA3515@dell5510> (raw)
In-Reply-To: <20200908220627.GH14354@scaer>
Hi all,
> Damien, All,
> +Petr in Cc.
> Can you guys agree on a set of backports
Damien, I also agree you should sent these two patches also to uclibc-ng mailing
list (I haven't found them there).
I haven't checked the build on high range of archs (only risc64 and intel), but
I suppose these additional two are needed.
> On 2020-09-08 20:33 +0900, Damien Le Moal spake thusly:
> > Add four patches to fix compilation errors when building static no MMU
> > uclibc. The first two patches are upstream uclibc patches on top of
> > version 1.0.35 tag. The following two patches are added here as
> > additional fixes.
> > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
> > ---
> > ...evert-Fix-static-linking-with-GCC-10.patch | 43 ++++++++
> > ...0002-fix-static-builds-with-gcc-10.x.patch | 25 +++++
> > ...-utils-getconf-Fix-compilation-error.patch | 103 ++++++++++++++++++
> > .../0004-librt-avoid-compilation-error.patch | 42 +++++++
> > 4 files changed, 213 insertions(+)
> > create mode 100644 package/uclibc/0001-Revert-Fix-static-linking-with-GCC-10.patch
> > create mode 100644 package/uclibc/0002-fix-static-builds-with-gcc-10.x.patch
> > create mode 100644 package/uclibc/0003-utils-getconf-Fix-compilation-error.patch
> > create mode 100644 package/uclibc/0004-librt-avoid-compilation-error.patch
> > diff --git a/package/uclibc/0001-Revert-Fix-static-linking-with-GCC-10.patch b/package/uclibc/0001-Revert-Fix-static-linking-with-GCC-10.patch
> > new file mode 100644
> > index 0000000000..6adc827308
> > --- /dev/null
> > +++ b/package/uclibc/0001-Revert-Fix-static-linking-with-GCC-10.patch
> > @@ -0,0 +1,43 @@
> > +From e80384786d7b7f895c97f2447d4b91af8eb5f0f4 Mon Sep 17 00:00:00 2001
> > +From: Waldemar Brodkorb <wbx@openadk.org>
> > +Date: Wed, 2 Sep 2020 09:45:17 +0200
> > +Subject: [PATCH 1/4] Revert "Fix static linking with GCC-10"
> > +
> > +This reverts commit 5b58a1ebd89a4f05778441814e81817c82193fa3.
> > +
> > +This breaks all static builds earlier to gcc 10 :(
> > +Bad testing on my side.
> We need that the patches you backport carry your own sob-line, as well
> as an pointer to upstream:
> [Damien: backport from https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=e80384786d7b7f895c97f2447d4b91af8eb5f0f4]
> Signed-off-by: Your NAME <your@email>
> Applies to the secon backported patch as well.
I'm sorry, I forget this in my patchset as well.
> [--SNIP--]
> > diff --git a/package/uclibc/0003-utils-getconf-Fix-compilation-error.patch b/package/uclibc/0003-utils-getconf-Fix-compilation-error.patch
> > new file mode 100644
> > index 0000000000..2fc86d6161
> > --- /dev/null
> > +++ b/package/uclibc/0003-utils-getconf-Fix-compilation-error.patch
> > @@ -0,0 +1,103 @@
> > +From 684b80c97a38033cf0065537783ecf29bc2251ee Mon Sep 17 00:00:00 2001
> > +From: Damien Le Moal <damien.lemoal@wdc.com>
> > +Date: Mon, 7 Sep 2020 15:12:39 +0900
> > +Subject: [PATCH 3/4] utils/getconf: Fix compilation error
> I would honestly prefer if you had split this Buildroot patch in two:
> - one commit that backports the upstream uClibc-ng changes by
> Waldemar,
> - one commit that adds your two new changes.
> Applying backported patches is a pretty trivial affair (I tend to just
> verify that the referenced commit does exist, and this is very fast as I
> have a lot of git trees on my local machine].
> But applying non-upstream commits usually undergo quite some more
> scrutiny.
+1
Damien, my patchset [1] is almost complete (containing these 2 patches only, missing links to the commits), but feel to sent additional patches to fix this (I sent [1] because I overlooked your patch).
Kind regards,
Petr
[1] https://patchwork.ozlabs.org/project/buildroot/patch/20200908150914.328323-1-petr.vorel at gmail.com/
> > +Avoid "warning: statement will never be executed" compilation error if
> > +none of the cases are defined.
> > +
> > +Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
> I know Thomas suggested those to be sent upstream and you agreed. So
> don't forget to do so! ;-)
> If already done, then a pointer to the upstream bugzilla or mailing list
> thread would be good:
> [upstream: pending review: https://some/mailing/list/message.html]
> Regards,
> Yann E. MORIN.
next prev parent reply other threads:[~2020-09-09 5:38 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 11:33 [Buildroot] [PATCH v2 0/6] Add support for Kendryte K210 RISC-V boards Damien Le Moal
2020-09-08 11:33 ` [Buildroot] [PATCH v2 1/6] toolchain/buildroot: allow uclibc-ng for riscv Damien Le Moal
2020-09-08 21:49 ` Yann E. MORIN
2020-10-06 21:40 ` Thomas Petazzoni
2020-10-06 22:53 ` Damien Le Moal
2020-10-08 19:33 ` Thomas Petazzoni
2020-10-12 5:00 ` Damien Le Moal
2020-10-12 5:18 ` Waldemar Brodkorb
2020-10-12 5:28 ` Damien Le Moal
2020-09-08 11:33 ` [Buildroot] [PATCH v2 2/6] arch/config: Make RISC-V MMU optional Damien Le Moal
2020-09-09 17:44 ` Alistair Francis
2020-10-06 21:46 ` Thomas Petazzoni
2020-10-06 22:58 ` Damien Le Moal
2020-09-08 11:33 ` [Buildroot] [PATCH v2 3/6] package/elf2flt: add RISC-V support Damien Le Moal
2020-09-09 6:45 ` Peter Korsgaard
2020-09-09 6:48 ` Damien Le Moal
2020-10-06 21:47 ` Thomas Petazzoni
2020-10-06 23:14 ` Damien Le Moal
2020-09-08 11:33 ` [Buildroot] [PATCH v2 4/6] package make: build RISC-V nommu builds as linux Damien Le Moal
2020-09-08 21:56 ` Yann E. MORIN
2020-09-08 11:33 ` [Buildroot] [PATCH v2 5/6] package/uclibc: fix compilation errors Damien Le Moal
2020-09-08 22:06 ` Yann E. MORIN
2020-09-09 5:38 ` Petr Vorel [this message]
2020-09-09 6:21 ` Damien Le Moal
2020-10-06 21:49 ` Thomas Petazzoni
2020-10-06 23:14 ` Damien Le Moal
2020-09-08 11:33 ` [Buildroot] [PATCH v2 6/6] board: Add configuration for Kendryte K210 boards Damien Le Moal
2020-09-09 6:49 ` [Buildroot] [PATCH v2 0/6] Add support for Kendryte K210 RISC-V boards Peter Korsgaard
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=20200909053851.GA3515@dell5510 \
--to=petr.vorel@gmail.com \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.