Skip to content

Patch for building [email protected], [email protected], and [email protected]:2.61 with Intel oneAPI 2025.2; add [email protected]#1592

Merged
tldahlgren merged 13 commits intospack:developfrom
climbfuji:bugfix/yafyaml_oneapi
Oct 9, 2025
Merged

Patch for building [email protected], [email protected], and [email protected]:2.61 with Intel oneAPI 2025.2; add [email protected]#1592
tldahlgren merged 13 commits intospack:developfrom
climbfuji:bugfix/yafyaml_oneapi

Conversation

@climbfuji
Copy link
Copy Markdown
Contributor

@climbfuji climbfuji commented Sep 19, 2025

Description

The Intel oneAPI 2025.2 Fortran preprocessor has a bug that was reported in https://community.intel.com/t5/Intel-Fortran-Compiler/Regression-with-fpp-2025-2-0/td-p/1703735 as well as in an internal premier support ticket. Intel fixed this in their developmental code, and the bug fix will be in Intel oneAPI 2026.

This patch allows building [email protected] and [email protected] with that compiler, as well as a range of recent mapl versions @2.51:2.61 (I tested @2.53). The lower limit is due to the general conflict of mapl@:2.50 with Intel oneAPI, the upper bound is because 2.62.0, added here, contains the bug fixes for Intel oneAPI 2025.2.

I restricted the patch to versions 1.5.1/1.16.1 of yafyaml/pflogger because (a) I don't want to try if the patch works for the older versions, and (b) the package maintainer @mathomp4 and I had a conversation, and we will try to add this patch to the authoritative code base for later versions of yafyaml and pflogger.

I tested this on my local machine with [email protected].

@climbfuji
Copy link
Copy Markdown
Contributor Author

@spackbot fix style

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Sep 19, 2025

Let me see if I can fix that for you!

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Sep 19, 2025

I was able to run spack style --fix for you!

spack style --fix
repos/spack_repo/builtin/packages/yafyaml/package.py
�[1;34m==> �[0mrunning flake8
repos/spack_repo/builtin/packages/yafyaml/package.py:73: [E501] line too long (104 > 99 characters)
�[1;34m==> �[0mrunning isort
�[1;34m==> �[0mrunning black
Keep in mind that I cannot fix your flake8 or mypy errors, so if you have any you'll need to fix them and update the pull request. If I was able to push to your branch, if you make further changes you will need to pull from your updated branch before pushing again.

I've updated the branch with style fixes.

@climbfuji climbfuji marked this pull request as ready for review September 19, 2025 15:48
@climbfuji climbfuji requested a review from mathomp4 September 19, 2025 15:48
Comment thread repos/spack_repo/builtin/packages/yafyaml/package.py Outdated
@climbfuji
Copy link
Copy Markdown
Contributor Author

@spackbot fix style

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Sep 19, 2025

Let me see if I can fix that for you!

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Sep 19, 2025

I was able to run spack style --fix for you!

spack style --fix
repos/spack_repo/builtin/packages/pflogger/package.py
repos/spack_repo/builtin/packages/yafyaml/package.py
�[1;34m==> �[0mrunning flake8
repos/spack_repo/builtin/packages/pflogger/package.py:80: [E501] line too long (109 > 99 characters)
repos/spack_repo/builtin/packages/yafyaml/package.py:73: [E501] line too long (106 > 99 characters)
�[1;34m==> �[0mrunning isort
�[1;34m==> �[0mrunning black
Keep in mind that I cannot fix your flake8 or mypy errors, so if you have any you'll need to fix them and update the pull request. If I was able to push to your branch, if you make further changes you will need to pull from your updated branch before pushing again.

I've updated the branch with style fixes.

@climbfuji climbfuji changed the title Patch for building [email protected] with Intel oneAPI 2025.2 Patch for building [email protected] and [email protected] with Intel oneAPI 2025.2 Sep 19, 2025
@climbfuji
Copy link
Copy Markdown
Contributor Author

@spackbot fix style

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Sep 25, 2025

Let me see if I can fix that for you!

@climbfuji climbfuji changed the title Patch for building [email protected] and [email protected] with Intel oneAPI 2025.2 Patch for building [email protected], [email protected], and recent mapl versions with Intel oneAPI 2025.2 Sep 25, 2025
@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Sep 25, 2025

I was able to run spack style --fix for you!

spack style --fix
repos/spack_repo/builtin/packages/mapl/package.py
repos/spack_repo/builtin/packages/pflogger/package.py
repos/spack_repo/builtin/packages/quantum_espresso/package.py
repos/spack_repo/builtin/packages/yafyaml/package.py
�[1;34m==> �[0mrunning flake8
repos/spack_repo/builtin/packages/mapl/package.py:435: [E501] line too long (154 > 99 characters)
�[1;34m==> �[0mrunning isort
�[1;34m==> �[0mrunning black
Keep in mind that I cannot fix your flake8 or mypy errors, so if you have any you'll need to fix them and update the pull request. If I was able to push to your branch, if you make further changes you will need to pull from your updated branch before pushing again.

I've updated the branch with style fixes.

@climbfuji
Copy link
Copy Markdown
Contributor Author

@mathomp4 This is ready for your review. We may want to add version constraints and conflicts for mapl, similar to what I did for yafyaml and pflogger.

@mathomp4
Copy link
Copy Markdown
Contributor

@mathomp4 This is ready for your review. We may want to add version constraints and conflicts for mapl, similar to what I did for yafyaml and pflogger.

@climbfuji I'll try and test it today myself. In re MAPL, the biggest limit for versioning is from like 2.15 to 2.61. At least, that file only exists since then. But we already have:

    # MAPL can use ifx only from MAPL 2.51 onwards and only supports
    # ifx 2025.0 and newer due to bugs in ifx.
    conflicts("^[virtuals=fortran] intel-oneapi-compilers@2025:", when="@:2.50")

so maybe we just say your in-spack workaround is usable from 2.51 to 2.61? Hopefully with 2.62 we'll have the fixes necessary internally.

@climbfuji climbfuji changed the title Patch for building [email protected], [email protected], and recent mapl versions with Intel oneAPI 2025.2 Patch for building [email protected], [email protected], and [email protected]:2.61 with Intel oneAPI 2025.2 Sep 26, 2025
@climbfuji climbfuji changed the title Patch for building [email protected], [email protected], and [email protected]:2.61 with Intel oneAPI 2025.2 Patch for building [email protected], [email protected], and [email protected]:2.61 with Intel oneAPI 2025.2; add [email protected] Sep 26, 2025
@climbfuji
Copy link
Copy Markdown
Contributor Author

@mathomp4 This is ready!

@tldahlgren
Copy link
Copy Markdown
Contributor

FYI. Added missing maintainers (especially from mapl).

@tldahlgren tldahlgren merged commit acc5051 into spack:develop Oct 9, 2025
17 checks passed
mkrack pushed a commit to mkrack/spack-packages that referenced this pull request Dec 23, 2025
… with Intel oneAPI 2025.2; add [email protected] (spack#1592)

* Bug fix for Intel oneAPI 2025.2 that allows building [email protected]

* [@spackbot] updating style on behalf of climbfuji

* Use 'for' to apply patch in repos/spack_repo/builtin/packages/yafyaml/package.py

* Patch for building [email protected] with [email protected]

* [@spackbot] updating style on behalf of climbfuji

* Patch for building mapl with [email protected]

* [@spackbot] updating style on behalf of climbfuji

* Add [email protected], and constrain workaround for [email protected] to @:2.61

---------

Co-authored-by: climbfuji <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants