[Buildroot] [git commit branch/2025.02.x] package/openssh: fix build for powerpc64le

Thomas Perale via buildroot <[email protected]> Tue, 28 Jul 2026 11:47:34 +0200
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/21053fd5085c58eed8a4d69775c7a568055ed042
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/2025.02.x

Fixes:
https://autobuild.buildroot.org/results/ee9/ee9329461cc36650416013216cac15820ceb7174/
https://gitlab.com/buildroot.org/buildroot/-/work_items/79

packet.c: In function 'ssh_packet_log_type':
packet.c:1219:1: sorry, unimplemented: argument 'used' is not supported
 for '-fzero-call-used-regs' on this target

Upstream bug report: https://bugzilla.mindrot.org/show_bug.cgi?id=3673

Signed-off-by: Bernd Kuhls <[email protected]>
Signed-off-by: Julien Olivain <[email protected]>
(cherry picked from commit a44b18837dc54504f25139d7a3e571cb67cbc9c4)
[Thomas: point to 2025.02 autobuild failure, and use the fix in the
issue comment that work on 9.9]
Signed-off-by: Thomas Perale <[email protected]>
---
 package/openssh/openssh.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index a7f13429f2..136dc08d36 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -56,6 +56,10 @@ define OPENSSH_PERMISSIONS
 	/var/empty d 755 root root - - - - -
 endef
 
+ifeq ($(BR2_powerpc64le),y)
+OPENSSH_CONF_OPTS += --with-cflags-after="-fzero-call-used-regs=skip"
+endif
+
 ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_110934),y)
 OPENSSH_CONF_OPTS += --without-hardening
 endif
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot