Skip to content

Need instruction to find correct compiler #1

@brettviren

Description

@brettviren

The README probably needs to include telling the user how to get the right compiler.

Here's what I find using my recent build of phlex on Debian:

After doing

$ git clone https://github.com/Framework-R-D/phlex-examples.git
$ cd phlex-examples/
$ spack env activate my-phlex-environment
$ spack load cmake

I needed to do

$ spack setup gcc@14

before continuing to

$ cmake -S . -B build
$ cmake --build build

Otherwise CMake finds the system Clang-14.

BTW, my initial attempt to build with the default Clang-14 gave a huge number compiler of errors. I guess these are either due to some mismatch between Clang and the GCC-built phlex or due to the usual C++ cleanup needed when moving to one compiler or version that is more strict than what was previously used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions