Skip to content
Snippets Groups Projects
  1. Jul 23, 2020
    • Todd Gamblin's avatar
      bugfix: make compiler preferences slightly saner (#17590) · f528022a
      Todd Gamblin authored
      * bugfix: make compiler preferences slightly saner
      
      This fixes two issues with the way we currently select compilers.
      
      If multiple compilers have the same "id" (os/arch/compiler/version), we
      currently prefer them by picking this one with the most supported
      languages.  This can have some surprising effects:
      
      * If you have no `gfortran` but you have `gfortran-8`, you can detect
        `clang` that has no configured C compiler -- just `f77` and `f90`. This
        happens frequently on macOS with homebrew. The bug is due to some
        kludginess about the way we detect mixed `clang`/`gfortran`.
      
      * We can prefer suffixed versions of compilers to non-suffixed versions,
        which means we may select `clang-gpu` over `clang` at LLNL. But,
        `clang-gpu` is not actually clang, and it can break builds. We should
        prefer `clang` if it's available.
      
      - [x] prefer compilers that have C compilers and prefer no name variation
        to variation.
      
      * tests: add test for which()
      f528022a
    • Harmen Stoppels's avatar
    • Todd Gamblin's avatar
      bugfix: ignore Apple's "gcc" by default (#17589) · 12958497
      Todd Gamblin authored
      Apple's gcc is really clang. We previously ignored it by default but
      there was a regression in #17110.
      
      Originally we checked for all clang versions with this, but I know of
      none other than `gcc` on macos that actually do this, so limiting to
      `apple-clang` should be ok.
      
      - [x] Fix check for `apple-clang` in `gcc.py` to use version detection
        from `spack.compilers.apple_clang`
      12958497
    • Scott Wittenburg's avatar
      3a8bc7ff
    • Scott Wittenburg's avatar
      Bugfix/install missing compiler from buildcache (#17536) · 9cbe358f
      Scott Wittenburg authored
      Ensure compilers installed from buildcache are registered.
      9cbe358f
    • Scott Wittenburg's avatar
    • Harmen Stoppels's avatar
      Fix security issue in CI (#17545) · 24dff9cf
      Harmen Stoppels authored
      
      The `spack-build-env.txt` file may contains many secrets, but the obvious one is the private signing key in `SPACK_SIGNING_KEY`. This file is nonetheless uploaded as a build artifact to gitlab. For anyone running CI on a public version of Gitlab this is a major security problem. Even for private Gitlab instances it can be very problematic.
      
      Co-authored-by: default avatarScott Wittenburg <scott.wittenburg@kitware.com>
      24dff9cf
    • Dr Owain Kenway's avatar
      llvm-flang: Only build offload code if cuda enabled (#17466) · e4265d31
      Dr Owain Kenway authored
      * llvm-flang Only build offload code if cuda enabled
      
      The current version executes `cmake(*args)` always as part of the post install.  If device offload is not part of the build, this results in referencing `args` without it being set and the error:
      
      ```
      ==> Error: UnboundLocalError: local variable 'args' referenced before assignment
      
      ```
      
      Looking at prevoous version of `llvm-package.py` this whole routine appears to be only required for offload, some indent `cmake/make/install` to be under the `if`.
      
      * Update package.py
      
      Add comment
      e4265d31
    • Sajid Ali's avatar
      clear mpicc and friends before each build (#17450) · 5e5cc991
      Sajid Ali authored
      * clear mpi env vars
      5e5cc991
  2. Jul 10, 2020
  3. Jun 30, 2020
Loading