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)

Most upvoted comments

@alalazo it looks like we didn’t put in any compiler support for x86 32 bit architectures when we filled out the compiler information, and I at least didn’t realize that i686 shows up in the uname output instead of x86.

EDITING TO ADD:

I think there’s an easier workaround: @SG77777 try changing the target entries in your compilers.yaml from x86 to i686.

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: x86 and set

packages:
  all:
    target: [x86]

in your packages.yaml.

The other way would be to change the from field in the i686 entry in lib/spack/llnl/util/cpu/microarchitectures.json from x86 to null.

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 i686 is a synonym for x86 (no flag difference) but we’re putting the wrong family in the compiler configuration either:

  1. because i686 is showing up in uname we’re getting the wrong family
  2. because i686 has no feature differences from x86 and our logic in archspec is messed up somehow.

We can see in the output @SG77777 provided already that Spack is properly detecting i686.