Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919685 - net-misc/openssh-9.5_p1-r2 - [clang] xmss_hash.c: error: call to undeclared function SHA256; ISO C99 and later
Summary: net-misc/openssh-9.5_p1-r2 - [clang] xmss_hash.c: error: call to undeclared f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-10 10:34 UTC by Toralf Förster
Modified: 2024-05-21 11:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.85 KB, text/plain)
2023-12-10 10:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,9.87 KB, text/plain)
2023-12-10 10:34 UTC, Toralf Förster
Details
environment (environment,131.48 KB, text/plain)
2023-12-10 10:34 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-10 10:34 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.79 KB, application/x-xz)
2023-12-10 10:34 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,35.73 KB, application/x-xz)
2023-12-10 10:34 UTC, Toralf Förster
Details
net-misc:openssh-9.5_p1-r2:20231210-103141.log (net-misc:openssh-9.5_p1-r2:20231210-103141.log,127.38 KB, text/plain)
2023-12-10 10:34 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,42.35 KB, text/plain)
2023-12-10 10:34 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,67.86 KB, application/x-xz)
2023-12-10 10:34 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,4.80 KB, application/x-xz)
2023-12-10 10:34 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)
Comment 13 Larry the Git Cow gentoo-dev 2024-05-21 11:48:55 UTC
The bug has been closed via the following commit(s):

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

commit d4c7252424eb9de31f91a502e8fffd323000a89b
Author:     Gabi Falk <gabifalk@gmx.com>
AuthorDate: 2024-05-09 22:50:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-21 11:48:19 +0000

    net-misc/openssh: fix implicit function declaraions with USE=xmss
    
    Link: https://bugzilla.mindrot.org/show_bug.cgi?id=3689
    Closes: https://bugs.gentoo.org/919685
    Signed-off-by: Gabi Falk <gabifalk@gmx.com>
    Closes: https://github.com/gentoo/gentoo/pull/36623
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/openssh-9.6_p1-fix-xmss-c99.patch        |  20 +
 net-misc/openssh/openssh-9.6_p1-r4.ebuild          | 390 ++++++++++++++++++++
 net-misc/openssh/openssh-9.7_p1-r3.ebuild          | 404 +++++++++++++++++++++
 3 files changed, 814 insertions(+)