summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-04-22 22:34:41 +0200
committerGitHub <noreply@github.com>2022-04-22 14:34:41 -0600
commit29d96633ee4f6d254a550bbd108e5746ac44d2a4 (patch)
tree2a98f46af8e73aff46417b80d2952faef468060c
parent267da7855947933ffb360b6a7f003782c7df942b (diff)
downloadspack-29d96633ee4f6d254a550bbd108e5746ac44d2a4.tar.gz
spack-29d96633ee4f6d254a550bbd108e5746ac44d2a4.tar.bz2
spack-29d96633ee4f6d254a550bbd108e5746ac44d2a4.tar.xz
spack-29d96633ee4f6d254a550bbd108e5746ac44d2a4.zip
openssl: enable nvhpc build by disabling asm (#30248)
-rw-r--r--var/spack/repos/builtin/packages/openssl/package.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py
index 8206d9a780..38ebb120b3 100644
--- a/var/spack/repos/builtin/packages/openssl/package.py
+++ b/var/spack/repos/builtin/packages/openssl/package.py
@@ -93,10 +93,6 @@ class Openssl(Package): # Uses Fake Autotools, should subclass Package
with when('platform=windows'):
variant('dynamic', default=False, description="Link with MSVC's dynamic runtime library")
- # Currently nvhpc segfaults NVC++-F-0000-Internal compiler error.
- # gen_llvm_expr(): unknown opcode 0 (crypto/rsa/rsa_oaep.c: 248)
- conflicts('%nvhpc')
-
depends_on('zlib')
depends_on('perl@5.14.0:', type=('build', 'test'))
depends_on('ca-certificates-mozilla', type=('build', 'run'), when='certs=mozilla')
@@ -134,8 +130,12 @@ class Openssl(Package): # Uses Fake Autotools, should subclass Package
if spec.satisfies('@1.0'):
options.append('no-krb5')
# clang does not support the .arch directive in assembly files.
- if ('clang' in self.compiler.cc or 'nvc' in self.compiler.cc) and \
- spec.target.family == 'aarch64':
+ if 'clang' in self.compiler.cc and spec.target.family == 'aarch64':
+ options.append('no-asm')
+ elif '%nvhpc' in spec:
+ # Last tested on nvidia@22.3 for x86_64:
+ # nvhpc segfaults NVC++-F-0000-Internal compiler error.
+ # gen_llvm_expr(): unknown opcode 0 (crypto/rsa/rsa_oaep.c: 248)
options.append('no-asm')
# The default glibc provided by CentOS 7 does not provide proper