Skip to content

[windows] gcc 15 hotfix: use non-default initializer for compile_command_t #1147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025

Conversation

perazz
Copy link
Member

@perazz perazz commented May 21, 2025

Reported at https://fortran-lang.discourse.group/t/error-building-csv-fortran-with-fpm/9760/2

The MSYS build of fpm fails at generating a new compile_command_t with the default initializer.
MSYS2 uses gcc15 already while we don't build fpm against it yet.

Fix: employ a user-defined initializer.

cc: @zoziha @MehdiChinoune could you please confirm?

@MehdiChinoune do you think it would be easier to release an fpm 0.12.1 or to patch the fpm source in the MSYS2 recipe?

@MehdiChinoune
Copy link

Patching looks easier

@Carltoffel
Copy link
Member

I also have gcc15 on Linux, and it has the same bug. But with your hotfix it works. 👍

@perazz
Copy link
Member Author

perazz commented May 22, 2025

Thanks for reporting @Carltoffel, I will merge this as it seems the issue is gcc15-wise (not Windows only)

@perazz perazz merged commit 413fdbd into fortran-lang:main May 22, 2025
27 checks passed
@perazz perazz deleted the hotfix_compile_commands branch May 22, 2025 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants