Skip to content

compile py-numpy using gcc while having default compiler as intel? #6

@justinh2002

Description

@justinh2002

Gadi deployment ran into an error when trying to compile py-numpy using intel:

==> [2025-04-14-15:34:51.713427] module_cmd.load_module: intel-compiler/2021.10.0
==> [2025-04-14-15:34:58.605448] [TOOLCHAIN] MATCH Intel
==> [2025-04-14-15:35:01.860690] Error: IndexError: list index out of range

/g/data/vk83/prerelease/apps/spack/0.22/spack/var/spack/repos/builtin/packages/py-numpy/package.py:197, in flag_handler:
        194            )
        195            p1.stderr.close()
        196            out, err = p2.communicate()
  >>    197            gcc_version = Version(out.split()[5].decode("utf-8"))
        198            if gcc_version < Version("4.8"):
        199                raise InstallError(
        200                    "The GCC version that the Intel compiler "

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions