New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation issue: openssh #33131
Comments
|
You should file this issue upstream, since it's a package issue, not a Spack issue. Apparently there's some disagreement between clang and gcc, clang turns asprintf into a define when using Feel free to add a conflict on |
|
@haampie: the upstream report is there https://bugzilla.mindrot.org/show_bug.cgi?id=3482 It's not clear wether it's really an openssh issue or if it comes from spack and more specifically spack-compiled clang that still seems to rely on the underlying system libc |
|
I commented on that thread, it's an openssh issue. But I dunno why our clang is more strict: |
|
Submitted openssh/openssh-portable#349, can you make a PR for Spack to either get a conflict on clang@15: or submit a patch of the configure file? |
|
Thanks, sounds great, I'll make a PR to conflict with |
|
They merged the pr, but thanks to the great build system that is autotools you will need to wait for a new release that bundles a newly generated |
Introduce a conflict since openssh between 8.3 and 9.0 (included) fail to build with clang-15 and later. Fix spack#33131
Introduce a conflict since openssh between 8.3 and 9.0 (included) fail to build with clang-15 and later. Fix spack#33131
Steps to reproduce the issue
In docker image
ghcr.io/pdidev/test_env/builder:latest-clang-2e69267some context first:
result
result:
Error message
Error message
root@cee139ff972b:~# spack -e pdienv install --show-log-on-error --fail-fast ==> Installing environment pdienv [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/libiconv-1.16-qqijx3j2haquxsa5qakc5l5b7jvl6oej [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/libsigsegv-2.13-mgu4vfvsi67n6skd5khwi25j4xg4gsb2 [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/berkeley-db-18.1.40-bq76lbl5psq6mxw5oacexfqoo23z2exk [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/pkgconf-1.8.0-zssrwnrjompog73w3kvniieu3d4sw2fu [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/zlib-1.2.12-b3ikygqchosx4xzuash7gckojgkadybp [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/xz-5.2.5-hv4l6qghtm3w3zan4xazjao7hqix552u [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/zstd-1.5.2-jfwaavalf5coc2t7vqn42qo34izzgcmz [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/ca-certificates-mozilla-2022-07-19-o23jsztx32vtta7lwce67s6cx3or32ss [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/diffutils-3.8-layphiv2pvm5foctdypdow3kuhgj6l7y [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/ncurses-6.3-uvj6taqetcrb2fsvcnnxxtvqsv426yyz [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/pigz-2.7-vqlmlvewamu4nmas2zz7rn2ugfn7aiqf [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/libxml2-2.10.1-6o4zripldzcgjw44hc4mrtnc6apieq3j [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/bzip2-1.0.8-fpz2vw6jm4qos76f5woa2oqx3idkvyxw [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/m4-1.4.19-ouw573ht5l6k7qqpythk3xnfmwxeara6 [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/readline-8.1.2-g67rloqq65o2kslwyqv36nz6mujbukeo [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/libedit-3.1-20210216-tp3hg4oqdvsvkq4qvzkifpzr4w4ykfql [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/tar-1.34-ympdhf6fiv2szngrn3ofdu6n2qpqfbaa [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/gdbm-1.19-kc5gcomvc76raz2rtvf5ye7jozxifb2r [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/gettext-0.21-gkdgvqa7wodxfwbvdnhst73t55zfiarp [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/perl-5.34.1-rgb7bwfrvlywoladpak5h67cxumsants [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssl-1.1.1q-cn6qiuw5rchqcltqjpwh3holtl37hwpx [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/bison-3.8.2-gs5fp62sgimozk56gi2lab62jwdx66yi ==> Installing krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul ==> No binary for krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul found: installing from source ==> Fetching https://mirror.spack.io/_source-cache/archive/56/56d04863cfddc9d9eb7af17556e043e3537d41c6e545610778676cf551b9dcd0.tar.gz ==> Ran patch() for krb5 ==> krb5: Executing phase: 'autoreconf' ==> krb5: Executing phase: 'configure' ==> krb5: Executing phase: 'build' ==> krb5: Executing phase: 'install' ==> krb5: Successfully installed krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul Fetch: 0.41s. Build: 56.34s. Total: 56.75s. [+] /opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul ==> Installing openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict ==> No binary for openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict found: installing from source ==> Fetching https://mirror.spack.io/_source-cache/archive/03/03974302161e9ecce32153cfa10012f1e65c8f3750f573a73ab1befd5972a28a.tar.gz ==> Ran patch() for openssh ==> openssh: Executing phase: 'autoreconf' ==> openssh: Executing phase: 'configure' ==> openssh: Executing phase: 'build' ==> Error: ProcessError: Command exited with status 2: 'make' '-j8' 'V=1'9 errors found in build log:
1041 make[1]: Entering directory '/tmp/root/spack-stage/spack-stage-openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/spack-src/openbsd-compat'
1042 /opt/spack/lib/spack/env/clang/clang -g -O2 -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsize
of-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -Wmisleading-indentation -Wbitwise-instead-of-logical -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrap
v -fzero-call-used-regs=all -fno-builtin-memset -fstack-protector-strong -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/opt/install/li
nux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul/include -I/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5g
mp6jeoh2ubhkrul/include -DHAVE_CONFIG_H -c arc4random.c
1043 /opt/spack/lib/spack/env/clang/clang -g -O2 -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsize
of-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -Wmisleading-indentation -Wbitwise-instead-of-logical -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrap
v -fzero-call-used-regs=all -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/opt/install/linux-ubuntu18
.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul/include -I/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhk
rul/include -DSSHDIR="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/etc" -D_PATH_SSH_PROGRAM="/opt/install/linux-ubu
ntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/bin/ssh" -D_PATH_SSH_ASKPASS_DEFAULT="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/open
ssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-askpass" -D_PATH_SFTP_SERVER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevox
q7m5iq4uwtict/libexec/sftp-server" -D_PATH_SSH_KEY_SIGN="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-ke
ysign" -D_PATH_SSH_PKCS11_HELPER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-pkcs11-helper" -D_PATH_S
SH_SK_HELPER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-sk-helper" -D_PATH_SSH_PIDDIR="/var/run" -D
_PATH_PRIVSEP_CHROOT_DIR="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/var/empty" -DHAVE_CONFIG_H -c sshbuf-getput-b
asic.c -o sshbuf-getput-basic.o
1044 /opt/spack/lib/spack/env/clang/clang -g -O2 -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsize
of-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -Wmisleading-indentation -Wbitwise-instead-of-logical -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrap
v -fzero-call-used-regs=all -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/opt/install/linux-ubuntu18
.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul/include -I/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhk
rul/include -DSSHDIR="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/etc" -D_PATH_SSH_PROGRAM="/opt/install/linux-ubu
ntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/bin/ssh" -D_PATH_SSH_ASKPASS_DEFAULT="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/open
ssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-askpass" -D_PATH_SFTP_SERVER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevox
q7m5iq4uwtict/libexec/sftp-server" -D_PATH_SSH_KEY_SIGN="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-ke
ysign" -D_PATH_SSH_PKCS11_HELPER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-pkcs11-helper" -D_PATH_S
SH_SK_HELPER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-sk-helper" -D_PATH_SSH_PIDDIR="/var/run" -D
_PATH_PRIVSEP_CHROOT_DIR="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/var/empty" -DHAVE_CONFIG_H -c sshbuf-misc.c -
o sshbuf-misc.o
1045 /opt/spack/lib/spack/env/clang/clang -g -O2 -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsize
of-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -Wmisleading-indentation -Wbitwise-instead-of-logical -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrap
v -fzero-call-used-regs=all -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/opt/install/linux-ubuntu18
.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul/include -I/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhk
rul/include -DSSHDIR="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/etc" -D_PATH_SSH_PROGRAM="/opt/install/linux-ubu
ntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/bin/ssh" -D_PATH_SSH_ASKPASS_DEFAULT="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/open
ssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-askpass" -D_PATH_SFTP_SERVER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevox
q7m5iq4uwtict/libexec/sftp-server" -D_PATH_SSH_KEY_SIGN="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-ke
ysign" -D_PATH_SSH_PKCS11_HELPER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-pkcs11-helper" -D_PATH_S
SH_SK_HELPER="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/libexec/ssh-sk-helper" -D_PATH_SSH_PIDDIR="/var/run" -D
_PATH_PRIVSEP_CHROOT_DIR="/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/var/empty" -DHAVE_CONFIG_H -c sshbuf-getput-c
rypto.c -o sshbuf-getput-crypto.o
1046 /opt/spack/lib/spack/env/clang/clang -g -O2 -pipe -Wunknown-warning-option -Qunused-arguments -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsize
of-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -Wmisleading-indentation -Wbitwise-instead-of-logical -fno-strict-aliasing -mretpoline -D_FORTIFY_SOURCE=2 -ftrap
v -fzero-call-used-regs=all -fno-builtin-memset -fstack-protector-strong -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -I/opt/install/li
nux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5gmp6jeoh2ubhkrul/include -I/opt/install/linux-ubuntu18.04-x86_64/clang-15.0.0/krb5-1.19.3-riaeukuk7bbucxf5g
mp6jeoh2ubhkrul/include -DHAVE_CONFIG_H -c bsd-asprintf.c
See build log for details:
/tmp/root/spack-stage/spack-stage-openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/spack-build-out.txt
==> Updating view at /opt/spack/var/spack/environments/pdienv/.spack-env/view
==> Error: Terminating after first install failure: ProcessError: Command exited with status 2:
'make' '-j8' 'V=1'
This is similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98733 or https://bugs.llvm.org/show_bug.cgi?id=23562
Information on your system
Additional information
@bernhardkaindl
attached:
/tmp/root/spack-stage/spack-stage-openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/spack-src/config.log/tmp/root/spack-stage/spack-stage-openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/spack-build-env.txt/tmp/root/spack-stage/spack-stage-openssh-9.0p1-vn3ppe72pb7rtfbevoxq7m5iq4uwtict/spack-build-out.txtGeneral information
spack debug reportand reported the version of Spack/Python/Platformspack maintainers <name-of-the-package>and @mentioned any maintainersThe text was updated successfully, but these errors were encountered: