Brand new install of spack (0.8.15)
When I do "spack install openssl", I get this:
$ spack install openssl
==> Installing openssl
==> zlib is already installed in /Users/tbarron/prj/spack/opt/spack/darwin-x86_64/gcc-4.2.1/zlib-1.2.
8-srpjm45vhbpgwb7d6tmlvrpp55rsx7ov.
############################################################################################## 100.0%
==> Staging archive: /Users/tbarron/prj/spack/var/spack/stage/openssl-1.0.2e-i3znj7ubpfgndbqc426i6vop
y5ormgkf/openssl-1.0.2e.tar.gz
==> Created stage in /Users/tbarron/prj/spack/var/spack/stage/openssl-1.0.2e-i3znj7ubpfgndbqc426i6vop
y5ormgkf.
==> No patches needed for openssl.
==> Building openssl.
==> Error: Command exited with status 2:
make
See build log for details:
/private/var/folders/4g/xhhsjk953jd8sqnvqq3fhxsc0000gp/T/tbarron/spack-stage/spack-stage-rNvsCJ/ope
nssl-1.0.2e/spack-build.out
/Users/tbarron/prj/spack/var/spack/packages/openssl/package.py:27, in install:
19 def install(self, spec, prefix):
20 config = Executable("./config")
21 config("--prefix=%s" % prefix,
22 "--openssldir=%s/etc/openssl" % prefix,
23 "zlib",
24 "no-krb5",
25 "shared")
26
>> 27 make()
28 make("install")
==> Error: Installation process had nonzero exit code.
At the bottom of /private/var/folders/4g/xhhsjk953jd8sqnvqq3fhxsc0000gp/T/tbarron/spack-stage/spack-stage-rNvsCJ/ope
nssl-1.0.2e/spack-build.out, I see:
[ -z "" ] || /Users/tbarron/prj/spack/lib/spack/env/gcc/gcc -fPIC -fno-common -DOPENSSL_PIC -DZLIB -D
OPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIA
N -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_
ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_AS
M -Iinclude \
-DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso \
fips_premain.c fipscanister.o \
libcrypto.a -lz
ld: warning: ignoring file /Users/tbarron/prj/spack/opt/spack/darwin-x86_64/gcc-4.2.1/zlib-1.2.8-srpj
m45vhbpgwb7d6tmlvrpp55rsx7ov/lib/libz.dylib, file was built for x86_64 which is not the architecture
being linked (i386): /Users/tbarron/prj/spack/opt/spack/darwin-x86_64/gcc-4.2.1/zlib-1.2.8-srpjm45vhb
pgwb7d6tmlvrpp55rsx7ov/lib/libz.dylib
Undefined symbols for architecture i386:
"_deflate", referenced from:
_zlib_stateful_compress_block in libcrypto.a(c_zlib.o)
_bio_zlib_write in libcrypto.a(c_zlib.o)
_bio_zlib_ctrl in libcrypto.a(c_zlib.o)
"_deflateEnd", referenced from:
So spack is trying to build openssl for i386 and is ignoring the zlib library as a consequence since it was built for x86_64. But all the zlib libraries were built for x86_64 architecture. I *think* zlib is right and my machine is x86_64 but I'm not certain. How would one tell definitively?
$ pwd
/Users/tbarron/prj/spack/opt/spack/darwin-x86_64/gcc-4.2.1/zlib-1.2.8-srpjm45vhbpgwb7d6tmlvrpp55rsx7ov/lib
$ file *
libz.1.2.8.dylib: Mach-O 64-bit dynamically linked shared library x86_64
libz.1.dylib: Mach-O 64-bit dynamically linked shared library x86_64
libz.a: current ar archive random library
libz.dylib: Mach-O 64-bit dynamically linked shared library x86_64
pkgconfig: directory
It seems like openssl should be getting built for x86_64 also. How can I adjust this?
Thanks!
Tom