Compiling FPM with LFortran

GSOC 2025 @Fortran-lang

by Jinang Shah

Week 11 - Building FPM to 100% (post StructType & String Refactor)

July 26 – August 1, 2025

Week 11 was focused on stability and regression handling. After the large StructType and String Refactor PRs were merged last week, FPM builds showed several issues. This week, I systematically created 10+ MREs for breaking cases, triaged them, and submitted some corresponding fixes and workarounds in LFortran. Now, with ~15 workarounds, FPM builds fully again using LFortran to LLVM.

Work done this week:

I spent around 25 hours this week solely on debugging and solving regressions. The current workaround-heavy solution ensures FPM builds with LFortran completely to LLVM. This serves as the staging ground for final stability polishing next week.

Special thanks again to my mentors Ondřej and Pranav for guiding during tough regressions and reviews. Also I want to thanks to Saurabh for doing StructType Refactoring and helping a lot towards its regressions on fpm compilation.

Plan for next week:

Previous Week Blog Home Next Week