diff options
author | Kevin Pedretti <ktpedre@users.noreply.github.com> | 2021-10-05 13:22:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 19:22:55 +0000 |
commit | 47607dcac5928432be8abad1360c4c357809e363 (patch) | |
tree | c5e60fac2e9486dceacc99e8040d58ea5cb3f616 /lib/spack/external/archspec/json/cpu/microarchitectures.json | |
parent | d998ea1bd41b4cf7f47caa734b7c7df86178ef0c (diff) | |
download | spack-47607dcac5928432be8abad1360c4c357809e363.tar.gz spack-47607dcac5928432be8abad1360c4c357809e363.tar.bz2 spack-47607dcac5928432be8abad1360c4c357809e363.tar.xz spack-47607dcac5928432be8abad1360c4c357809e363.zip |
Use gnuconfig package for config file replacement for RISC-V. (#26364)
* Use gnuconfig package for config file replacement for RISC-V.
This extends the changes in #26035 to handle RISC-V. Before this change,
many packages fail to configure on riscv64 due to config.guess being too
old to know about RISC-V. This is seen out of the box when clingo fails
to build from source due to pkgconfig failing to configure, throwing
error: "configure: error: cannot guess build type; you must specify one".
* Add riscv64 architecture
* Update vendored archspec from upstream project.
These archspec updates include changes needed to support riscv64.
* Update archspec's __init__.py to reflect the commit hash of archspec being used.
Diffstat (limited to 'lib/spack/external/archspec/json/cpu/microarchitectures.json')
-rw-r--r-- | lib/spack/external/archspec/json/cpu/microarchitectures.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/spack/external/archspec/json/cpu/microarchitectures.json b/lib/spack/external/archspec/json/cpu/microarchitectures.json index 40f59bfd9e..0be30c25e0 100644 --- a/lib/spack/external/archspec/json/cpu/microarchitectures.json +++ b/lib/spack/external/archspec/json/cpu/microarchitectures.json @@ -2017,6 +2017,44 @@ "features": [], "compilers": { } + }, + "riscv64": { + "from": [], + "vendor": "generic", + "features": [], + "compilers": { + "gcc": [ + { + "versions": "7.1:", + "flags" : "-march=rv64gc" + } + ], + "clang": [ + { + "versions": "9.0:", + "flags" : "-march=rv64gc" + } + ] + } + }, + "u74mc": { + "from": ["riscv64"], + "vendor": "SiFive", + "features": [], + "compilers": { + "gcc": [ + { + "versions": "10.2:", + "flags" : "-march=rv64gc -mtune=sifive-7-series" + } + ], + "clang" : [ + { + "versions": "12.0:", + "flags" : "-march=rv64gc -mtune=sifive-7-series" + } + ] + } } }, "feature_aliases": { |