Skip to content
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

Add homebrew-based build instructions for apple silicon #1159

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions scripts/spack/configs/macos_sonoma_aarch64/spack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@

spack:
# add package specs to the `specs` list
view: true
concretizer:
unify: true
packages:
all:
compiler: [clang, gcc]
providers:
blas: [netlib-lapack]
lapack: [netlib-lapack]
mpi: [openmpi]
mpi:
buildable: false
openmpi:
buildable: false
externals:
- spec: [email protected]_1
prefix: /opt/homebrew
netlib-lapack:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew/opt/lapack
autoconf:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
automake:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
bzip2:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew/opt/bzip2
cmake:
version: [3.29.6]
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
gettext:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
graphviz:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
libtool:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
libx11:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
llvm:
version: [18.1.8]
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew/opt/llvm
m4:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew/opt/m4
perl:
buildable: false
externals:
- spec: [email protected]~cpanm+opcode+open+shared+threads
prefix: /usr
pkg-config:
buildable: false
externals:
- spec: [email protected]_3
prefix: /opt/homebrew
python:
buildable: false
externals:
- spec: [email protected]+bz2+crypt+ctypes+dbm+lzma+nis+pyexpat~pythoncmd+readline+sqlite3+ssl~tkinter+uuid+zlib
prefix: /opt/homebrew/opt/python
tar:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
readline:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew
unzip:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
zlib:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/homebrew

# The "::" removes all found/known compilers from Spack except for these.
compilers::
- compiler:
spec: clang@=18.1.8
paths:
cc: /opt/homebrew/opt/llvm/bin/clang
cxx: /opt/homebrew/opt/llvm/bin/clang++
f77: /opt/homebrew/bin/gfortran-14
fc: /opt/homebrew/bin/gfortran-14
flags: {}
operating_system: sonoma
target: aarch64
modules: []
environment: {}
extra_rpaths:
- /opt/homebrew/lib/gcc/14
Loading