* [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10
@ 2020-02-28 17:30 Petr Vorel
2020-02-28 17:30 ` [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h> Petr Vorel
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Petr Vorel @ 2020-02-28 17:30 UTC (permalink / raw)
To: buildroot
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
...ltiple-definiton-with-gcc-fno-common.patch | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch
diff --git a/package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch b/package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch
new file mode 100644
index 0000000000..35846bb6e2
--- /dev/null
+++ b/package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch
@@ -0,0 +1,48 @@
+From daed7eedba73907730241c5262a5c16c7abedb6f Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Tue, 21 Jan 2020 11:49:35 -0500
+Subject: [PATCH 1/2] Avoid multiple-definiton with gcc -fno-common
+
+GCC 10 enables -fno-common by default.
+
+Fixes: https://bugs.gentoo.org/705896
+
+Signed-off-by: Steve Dickson <steved@redhat.com>
+Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
+[ upstream status: daed7eedba73907730241c5262a5c16c7abedb6f ]
+---
+ src/rpc_com.h | 3 +--
+ src/svc.c | 3 +++
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/rpc_com.h b/src/rpc_com.h
+index 10bec79..76badef 100644
+--- a/src/rpc_com.h
++++ b/src/rpc_com.h
+@@ -61,8 +61,7 @@ void __xprt_unregister_unlocked(SVCXPRT *);
+ void __xprt_set_raddr(SVCXPRT *, const struct sockaddr_storage *);
+
+
+-SVCXPRT **__svc_xports;
+-int __svc_maxrec;
++extern int __svc_maxrec;
+
+ #ifdef __cplusplus
+ }
+diff --git a/src/svc.c b/src/svc.c
+index b59467b..6db164b 100644
+--- a/src/svc.c
++++ b/src/svc.c
+@@ -57,6 +57,9 @@
+
+ #define max(a, b) (a > b ? a : b)
+
++static SVCXPRT **__svc_xports;
++int __svc_maxrec;
++
+ /*
+ * The services list
+ * Each entry represents a set of procedures (an rpc program).
+--
+2.25.1
+
--
2.25.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h>
2020-02-28 17:30 [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Petr Vorel
@ 2020-02-28 17:30 ` Petr Vorel
2020-03-03 21:56 ` Thomas Petazzoni
2020-03-05 4:39 ` Petr Vorel
2020-03-03 21:55 ` [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Thomas Petazzoni
` (2 subsequent siblings)
3 siblings, 2 replies; 11+ messages in thread
From: Petr Vorel @ 2020-02-28 17:30 UTC (permalink / raw)
To: buildroot
This fixes build on riscv64:
http://autobuild.buildroot.net/results/a334f774e95fb7805568fc3868d5cf1d790a6e73
http://autobuild.buildroot.net/results/9cf80bdd4d329788c89596b56205ef215ee09c35
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
...r_float-do-not-include-bits-endian.h.patch | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch
diff --git a/package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch b/package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch
new file mode 100644
index 0000000000..2527726015
--- /dev/null
+++ b/package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch
@@ -0,0 +1,33 @@
+From d04f4d6f0e682f16b0ce96839ab4eadade591eb1 Mon Sep 17 00:00:00 2001
+From: Rosen Penev <rosenp@gmail.com>
+Date: Tue, 21 Jan 2020 11:51:16 -0500
+Subject: [PATCH 2/2] xdr_float: do not include bits/endian.h
+
+bits/endian.h is an internal header. endian.h should be included.
+
+Fixes compilation with recent musl.
+
+Signed-off-by: Rosen Penev <rosenp@gmail.com>
+Signed-off-by: Steve Dickson <steved@redhat.com>
+Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
+[ upstream status: d04f4d6f0e682f16b0ce96839ab4eadade591eb1 ]
+---
+ src/xdr_float.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/xdr_float.c b/src/xdr_float.c
+index 26bc865..349d48f 100644
+--- a/src/xdr_float.c
++++ b/src/xdr_float.c
+@@ -83,7 +83,7 @@ static struct sgl_limits {
+ };
+ #else
+
+-#include <bits/endian.h>
++#include <endian.h>
+ #define IEEEFP
+
+ #endif /* vax */
+--
+2.25.1
+
--
2.25.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10
2020-02-28 17:30 [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Petr Vorel
2020-02-28 17:30 ` [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h> Petr Vorel
@ 2020-03-03 21:55 ` Thomas Petazzoni
2020-03-05 4:37 ` Petr Vorel
2020-03-05 4:44 ` Petr Vorel
3 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2020-03-03 21:55 UTC (permalink / raw)
To: buildroot
On Fri, 28 Feb 2020 18:30:51 +0100
Petr Vorel <petr.vorel@gmail.com> wrote:
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> ...ltiple-definiton-with-gcc-fno-common.patch | 48 +++++++++++++++++++
> 1 file changed, 48 insertions(+)
> create mode 100644 package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch
Is this for master or next ? Are you talking about gcc 10 for the host
or gcc 10 for the target ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h>
2020-02-28 17:30 ` [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h> Petr Vorel
@ 2020-03-03 21:56 ` Thomas Petazzoni
2020-03-05 4:39 ` Petr Vorel
1 sibling, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2020-03-03 21:56 UTC (permalink / raw)
To: buildroot
On Fri, 28 Feb 2020 18:30:52 +0100
Petr Vorel <petr.vorel@gmail.com> wrote:
> This fixes build on riscv64:
>
> http://autobuild.buildroot.net/results/a334f774e95fb7805568fc3868d5cf1d790a6e73
> http://autobuild.buildroot.net/results/9cf80bdd4d329788c89596b56205ef215ee09c35
>
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> ...r_float-do-not-include-bits-endian.h.patch | 33 +++++++++++++++++++
> 1 file changed, 33 insertions(+)
> create mode 100644 package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch
This issue seems to be happening only on the next branch. Why? Anything
special in next compared to master?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10
2020-02-28 17:30 [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Petr Vorel
2020-02-28 17:30 ` [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h> Petr Vorel
2020-03-03 21:55 ` [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Thomas Petazzoni
@ 2020-03-05 4:37 ` Petr Vorel
2020-03-05 8:03 ` Thomas Petazzoni
2020-03-05 4:44 ` Petr Vorel
3 siblings, 1 reply; 11+ messages in thread
From: Petr Vorel @ 2020-03-05 4:37 UTC (permalink / raw)
To: buildroot
Hi Thomas,
> This issue seems to be happening only on the next branch. Why? Anything
> special in next compared to master?
No idea why, libtirpc itself it's the same. It'd help if I could find builds for
master, but autobuild search doesn't help to search packages, which does not
fail, there is only search for failed packages:
http://autobuild.buildroot.net/index.php?reason=libtirpc-1.2.5
Is it running for master?
Kind regards,
Petr
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h>
2020-02-28 17:30 ` [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h> Petr Vorel
2020-03-03 21:56 ` Thomas Petazzoni
@ 2020-03-05 4:39 ` Petr Vorel
2020-03-23 18:24 ` Petr Vorel
1 sibling, 1 reply; 11+ messages in thread
From: Petr Vorel @ 2020-03-05 4:39 UTC (permalink / raw)
To: buildroot
Hi Thomas,
> This issue seems to be happening only on the next branch. Why? Anything
> special in next compared to master?
No idea why, libtirpc itself it's the same. It'd help if I could find builds for
master, but autobuild search doesn't help to search packages, which does not
fail, there is only search for failed packages:
http://autobuild.buildroot.net/index.php?reason=libtirpc-1.2.5
Is it running for master?
Kind regards,
Petr
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10
2020-02-28 17:30 [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Petr Vorel
` (2 preceding siblings ...)
2020-03-05 4:37 ` Petr Vorel
@ 2020-03-05 4:44 ` Petr Vorel
3 siblings, 0 replies; 11+ messages in thread
From: Petr Vorel @ 2020-03-05 4:44 UTC (permalink / raw)
To: buildroot
Hi Thomas,
sorry, previous reply was for the second patch.
> Is this for master or next ? Are you talking about gcc 10 for the host
> or gcc 10 for the target ?
I experienced this just when for native build on other distro (this patch was
needed for openSUSE), send with a hope it's useful. But feel free to drop it,
libtirpc is releasing often, now it's libtirpc-1-2-6-rc2. As nobody complains
about it, it can wait till the package release.
Kind regards,
Petr
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10
2020-03-05 4:37 ` Petr Vorel
@ 2020-03-05 8:03 ` Thomas Petazzoni
2020-03-23 19:42 ` Petr Vorel
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2020-03-05 8:03 UTC (permalink / raw)
To: buildroot
On Thu, 5 Mar 2020 05:37:08 +0100
Petr Vorel <petr.vorel@gmail.com> wrote:
> > This issue seems to be happening only on the next branch. Why? Anything
> > special in next compared to master?
> No idea why, libtirpc itself it's the same. It'd help if I could find builds for
> master, but autobuild search doesn't help to search packages, which does not
> fail, there is only search for failed packages:
>
> http://autobuild.buildroot.net/index.php?reason=libtirpc-1.2.5
>
> Is it running for master?
You can search the autobuilders for successful build results, filtering
per config options. See http://autobuild.buildroot.net/search.php.
For example:
http://autobuild.buildroot.net/index.php?status=OK&symbols%5BBR2_PACKAGE_LIBTIRPC%5D=y
will search all successful builds that had BR2_PACKAGE_LIBTIRPC enabled.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h>
2020-03-05 4:39 ` Petr Vorel
@ 2020-03-23 18:24 ` Petr Vorel
0 siblings, 0 replies; 11+ messages in thread
From: Petr Vorel @ 2020-03-23 18:24 UTC (permalink / raw)
To: buildroot
Hi Thomas,
> > This issue seems to be happening only on the next branch. Why? Anything
> > special in next compared to master?
Now, the error got propagated to the master, it'll fix failures on riscv64 and
arm:
http://autobuild.buildroot.net/results/4f423c95e290ec99fec263a839e3336362e7003c
http://autobuild.buildroot.net/results/04fdf097b9aeda2e831c9138110b527e1e6ee5ea
http://autobuild.buildroot.net/results/531156fd470eeb287e1761c5f0c17c68fe1e7888
http://autobuild.buildroot.net/results/678cd9b11160e3995e61afc8579b579702429ef5
http://autobuild.buildroot.net/results/940e4212a7d029e6495af3d5cacc8e3bbc9e78ff
You can merge it with previous one (gcc-10 fix [1]), or I can sent v2 with just
this patch (then I'd rename patch number from 6 to 5).
Kind regards,
Petr
[1] https://patchwork.ozlabs.org/patch/1246746/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10
2020-03-05 8:03 ` Thomas Petazzoni
@ 2020-03-23 19:42 ` Petr Vorel
2020-03-24 7:20 ` Thomas Petazzoni
0 siblings, 1 reply; 11+ messages in thread
From: Petr Vorel @ 2020-03-23 19:42 UTC (permalink / raw)
To: buildroot
Hi Thomas,
> You can search the autobuilders for successful build results, filtering
> per config options. See http://autobuild.buildroot.net/search.php.
> For example:
> http://autobuild.buildroot.net/index.php?status=OK&symbols%5BBR2_PACKAGE_LIBTIRPC%5D=y
> will search all successful builds that had BR2_PACKAGE_LIBTIRPC enabled.
Thanks! Not sure if it's just a slow net on my side, but search takes ages.
Not sure whether you still maintain this web service, but adding index on column
which stores symbols might help (suppose it uses database).
Kind regards,
Petr
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10
2020-03-23 19:42 ` Petr Vorel
@ 2020-03-24 7:20 ` Thomas Petazzoni
0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2020-03-24 7:20 UTC (permalink / raw)
To: buildroot
Hello Petr,
On Mon, 23 Mar 2020 20:42:37 +0100
Petr Vorel <petr.vorel@gmail.com> wrote:
> > You can search the autobuilders for successful build results, filtering
> > per config options. See http://autobuild.buildroot.net/search.php.
>
> > For example:
>
> > http://autobuild.buildroot.net/index.php?status=OK&symbols%5BBR2_PACKAGE_LIBTIRPC%5D=y
>
> > will search all successful builds that had BR2_PACKAGE_LIBTIRPC enabled.
>
> Thanks! Not sure if it's just a slow net on my side, but search takes ages.
> Not sure whether you still maintain this web service, but adding index on column
> which stores symbols might help (suppose it uses database).
The search has indeed never been "fast", but it's true that it's
particular slow now, much slower than it was. Not sure what happened,
as nothing changed.
You can find the schema of the MySQL database at
https://git.buildroot.org/buildroot-test/tree/web/schema.sql. It does
have indexes. However, the symbol_for_result table really has (tens
of?) millions of entries.
Last summer, we had an intern at Bootlin who worked on this, and
greatly improved the performance of those queries. But it seems like
this have worsen again, for some reason. I can share a dump of the
database if anybody wants to play with it.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-03-24 7:20 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-28 17:30 [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Petr Vorel
2020-02-28 17:30 ` [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing <bits/endian.h> Petr Vorel
2020-03-03 21:56 ` Thomas Petazzoni
2020-03-05 4:39 ` Petr Vorel
2020-03-23 18:24 ` Petr Vorel
2020-03-03 21:55 ` [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 Thomas Petazzoni
2020-03-05 4:37 ` Petr Vorel
2020-03-05 8:03 ` Thomas Petazzoni
2020-03-23 19:42 ` Petr Vorel
2020-03-24 7:20 ` Thomas Petazzoni
2020-03-05 4:44 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox