Skip to content

Build Failure with intel-oneapi-compilers using spack  #1045

@vijaymocherla

Description

@vijaymocherla

Hi,

I encountered a build error while attempting to build SIRIUS using Spack on Ubuntu 22.04 with the oneapi. The error seems related to the splindex_iterator_t class, where the member idx is not recognized, and it suggests idx_ instead. Notably, this issue does not occur when using GCC or other compilers. It appears to be specific to the Intel compilers.

90     In file included from /tmp/vijay/spack-stage/spack-stage-sirius-develop-aipxlrstv3lm6oamzjk5ptdlzd2lagkq/spack-src/src/hamiltonian/local_operator.cpp:14:
     91     In file included from /tmp/vijay/spack-stage/spack-stage-sirius-develop-aipxlrstv3lm6oamzjk5ptdlzd2lagkq/spack-src/src/hamiltonian/local_operator.hpp:18:
     92     In file included from /tmp/vijay/spack-stage/spack-stage-sirius-develop-aipxlrstv3lm6oamzjk5ptdlzd2lagkq/spack-src/src/core/fft/fft.hpp:18:
  >> 93     /tmp/vijay/spack-stage/spack-stage-sirius-develop-aipxlrstv3lm6oamzjk5ptdlzd2lagkq/spack-src/src/core/splindex.hpp:268:48: error: no member named 'idx' in '
            splindex_iterator_t<Index_t>'; did you mean 'idx_'?
     94       268 |         splindex_iterator_t<Index_t> tmp(this->idx());
     95           |                                                ^~~
     96           |                                                idx_

To reproduce the error use:

spack install --add sirius%oneapi@2025.0.4 ^intel-oneapi-mkl ^eigen ^libvdwxc ^libxc@7.0.0 ^wannier90

Error output:

error.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions