* [Buildroot] [PATCH 1/2] package/atf: update project URL
@ 2026-01-02 14:54 Bernd Kuhls
2026-01-02 14:54 ` [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc Bernd Kuhls
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Bernd Kuhls @ 2026-01-02 14:54 UTC (permalink / raw)
To: buildroot; +Cc: Dario Binacchi, Thomas Petazzoni
The old URL redirects to the new URL.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: initial revision
package/atf/Config.in | 2 +-
package/atf/atf.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/atf/Config.in b/package/atf/Config.in
index 43a5d4f2c9..800b488945 100644
--- a/package/atf/Config.in
+++ b/package/atf/Config.in
@@ -6,7 +6,7 @@ config BR2_PACKAGE_ATF
ATF, or Automated Testing Framework, is a collection of
libraries to write test programs in C, C++ and POSIX shell.
- https://github.com/jmmv/atf
+ https://github.com/freebsd/atf
comment "atf needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/atf/atf.mk b/package/atf/atf.mk
index 27c25c8b27..91d2fb5567 100644
--- a/package/atf/atf.mk
+++ b/package/atf/atf.mk
@@ -5,7 +5,7 @@
################################################################################
ATF_VERSION = 0.23
-ATF_SITE = https://github.com/jmmv/atf/releases/download/atf-$(ATF_VERSION)
+ATF_SITE = https://github.com/freebsd/atf/releases/download/atf-$(ATF_VERSION)
ATF_INSTALL_STAGING = YES
ATF_LICENSE = BSD-2-Clause, BSD-3-Clause
ATF_LICENSE_FILES = COPYING
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc
2026-01-02 14:54 [Buildroot] [PATCH 1/2] package/atf: update project URL Bernd Kuhls
@ 2026-01-02 14:54 ` Bernd Kuhls
2026-01-02 15:23 ` Thomas Petazzoni via buildroot
2026-01-02 15:24 ` [Buildroot] [PATCH 1/2] package/atf: update project URL Thomas Petazzoni via buildroot
2026-01-13 19:47 ` Arnout Vandecappelle via buildroot
2 siblings, 1 reply; 5+ messages in thread
From: Bernd Kuhls @ 2026-01-02 14:54 UTC (permalink / raw)
To: buildroot; +Cc: Dario Binacchi, Thomas Petazzoni
Buildroot commit d6c3257e931ed256e3ebcd78938f6146bba8586f bumped the
package from 0.21 to 0.23. Upstream release 0.22 includes commit
https://github.com/freebsd/atf/commit/d7c7c53c0626ab59a62aa4efcf05323b3621baa9
which uses CLOCK_MONOTONIC without including time.h.
Fixes:
https://autobuild.buildroot.net/results/41b/41b25ee8e66e34323eca011e4b5fe479ece9ed76/
Minimal defconfig to reproduce the build error:
BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
BR2_PTHREADS_NONE=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_ATF=y
All defconfigs of the build errors recorded by the buildroot autobuilders
contain BR2_PTHREADS_NONE=y.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
v2: added minimal defconfig (Thomas)
updated patch URL after upstream commit
.../0001-atf-check.cpp-include-time.h.patch | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 package/atf/0001-atf-check.cpp-include-time.h.patch
diff --git a/package/atf/0001-atf-check.cpp-include-time.h.patch b/package/atf/0001-atf-check.cpp-include-time.h.patch
new file mode 100644
index 0000000000..359172c0e6
--- /dev/null
+++ b/package/atf/0001-atf-check.cpp-include-time.h.patch
@@ -0,0 +1,33 @@
+From 67e7d350a15aff88c151b1fc838dac83d35be955 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sat, 22 Nov 2025 23:47:41 +0100
+Subject: [PATCH] atf-check.cpp: include time.h
+
+Fixes build error with gcc 14 as reported by the buildroot autobuilders:
+https://autobuild.buildroot.net/results/41b/41b25ee8e66e34323eca011e4b5fe479ece9ed76/build-end.log
+
+atf-sh/atf-check.cpp: In function 'useconds_t get_monotonic_useconds()':
+atf-sh/atf-check.cpp:183:24: error: 'CLOCK_MONOTONIC' was not declared in this scope
+
+Upstream: https://github.com/freebsd/atf/commit/67e7d350a15aff88c151b1fc838dac83d35be955
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ atf-sh/atf-check.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/atf-sh/atf-check.cpp b/atf-sh/atf-check.cpp
+index 1354e3a..94da413 100644
+--- a/atf-sh/atf-check.cpp
++++ b/atf-sh/atf-check.cpp
+@@ -30,6 +30,7 @@ extern "C" {
+ #include <limits.h>
+ #include <signal.h>
+ #include <stdint.h>
++#include <time.h>
+ #include <unistd.h>
+ }
+
+--
+2.47.3
+
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc
2026-01-02 14:54 ` [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc Bernd Kuhls
@ 2026-01-02 15:23 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-02 15:23 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot, Dario Binacchi
Hello Bernd,
On Fri, 2 Jan 2026 15:54:07 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> Buildroot commit d6c3257e931ed256e3ebcd78938f6146bba8586f bumped the
> package from 0.21 to 0.23. Upstream release 0.22 includes commit
> https://github.com/freebsd/atf/commit/d7c7c53c0626ab59a62aa4efcf05323b3621baa9
> which uses CLOCK_MONOTONIC without including time.h.
>
> Fixes:
> https://autobuild.buildroot.net/results/41b/41b25ee8e66e34323eca011e4b5fe479ece9ed76/
>
> Minimal defconfig to reproduce the build error:
>
> BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
> BR2_PTHREADS_NONE=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_ATF=y
Thanks for the additional analysis, it makes more sense.
However, how is this related to "newer gcc" then? If the code uses
CLOCK_MONOTONIC, without including <time.h>, it's going to fail
regardless of the gcc version.
Did you test a build with an older gcc (13.x is still supported for
example) ? I assume it will also fail to build without your patch,
meaning that the problem is not gcc version related.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/atf: update project URL
2026-01-02 14:54 [Buildroot] [PATCH 1/2] package/atf: update project URL Bernd Kuhls
2026-01-02 14:54 ` [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc Bernd Kuhls
@ 2026-01-02 15:24 ` Thomas Petazzoni via buildroot
2026-01-13 19:47 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-02 15:24 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot, Dario Binacchi
On Fri, 2 Jan 2026 15:54:06 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> The old URL redirects to the new URL.
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> v2: initial revision
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/atf: update project URL
2026-01-02 14:54 [Buildroot] [PATCH 1/2] package/atf: update project URL Bernd Kuhls
2026-01-02 14:54 ` [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc Bernd Kuhls
2026-01-02 15:24 ` [Buildroot] [PATCH 1/2] package/atf: update project URL Thomas Petazzoni via buildroot
@ 2026-01-13 19:47 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-01-13 19:47 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Arnout Vandecappelle, buildroot
In reply of:
> The old URL redirects to the new URL.
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to 2025.02.x and 2025.11.x. Thanks
> ---
> v2: initial revision
>
> package/atf/Config.in | 2 +-
> package/atf/atf.mk | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/atf/Config.in b/package/atf/Config.in
> index 43a5d4f2c9..800b488945 100644
> --- a/package/atf/Config.in
> +++ b/package/atf/Config.in
> @@ -6,7 +6,7 @@ config BR2_PACKAGE_ATF
> ATF, or Automated Testing Framework, is a collection of
> libraries to write test programs in C, C++ and POSIX shell.
>
> - https://github.com/jmmv/atf
> + https://github.com/freebsd/atf
>
> comment "atf needs a toolchain w/ C++"
> depends on !BR2_INSTALL_LIBSTDCPP
> diff --git a/package/atf/atf.mk b/package/atf/atf.mk
> index 27c25c8b27..91d2fb5567 100644
> --- a/package/atf/atf.mk
> +++ b/package/atf/atf.mk
> @@ -5,7 +5,7 @@
> ################################################################################
>
> ATF_VERSION = 0.23
> -ATF_SITE = https://github.com/jmmv/atf/releases/download/atf-$(ATF_VERSION)
> +ATF_SITE = https://github.com/freebsd/atf/releases/download/atf-$(ATF_VERSION)
> ATF_INSTALL_STAGING = YES
> ATF_LICENSE = BSD-2-Clause, BSD-3-Clause
> ATF_LICENSE_FILES = COPYING
> --
> 2.47.3
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-13 19:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-02 14:54 [Buildroot] [PATCH 1/2] package/atf: update project URL Bernd Kuhls
2026-01-02 14:54 ` [Buildroot] [PATCH 2/2] package/atf: fix build with newer gcc Bernd Kuhls
2026-01-02 15:23 ` Thomas Petazzoni via buildroot
2026-01-02 15:24 ` [Buildroot] [PATCH 1/2] package/atf: update project URL Thomas Petazzoni via buildroot
2026-01-13 19:47 ` Arnout Vandecappelle via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox