Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919685

Summary: net-misc/openssh-9.5_p1-r2 - [clang] xmss_hash.c: error: call to undeclared function SHA256; ISO C99 and later
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: gabifalk
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.mindrot.org/show_bug.cgi?id=3689
https://github.com/gentoo/gentoo/pull/36623
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
net-misc:openssh-9.5_p1-r2:20231210-103141.log
qlist-info.txt
temp.tar.xz
var.tmp.clang.tar.xz

Description Toralf Förster gentoo-dev 2023-12-10 10:34:33 UTC
too long lines were shrinked:

clang -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DWITH_XMSS -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unuse
clang -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DWITH_XMSS -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unuse
clang -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DWITH_XMSS -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unuse
clang -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DWITH_XMSS -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unuse
clang -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DWITH_XMSS -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unuse
clang -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -DWITH_XMSS -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unuse
xmss_hash.c:56:5: error: call to undeclared function 'SHA256'; ISO C99 and later
      do not support implicit function declarations
      [-Wimplicit-function-declaration]

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang-20231210-041514

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/16
16.0.6+libcxx
Python 3.11.7
php cli (if any):

  HEAD of ::gentoo
commit 33ab19e432dc0e48016804e15d7e2ceff51e393f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 10 01:47:02 2023 +0000

    2023-12-10 01:47:00 UTC

emerge -qpvO net-misc/openssh
[ebuild     U ] net-misc/openssh-9.5_p1-r2 [9.4_p1-r1] USE="pam pie security-key* ssl xmss* -X -audit (-debug) -kerberos -ldns -libedit -livecd (-selinux) -static -test -verify-sig"
Comment 1 Toralf Förster gentoo-dev 2023-12-10 10:34:34 UTC
Created attachment 878630 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-10 10:34:35 UTC
Created attachment 878631 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-10 10:34:36 UTC
Created attachment 878632 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-10 10:34:37 UTC
Created attachment 878633 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-10 10:34:38 UTC
Created attachment 878634 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-10 10:34:39 UTC
Created attachment 878635 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-10 10:34:41 UTC
Created attachment 878636 [details]
net-misc:openssh-9.5_p1-r2:20231210-103141.log
Comment 8 Toralf Förster gentoo-dev 2023-12-10 10:34:42 UTC
Created attachment 878637 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2023-12-10 10:34:43 UTC
Created attachment 878638 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-10 10:34:44 UTC
Created attachment 878639 [details]
var.tmp.clang.tar.xz
Comment 11 Gabi Falk 2024-05-09 22:59:00 UTC
It's an upstream regression introduced in the 9.1p1 version (see https://github.com/openssh/openssh-portable/commit/d571314d14b919fbd7c84a61f9bf2065fc0a6841).

I filed a bug upstream:
https://bugzilla.mindrot.org/show_bug.cgi?id=3689
Comment 12 Larry the Git Cow gentoo-dev 2024-05-09 23:09:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c918a33118902360c569b896d45e4149641b89f

commit 6c918a33118902360c569b896d45e4149641b89f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-09 22:45:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-09 22:45:13 +0000

    profiles/base: mask net-misc/openssh[xmss]
    
    Experimental option upstream which seems undertested and underdocumented.
    Fails to build with stricter C compilers too (bug #919685).
    
    Bug: https://bugs.gentoo.org/919685
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask | 5 +++++
 1 file changed, 5 insertions(+)