Compilation error: openssh on powerpc (25a toolchains)
MPI toolchains (newer than GCC 11) failed on powerpc during openssh compilation:
==> Installing openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi [77/146]
==> Fetching file:///opt_mpsd/linux-debian12/25a/power8le/local-spack-cache/build_cache/linux-debian12-power8le-gcc-12.3.0-openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi.spec.json.sig
==> Fetching file:///opt_mpsd/linux-debian12/25a/power8le/local-spack-cache/build_cache/linux-debian12-power8le-gcc-12.3.0-openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi.spec.json
==> No binary for openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi found: installing from source
==> Using cached archive: /opt_mpsd/mpsd_spack_sources/_source-cache/archive/b3/b343fbcdbff87f15b1986e6e15d6d4fc9a7d36066be6b7fb507087ba8f966c02.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:
'/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/gmake-4.4.1-zqkhqqeaq27yaot53iilzefwl6yqm4dn/bin/make' '-j16' 'V=1'
4 errors found in build log:
922 /opt_mpsd/linux-debian12/25a/power8le/spack/lib/spack/env/gcc/gcc -g -O2 -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 -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-
var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/k
rb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -DSSHDIR=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/etc\" -D_PATH_SSH_PROGRAM=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/opt_mps
d/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux
-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-keysign\" -D_PATH_SSHD_SESSION=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/sshd-session\" -D_PATH_SSH_PKCS11_HELPER=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-
nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_SK_HELPER=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-sk-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nky
qdlfi3z4x72fhlthxhfx7bcnbp5hi/var/empty\" -DHAVE_CONFIG_H -c match.c -o match.o
923 /opt_mpsd/linux-debian12/25a/power8le/spack/lib/spack/env/gcc/gcc -g -O2 -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 -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-
var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIE -I. -I. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/k
rb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -DSSHDIR=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/etc\" -D_PATH_SSH_PROGRAM=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/opt_mps
d/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux
-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-keysign\" -D_PATH_SSHD_SESSION=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/sshd-session\" -D_PATH_SSH_PKCS11_HELPER=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-
nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-pkcs11-helper\" -D_PATH_SSH_SK_HELPER=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/libexec/ssh-sk-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/openssh-9.9p1-nky
qdlfi3z4x72fhlthxhfx7bcnbp5hi/var/empty\" -DHAVE_CONFIG_H -c moduli.c -o moduli.o
924 /opt_mpsd/linux-debian12/25a/power8le/spack/lib/spack/env/gcc/gcc -g -O2 -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 -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-
var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/
gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -DHAVE_CONFIG_H -c libressl-api-compat.c
925 /opt_mpsd/linux-debian12/25a/power8le/spack/lib/spack/env/gcc/gcc -g -O2 -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 -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-
var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/
gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -DHAVE_CONFIG_H -c xcrypt.c
926 /opt_mpsd/linux-debian12/25a/power8le/spack/lib/spack/env/gcc/gcc -g -O2 -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 -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-
var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/
gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -DHAVE_CONFIG_H -c arc4random.c
927 cipher.c: In function 'compression_alg_list':
>> 928 cipher.c:151:1: sorry, unimplemented: '-fzero-call-used-regs' not supported on this target
929 151 | }
930 | ^
931 /opt_mpsd/linux-debian12/25a/power8le/spack/lib/spack/env/gcc/gcc -g -O2 -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 -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-
var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/
gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -DHAVE_CONFIG_H -c arc4random_uniform.c
>> 932 make: *** [Makefile:203: cipher.o] Error 1
933 make: *** Waiting for unfinished jobs....
934 /opt_mpsd/linux-debian12/25a/power8le/spack/lib/spack/env/gcc/gcc -g -O2 -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 -D_FORTIFY_SOURCE=2 -ftrapv -fzero-call-used-regs=used -ftrivial-auto-
var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIC -I. -I.. -I. -I./.. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -I/opt_mpsd/linux-debian12/25a/power8le/spack/opt/spack/linux-debian12-power8le/
gcc-12.3.0/krb5-1.21.3-uss3rcnr2o7zzlkqgbwtzywenlw3j46q/include -DHAVE_CONFIG_H -c base64.c
935 log.c: In function 'do_log':
936 log.c:395:53: warning: ': ' directive output may be truncated writing 2 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
937 395 | snprintf(fmtbuf, sizeof(fmtbuf), "%s: %s", msgbuf, suffix);
938 | ^~
...
1099 a - port-linux.o
1100 a - port-prngd.o
1101 a - port-solaris.o
1102 a - port-net.o
1103 a - port-uw.o
1104 sshkey.c: In function 'sshkey_set_filename':
>> 1105 sshkey.c:3843:1: sorry, unimplemented: '-fzero-call-used-regs' not supported on this target
1106 3843 | }
1107 | ^
1108 ranlib libopenbsd-compat.a
>> 1109 make: *** [Makefile:203: sshkey.o] Error 1
1110 make[1]: Leaving directory '/opt_mpsd/linux-debian12/25a/power8le/spack/var/spack/stage/mpsddeb/spack-stage-openssh-9.9p1-nkyqdlfi3z4x72fhlthxhfx7bcnbp5hi/spack-src/openbsd-compat'
They are not required for the Octopus CI so that problem can be addressed later.
INFO ====================
Installation summary
====================
INFO gcc-11_5_0-openmpi-4_1_4: Installation succeeded
INFO gcc-11_5_0: Installation succeeded
ERROR gcc-12_3_0-openmpi-4_1_5: Installation failed
INFO gcc-12_3_0: Installation succeeded
ERROR gcc-13_2_0-openmpi-4_1_6: Installation failed
INFO gcc-13_2_0: Installation succeeded
ERROR gcc-14_2-openmpi-5_0_5: Installation failed
INFO gcc-14_2: Installation succeeded
Edited by Martin Lang