* [Buildroot] [PATCH 1/1] linuxptp: needs NPTL
@ 2018-09-15 19:20 Fabrice Fontaine
2018-09-16 5:05 ` Baruch Siach
0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2018-09-15 19:20 UTC (permalink / raw)
To: buildroot
/home/buildroot/autobuild/run/instance-1/output/host/bin/or1k-linux-gcc phc_ctl.o phc.o sk.o util.o clockadj.o sysoff.o print.o version.o -lm -lrt -o phc_ctl
phc2sys.o: In function `do_loop':
phc2sys.c:(.text+0x18bc): undefined reference to `clock_nanosleep'
Fixes:
- http://autobuild.buildroot.org/results/a31e0a5ae15e1164115e4e5981ef5fb3c3284bcc
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/linuxptp/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/linuxptp/Config.in b/package/linuxptp/Config.in
index 3e18a0cb13..a32dbde2e1 100644
--- a/package/linuxptp/Config.in
+++ b/package/linuxptp/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_LINUXPTP
bool "linuxptp"
+ depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
help
The Linux PTP Project is the Precision Time Protocol
implementation according to IEEE standard 1588 for Linux.
@@ -11,3 +12,6 @@ config BR2_PACKAGE_LINUXPTP
not a goal.
http://linuxptp.sourceforge.net/
+
+comment "linuxptp needs a toolchain w/ NPTL"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] linuxptp: needs NPTL
2018-09-15 19:20 [Buildroot] [PATCH 1/1] linuxptp: needs NPTL Fabrice Fontaine
@ 2018-09-16 5:05 ` Baruch Siach
2018-09-16 13:39 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2018-09-16 5:05 UTC (permalink / raw)
To: buildroot
Hi Fabrice,
On Sat, Sep 15, 2018 at 09:20:05PM +0200, Fabrice Fontaine wrote:
> /home/buildroot/autobuild/run/instance-1/output/host/bin/or1k-linux-gcc phc_ctl.o phc.o sk.o util.o clockadj.o sysoff.o print.o version.o -lm -lrt -o phc_ctl
> phc2sys.o: In function `do_loop':
> phc2sys.c:(.text+0x18bc): undefined reference to `clock_nanosleep'
>
> Fixes:
> - http://autobuild.buildroot.org/results/a31e0a5ae15e1164115e4e5981ef5fb3c3284bcc
This should only affect 2018.02.x. The latest uClibc-ng version provides
clock_nanosleep() even for non NPTL configurations.
baruch
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/linuxptp/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/linuxptp/Config.in b/package/linuxptp/Config.in
> index 3e18a0cb13..a32dbde2e1 100644
> --- a/package/linuxptp/Config.in
> +++ b/package/linuxptp/Config.in
> @@ -1,5 +1,6 @@
> config BR2_PACKAGE_LINUXPTP
> bool "linuxptp"
> + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
> help
> The Linux PTP Project is the Precision Time Protocol
> implementation according to IEEE standard 1588 for Linux.
> @@ -11,3 +12,6 @@ config BR2_PACKAGE_LINUXPTP
> not a goal.
>
> http://linuxptp.sourceforge.net/
> +
> +comment "linuxptp needs a toolchain w/ NPTL"
> + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] linuxptp: needs NPTL
2018-09-16 5:05 ` Baruch Siach
@ 2018-09-16 13:39 ` Thomas Petazzoni
2018-09-20 21:46 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2018-09-16 13:39 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 16 Sep 2018 08:05:22 +0300, Baruch Siach wrote:
> On Sat, Sep 15, 2018 at 09:20:05PM +0200, Fabrice Fontaine wrote:
> > /home/buildroot/autobuild/run/instance-1/output/host/bin/or1k-linux-gcc phc_ctl.o phc.o sk.o util.o clockadj.o sysoff.o print.o version.o -lm -lrt -o phc_ctl
> > phc2sys.o: In function `do_loop':
> > phc2sys.c:(.text+0x18bc): undefined reference to `clock_nanosleep'
> >
> > Fixes:
> > - http://autobuild.buildroot.org/results/a31e0a5ae15e1164115e4e5981ef5fb3c3284bcc
>
> This should only affect 2018.02.x. The latest uClibc-ng version provides
> clock_nanosleep() even for non NPTL configurations.
Indeed. Due to this, perhaps there's a bunch of NPTL dependencies we
could remove:
package/blktrace/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
package/can-utils/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
package/dvblast/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
package/nilfs-utils/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
Anyway, for this linuxptp change, I have marked the patch as "Delegated
to Peter" on patchwork, so that Peter takes care of it.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] linuxptp: needs NPTL
2018-09-16 13:39 ` Thomas Petazzoni
@ 2018-09-20 21:46 ` Peter Korsgaard
0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-09-20 21:46 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:
> Hello,
> On Sun, 16 Sep 2018 08:05:22 +0300, Baruch Siach wrote:
>> On Sat, Sep 15, 2018 at 09:20:05PM +0200, Fabrice Fontaine wrote:
>> > /home/buildroot/autobuild/run/instance-1/output/host/bin/or1k-linux-gcc
>> > phc_ctl.o phc.o sk.o util.o clockadj.o sysoff.o print.o version.o
>> > -lm -lrt -o phc_ctl
>> > phc2sys.o: In function `do_loop':
>> > phc2sys.c:(.text+0x18bc): undefined reference to `clock_nanosleep'
>> >
>> > Fixes:
>> > - http://autobuild.buildroot.org/results/a31e0a5ae15e1164115e4e5981ef5fb3c3284bcc
>>
>> This should only affect 2018.02.x. The latest uClibc-ng version provides
>> clock_nanosleep() even for non NPTL configurations.
> Indeed. Due to this, perhaps there's a bunch of NPTL dependencies we
> could remove:
> package/blktrace/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
> package/can-utils/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
> package/dvblast/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
> package/nilfs-utils/Config.in: depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
> Anyway, for this linuxptp change, I have marked the patch as "Delegated
> to Peter" on patchwork, so that Peter takes care of it.
Committed to 2018.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-09-20 21:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-15 19:20 [Buildroot] [PATCH 1/1] linuxptp: needs NPTL Fabrice Fontaine
2018-09-16 5:05 ` Baruch Siach
2018-09-16 13:39 ` Thomas Petazzoni
2018-09-20 21:46 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox