* [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent
@ 2026-07-18 6:52 Bernd Kuhls
2026-07-18 6:52 ` [Buildroot] [PATCH 2/3] package/bitcoin: Fix build without SSP Bernd Kuhls
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Bernd Kuhls @ 2026-07-18 6:52 UTC (permalink / raw)
To: buildroot; +Cc: Dick Olsson, Fabio Urquiza
Buildroot commit fabcd7c8cc44e7e03c68bfcd2b4e2d10331a93f6 bumped the
package from 28.0 to 30.0 which includes upstream commit
https://github.com/bitcoin/bitcoin/commit/b619bdc3303217f4415342fe60e586e18fa48308
that was first included in version 29.0 and changed the linking of
libevent libraries.
This causes build errors when linked statically due to the wrong order
of libraries. To fix the problem we add a patch to change the order of
the libevent libraries.
The patch was not sent upstream because libevent support was removed
from the master branch with upstream commit:
https://github.com/bitcoin/bitcoin/commit/35d2d0679782581cbbf05babc59f0f28858a9b72
Fixes:
https://autobuild.buildroot.org/results/80e05370b6542ba2f5d2908bad7f420f76dc6831/
The oldest build error of this kind dates back to Dec 2025:
https://autobuild.buildroot.net/results/6bb/6bbd822d55dfcf3862e8b713323e0f34f65990ee/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/8d17d8107a074b94d628061a3c18917987141483
.../0001-Fix-static-link-of-libevent.patch | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/bitcoin/0001-Fix-static-link-of-libevent.patch
diff --git a/package/bitcoin/0001-Fix-static-link-of-libevent.patch b/package/bitcoin/0001-Fix-static-link-of-libevent.patch
new file mode 100644
index 0000000000..8c8e95bd0f
--- /dev/null
+++ b/package/bitcoin/0001-Fix-static-link-of-libevent.patch
@@ -0,0 +1,36 @@
+From 28c3533e5fb350fe1c27cf06dee6928825bc7bf2 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sat, 18 Jul 2026 07:46:09 +0200
+Subject: [PATCH] Fix static link of libevent
+
+Change link order to fix build error
+
+/home/thomas/autobuild/instance-2/output-1/host/lib/gcc/i686-buildroot-linux-musl/14.3.0/../../../../i686-buildroot-linux-musl/bin/ld:
+ /home/thomas/autobuild/instance-2/output-1/host/i686-buildroot-linux-musl/sysroot/usr/lib/libevent_extra.a(http.o):
+ in function `evhttp_connection_retry':
+http.c:(.text+0x1f7b): undefined reference to `bufferevent_socket_get_conn_address_'
+
+Upstream: Not applicable (libevent support was removed in master branch)
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ src/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index ad18115bbc..8e2a7bfcce 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -355,8 +355,8 @@ if(BUILD_CLI)
+ bitcoin_cli
+ bitcoin_common
+ bitcoin_util
+- libevent::core
+ libevent::extra
++ libevent::core
+ )
+ install_binary_component(bitcoin-cli HAS_MANPAGE)
+ endif()
+--
+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] 6+ messages in thread* [Buildroot] [PATCH 2/3] package/bitcoin: Fix build without SSP
2026-07-18 6:52 [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Bernd Kuhls
@ 2026-07-18 6:52 ` Bernd Kuhls
2026-07-24 14:14 ` Thomas Perale via buildroot
2026-07-18 6:52 ` [Buildroot] [PATCH 3/3] package/bitcoin: bump version to 31.1 Bernd Kuhls
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Bernd Kuhls @ 2026-07-18 6:52 UTC (permalink / raw)
To: buildroot; +Cc: Dick Olsson, Fabio Urquiza
Buildroot commit fabcd7c8cc44e7e03c68bfcd2b4e2d10331a93f6 bumped the
package from 28.0 to 30.0 which includes upstream commit
https://github.com/bitcoin/bitcoin/commit/a01cb6e63ff3940f0773b37e2fe1e148f17acad9
that was first included in version 29.0 and added among others
-fstack-protector-all to cxx_flags guarded with a new configure option
ENABLE_HARDENING which default to ON.
This commit causes build errors with toolchains with SSP support:
[ 44%] Linking CXX executable ../bin/bitcoin
/home/autobuild/autobuild/instance-40/output-1/host/lib/gcc/i686-buildroot-linux-musl/15.2.0/../../../../i686-buildroot-linux-musl/bin/ld:
CMakeFiles/bitcoin.dir/bitcoin.cpp.o:
in function `fs::PathToString(fs::path const&)':
bitcoin.cpp:(.text+0x4c):
undefined reference to `__stack_chk_fail_local'
Upstream later removed the forementioned configure option with commit
https://github.com/bitcoin/bitcoin/commit/00ba3ba30341a9073049125334f176d6c05d1b54
that was first included in version 30.0 so we need to remove
-fstack-protector-all from CMakeLists.txt.
Fixes:
https://autobuild.buildroot.net/results/093/093253c79fed1c5b93decc3124e9ef4622168efe/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/8d17d8107a074b94d628061a3c18917987141483
...sts.txt-Don-t-force-fstack-protector.patch | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch
diff --git a/package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch b/package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch
new file mode 100644
index 0000000000..40370d1bf7
--- /dev/null
+++ b/package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch
@@ -0,0 +1,30 @@
+From 4d33b5bcc924c9271c40a19796f8316ba6aaa276 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+Date: Sat, 18 Jul 2026 08:10:21 +0200
+Subject: [PATCH] CMakeLists.txt: Don't force -fstack-protector
+
+This allows the environment to decide whether SSP should be used or
+not, for example to support toolchains that don't have SSP support.
+
+Upstream: N/A Buildroot specific
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ CMakeLists.txt | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 892f30d94b..93ccbf71ec 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -532,7 +532,6 @@ else()
+ unset(cxx_supports_fortify_source)
+
+ try_append_cxx_flags("-Wstack-protector" TARGET core_interface SKIP_LINK)
+- try_append_cxx_flags("-fstack-protector-all" TARGET core_interface)
+ try_append_cxx_flags("-fcf-protection=full" TARGET core_interface)
+
+ if(MINGW)
+--
+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] 6+ messages in thread* Re: [Buildroot] [PATCH 2/3] package/bitcoin: Fix build without SSP
2026-07-18 6:52 ` [Buildroot] [PATCH 2/3] package/bitcoin: Fix build without SSP Bernd Kuhls
@ 2026-07-24 14:14 ` Thomas Perale via buildroot
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Perale via buildroot @ 2026-07-24 14:14 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Thomas Perale, buildroot
In reply of:
> Buildroot commit fabcd7c8cc44e7e03c68bfcd2b4e2d10331a93f6 bumped the
> package from 28.0 to 30.0 which includes upstream commit
> https://github.com/bitcoin/bitcoin/commit/a01cb6e63ff3940f0773b37e2fe1e148f17acad9
> that was first included in version 29.0 and added among others
> -fstack-protector-all to cxx_flags guarded with a new configure option
> ENABLE_HARDENING which default to ON.
>
> This commit causes build errors with toolchains with SSP support:
>
> [ 44%] Linking CXX executable ../bin/bitcoin
> /home/autobuild/autobuild/instance-40/output-1/host/lib/gcc/i686-buildroot-linux-musl/15.2.0/../../../../i686-buildroot-linux-musl/bin/ld:
> CMakeFiles/bitcoin.dir/bitcoin.cpp.o:
> in function `fs::PathToString(fs::path const&)':
> bitcoin.cpp:(.text+0x4c):
> undefined reference to `__stack_chk_fail_local'
>
> Upstream later removed the forementioned configure option with commit
> https://github.com/bitcoin/bitcoin/commit/00ba3ba30341a9073049125334f176d6c05d1b54
> that was first included in version 30.0 so we need to remove
> -fstack-protector-all from CMakeLists.txt.
>
> Fixes:
> https://autobuild.buildroot.net/results/093/093253c79fed1c5b93decc3124e9ef4622168efe/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to 2026.05.x. Thanks
> ---
> Gitlab pipelines passed:
> https://gitlab.com/bkuhls/buildroot/-/commits/8d17d8107a074b94d628061a3c18917987141483
>
> ...sts.txt-Don-t-force-fstack-protector.patch | 30 +++++++++++++++++++
> 1 file changed, 30 insertions(+)
> create mode 100644 package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch
>
> diff --git a/package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch b/package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch
> new file mode 100644
> index 0000000000..40370d1bf7
> --- /dev/null
> +++ b/package/bitcoin/0002-CMakeLists.txt-Don-t-force-fstack-protector.patch
> @@ -0,0 +1,30 @@
> +From 4d33b5bcc924c9271c40a19796f8316ba6aaa276 Mon Sep 17 00:00:00 2001
> +From: Bernd Kuhls <bernd@kuhls.net>
> +Date: Sat, 18 Jul 2026 08:10:21 +0200
> +Subject: [PATCH] CMakeLists.txt: Don't force -fstack-protector
> +
> +This allows the environment to decide whether SSP should be used or
> +not, for example to support toolchains that don't have SSP support.
> +
> +Upstream: N/A Buildroot specific
> +
> +Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> +---
> + CMakeLists.txt | 1 -
> + 1 file changed, 1 deletion(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index 892f30d94b..93ccbf71ec 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -532,7 +532,6 @@ else()
> + unset(cxx_supports_fortify_source)
> +
> + try_append_cxx_flags("-Wstack-protector" TARGET core_interface SKIP_LINK)
> +- try_append_cxx_flags("-fstack-protector-all" TARGET core_interface)
> + try_append_cxx_flags("-fcf-protection=full" TARGET core_interface)
> +
> + if(MINGW)
> +--
> +2.47.3
> +
> --
> 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] 6+ messages in thread
* [Buildroot] [PATCH 3/3] package/bitcoin: bump version to 31.1
2026-07-18 6:52 [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Bernd Kuhls
2026-07-18 6:52 ` [Buildroot] [PATCH 2/3] package/bitcoin: Fix build without SSP Bernd Kuhls
@ 2026-07-18 6:52 ` Bernd Kuhls
2026-07-19 11:34 ` [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Julien Olivain via buildroot
2026-07-24 14:14 ` Thomas Perale via buildroot
3 siblings, 0 replies; 6+ messages in thread
From: Bernd Kuhls @ 2026-07-18 6:52 UTC (permalink / raw)
To: buildroot; +Cc: Dick Olsson, Fabio Urquiza
https://bitcoincore.org/en/releases/31.1/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/93bdd02a074cb4b81babc3e02b3ae58978257aa5
package/bitcoin/bitcoin.hash | 6 +++---
package/bitcoin/bitcoin.mk | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/package/bitcoin/bitcoin.hash b/package/bitcoin/bitcoin.hash
index b1576d5e8a..3adfc7a5d0 100644
--- a/package/bitcoin/bitcoin.hash
+++ b/package/bitcoin/bitcoin.hash
@@ -1,7 +1,7 @@
-# Hash from: https://bitcoincore.org/bin/bitcoin-core-31.0/SHA256SUMS
+# Hash from: https://bitcoincore.org/bin/bitcoin-core-31.1/SHA256SUMS
# After checking pgp signature from:
-# https://bitcoincore.org/bin/bitcoin-core-31.0/SHA256SUMS.asc
-sha256 0ba0ef5eea3aefd96cc1774be274c3d594812cfac0988809d706738bb067b3e3 bitcoin-31.0.tar.gz
+# https://bitcoincore.org/bin/bitcoin-core-31.1/SHA256SUMS.asc
+sha256 50411d5b43c7e4c90099394759eb6c2add6e7c2dbe728840893d638b6fc6afc9 bitcoin-31.1.tar.gz
# Hash for license file
sha256 b028769f3852a9368ab10bd754ff01ebb741f84a2fa658c9aff82a631bc6ecfc COPYING
diff --git a/package/bitcoin/bitcoin.mk b/package/bitcoin/bitcoin.mk
index d7019f2aa9..857768eba8 100644
--- a/package/bitcoin/bitcoin.mk
+++ b/package/bitcoin/bitcoin.mk
@@ -4,7 +4,7 @@
#
################################################################################
-BITCOIN_VERSION = 31.0
+BITCOIN_VERSION = 31.1
BITCOIN_SITE = https://bitcoincore.org/bin/bitcoin-core-$(BITCOIN_VERSION)
BITCOIN_LICENSE = MIT
BITCOIN_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] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent
2026-07-18 6:52 [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Bernd Kuhls
2026-07-18 6:52 ` [Buildroot] [PATCH 2/3] package/bitcoin: Fix build without SSP Bernd Kuhls
2026-07-18 6:52 ` [Buildroot] [PATCH 3/3] package/bitcoin: bump version to 31.1 Bernd Kuhls
@ 2026-07-19 11:34 ` Julien Olivain via buildroot
2026-07-24 14:14 ` Thomas Perale via buildroot
3 siblings, 0 replies; 6+ messages in thread
From: Julien Olivain via buildroot @ 2026-07-19 11:34 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot, Dick Olsson, Fabio Urquiza
On 18/07/2026 08:52, Bernd Kuhls wrote:
> Buildroot commit fabcd7c8cc44e7e03c68bfcd2b4e2d10331a93f6 bumped the
> package from 28.0 to 30.0 which includes upstream commit
> https://github.com/bitcoin/bitcoin/commit/b619bdc3303217f4415342fe60e586e18fa48308
> that was first included in version 29.0 and changed the linking of
> libevent libraries.
>
> This causes build errors when linked statically due to the wrong order
> of libraries. To fix the problem we add a patch to change the order of
> the libevent libraries.
>
> The patch was not sent upstream because libevent support was removed
> from the master branch with upstream commit:
> https://github.com/bitcoin/bitcoin/commit/35d2d0679782581cbbf05babc59f0f28858a9b72
>
> Fixes:
> https://autobuild.buildroot.org/results/80e05370b6542ba2f5d2908bad7f420f76dc6831/
>
> The oldest build error of this kind dates back to Dec 2025:
> https://autobuild.buildroot.net/results/6bb/6bbd822d55dfcf3862e8b713323e0f34f65990ee/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent
2026-07-18 6:52 [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Bernd Kuhls
` (2 preceding siblings ...)
2026-07-19 11:34 ` [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Julien Olivain via buildroot
@ 2026-07-24 14:14 ` Thomas Perale via buildroot
3 siblings, 0 replies; 6+ messages in thread
From: Thomas Perale via buildroot @ 2026-07-24 14:14 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Thomas Perale, buildroot
In reply of:
> Buildroot commit fabcd7c8cc44e7e03c68bfcd2b4e2d10331a93f6 bumped the
> package from 28.0 to 30.0 which includes upstream commit
> https://github.com/bitcoin/bitcoin/commit/b619bdc3303217f4415342fe60e586e18fa48308
> that was first included in version 29.0 and changed the linking of
> libevent libraries.
>
> This causes build errors when linked statically due to the wrong order
> of libraries. To fix the problem we add a patch to change the order of
> the libevent libraries.
>
> The patch was not sent upstream because libevent support was removed
> from the master branch with upstream commit:
> https://github.com/bitcoin/bitcoin/commit/35d2d0679782581cbbf05babc59f0f28858a9b72
>
> Fixes:
> https://autobuild.buildroot.org/results/80e05370b6542ba2f5d2908bad7f420f76dc6831/
>
> The oldest build error of this kind dates back to Dec 2025:
> https://autobuild.buildroot.net/results/6bb/6bbd822d55dfcf3862e8b713323e0f34f65990ee/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to 2026.05.x. Thanks
> ---
> Gitlab pipelines passed:
> https://gitlab.com/bkuhls/buildroot/-/commits/8d17d8107a074b94d628061a3c18917987141483
>
> .../0001-Fix-static-link-of-libevent.patch | 36 +++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/bitcoin/0001-Fix-static-link-of-libevent.patch
>
> diff --git a/package/bitcoin/0001-Fix-static-link-of-libevent.patch b/package/bitcoin/0001-Fix-static-link-of-libevent.patch
> new file mode 100644
> index 0000000000..8c8e95bd0f
> --- /dev/null
> +++ b/package/bitcoin/0001-Fix-static-link-of-libevent.patch
> @@ -0,0 +1,36 @@
> +From 28c3533e5fb350fe1c27cf06dee6928825bc7bf2 Mon Sep 17 00:00:00 2001
> +From: Bernd Kuhls <bernd@kuhls.net>
> +Date: Sat, 18 Jul 2026 07:46:09 +0200
> +Subject: [PATCH] Fix static link of libevent
> +
> +Change link order to fix build error
> +
> +/home/thomas/autobuild/instance-2/output-1/host/lib/gcc/i686-buildroot-linux-musl/14.3.0/../../../../i686-buildroot-linux-musl/bin/ld:
> + /home/thomas/autobuild/instance-2/output-1/host/i686-buildroot-linux-musl/sysroot/usr/lib/libevent_extra.a(http.o):
> + in function `evhttp_connection_retry':
> +http.c:(.text+0x1f7b): undefined reference to `bufferevent_socket_get_conn_address_'
> +
> +Upstream: Not applicable (libevent support was removed in master branch)
> +
> +Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> +---
> + src/CMakeLists.txt | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
> +index ad18115bbc..8e2a7bfcce 100644
> +--- a/src/CMakeLists.txt
> ++++ b/src/CMakeLists.txt
> +@@ -355,8 +355,8 @@ if(BUILD_CLI)
> + bitcoin_cli
> + bitcoin_common
> + bitcoin_util
> +- libevent::core
> + libevent::extra
> ++ libevent::core
> + )
> + install_binary_component(bitcoin-cli HAS_MANPAGE)
> + endif()
> +--
> +2.47.3
> +
> --
> 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] 6+ messages in thread
end of thread, other threads:[~2026-07-24 14:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-18 6:52 [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Bernd Kuhls
2026-07-18 6:52 ` [Buildroot] [PATCH 2/3] package/bitcoin: Fix build without SSP Bernd Kuhls
2026-07-24 14:14 ` Thomas Perale via buildroot
2026-07-18 6:52 ` [Buildroot] [PATCH 3/3] package/bitcoin: bump version to 31.1 Bernd Kuhls
2026-07-19 11:34 ` [Buildroot] [PATCH 1/3] package/bitcoin: Fix static link of libevent Julien Olivain via buildroot
2026-07-24 14:14 ` Thomas Perale via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox