spack: Error: No compiler found...
Hi,
when was installing openfast with the command “spack install openfast+cxx %gcc@7.4.0” the mentioned error occur. Even though the command “spack compiler find” gives me the right version gcc@7.4.0.
Platform and user environment
Please report your OS here:
$ uname -a
4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:19:40 UTC 2019 i686 i686 i686 GNU/Linux
$ lsb_release -d
Description: Ubuntu 18.04.3 LTS
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 1
- Comments: 22 (10 by maintainers)
@alalazo it looks like we didn’t put in any compiler support for
x8632 bit architectures when we filled out the compiler information, and I at least didn’t realize thati686shows up in theunameoutput instead ofx86.EDITING TO ADD:
I think there’s an easier workaround: @SG77777 try changing the
targetentries in yourcompilers.yamlfromx86toi686.ORIGINAL (probably outdated) MESSAGE BELOW:
@SG77777 we have special handling for some base-case architectures that you’ll be able to use as a workaround.
One way to work around this until it’s fixed is to edit your compiler config to have
target: x86and setin your packages.yaml.
The other way would be to change the
fromfield in thei686entry inlib/spack/llnl/util/cpu/microarchitectures.jsonfromx86tonull.Don’t close the issue on the basis of either of those, but hopefully one of those will allow you to make progress while we fix this.
@tgamblin
i686is a synonym forx86(no flag difference) but we’re putting the wrong family in the compiler configuration either:i686is showing up inunamewe’re getting the wrong familyi686has no feature differences fromx86and our logic in archspec is messed up somehow.We can see in the output @SG77777 provided already that Spack is properly detecting
i686.