Rebuild for flang 21#10
Open
regro-cf-autotick-bot wants to merge 2 commits into
Open
Conversation
TL;DR: We are trying to switch our Fortran compilers on windows to flang. This is not 100% guaranteed to work, but should be fine in the majority of cases. The new LLVM-based flang has become mature enough that it should be possible to broadly switch over our Fortran compilers on windows to it (until now we only had an ancient pre-LLVM flang 5, or alternatively the GCC-based `m2w64_fortran`). As such, this PR attempts to homogenize any use of `m2w64_fortran` and other `m2w64_*` compilers to our default stack (which would then be MSVC + flang on windows), with the exception of feedstocks for R-packages, which stay on the `m2w64_` compilers. Recipes that have hard-coded expectations about the name of the fortran compiler will need to adjust to use `%FC%` or `flang` for the compiler name. Similarly, you may need to change the linker to `%FC_LD%` or use `lld-link`. It is also possible that you run into compilation errors due to differences in compiler behaviour, bugs or as-yet unimplemented features. In case of compilation errors due to stricter default language standards, you should be able to fix things by passing `-std=legacy` to `FFLAGS`. If you have problems with this PR, feel free to ping the @c-f/flang-activation team. In case you have convinced yourself that flang really is not ready yet to be used to compile a given feedstock, you may also close this migrator PR.
…2026.06.04.12.45.1
Contributor
|
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Contributor
|
@c-f/flang-activation The Windows/CMake/Ninja build is failing with linker errors - symbols are not found that certainly do exist within the source tree. Any advice on how to debug? |
Contributor
|
@conda-forge/flang-activation The Windows/CMake/Ninja build is failing with linker errors - symbols are not found that certainly do exist within the source tree. Any advice on how to debug? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR has been triggered in an effort to update flang21.
IMPORTANT: If you close this PR, the bot will presume that the feedstock has been rebuilt with this update and WILL NOT MAKE ANOTHER PR. Please follow the instructions below for handling this PR.
Notes and instructions for handling this PR:
bot-rerunlabel and the bot will do it for you. See the instructions below if you do not have permissions to add a label.Here are some more details about this specific migrator:
If this PR was opened in error or needs to be updated please add the
bot-rerunlabel to this PR. The bot will close this PR and schedule another one. If you do not have permissions to add this label, you can use the phrase@conda-forge-admin, please rerun botin a PR comment to have theconda-forge-adminadd it for you.This PR was created by the conda-forge-bot. The conda-forge-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. Feel free to drop us a line if there are any issues! This PR was generated by https://github.com/conda-forge/conda-forge-bot/actions/runs/26954256374 - please use this URL for debugging.