The OpenSSH 8.9 release notes include the following: * Enable additional compiler warnings and toolchain hardening flags, including -Wbitwise-instead-of-logical, -Wmisleading-indentation, -fzero-call-used-regs and -ftrivial-auto-var-init. However, it appears that this GCC option is not supported on ppc64 (unsure if it affects ppc) resulting in the following: (cd openbsd-compat && make) make[1]: Entering directory '/var/tmp/portage/net-misc/openssh-8.9_p1/work/openssh-8.9p1/openbsd-compat' powerpc64le-unknown-linux-gnu-gcc -O3 -mcpu=native -mtune=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -pipe -Wno-error=format-truncation -Wall -Wextra -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-parameter -Wno-unused-result -Wimplicit-fallthrough -Wmisleading-indentation -fno-strict-aliasing -ftrapv -fzero-call-used-regs=all -fno-builtin-memset -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -DHAVE_CONFIG_H -c arc4random.c In file included from arc4random.c:52: chacha_private.h: In function ‘chacha_encrypt_bytes.constprop’: chacha_private.h:222:1: sorry, unimplemented: ‘-fzero-call-used-regs’ not supported on this target 222 | } | ^ make[1]: *** [Makefile:104: arc4random.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-misc/openssh-8.9_p1/work/openssh-8.9p1/openbsd-compat' make: *** [Makefile:204: openbsd-compat/libopenbsd-compat.a] Error 2 Reproducible: Always
Created attachment 765817 [details] emerge --info
Upstream seems to be aware here: https://github.com/openssh/openssh-portable/commit/f107467179428a0e3ea9e4aa9738ac12ff02822d , but I'm not sure if this is a complete fix or just scaffolding.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8718ae59ad006b2d52a88236ddd13b0670c57b83 commit 8718ae59ad006b2d52a88236ddd13b0670c57b83 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-02-25 16:41:28 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-02-25 16:45:37 +0000 profiles: mask net-misc/openssh-8.9_p1 everywhere for now Acked-by: Sam James <sam@gentoo.org> Bug: https://bugs.gentoo.org/834019 Bug: https://bugs.gentoo.org/834037 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> profiles/package.mask | 5 +++++ 1 file changed, 5 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cbbc55aee6b2534bbc8d8fe12128c1083ee6850 commit 9cbbc55aee6b2534bbc8d8fe12128c1083ee6850 Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2022-02-26 01:06:59 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2022-02-26 01:06:59 +0000 net-misc/openssh: Add patches for bugs #834019 and #834037 Bug: https://bugs.gentoo.org/834019 Bug: https://bugs.gentoo.org/834037 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> .../files/openssh-8.9_p1-X509-glue-13.3.patch | 34 +++++++++++++++++++--- .../files/openssh-8.9_p1-allow-ppoll_time64.patch | 14 +++++++++ .../openssh-8.9_p1-fzero-call-used-regs.patch | 32 ++++++++++++++++++++ net-misc/openssh/openssh-8.9_p1.ebuild | 2 ++ 4 files changed, 78 insertions(+), 4 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b5ef16c3fce4736090af46795e54d3de622746e commit 4b5ef16c3fce4736090af46795e54d3de622746e Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-28 05:11:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-28 05:12:32 +0000 net-misc/openssh: unmask openssh 8.9_p1; revbump to propagate sandbox fix Revbump for the folks who had 8.9_p1 installed and hadn't upgraded since mask was added, to be sure they get the fixed version. Closes: https://bugs.gentoo.org/834019 Closes: https://bugs.gentoo.org/834037 Signed-off-by: Sam James <sam@gentoo.org> net-misc/openssh/{openssh-8.9_p1.ebuild => openssh-8.9_p1-r1.ebuild} | 0 profiles/package.mask | 5 ----- 2 files changed, 5 deletions(-)