Compiling FPM with LFortran

GSOC 2025 @Fortran-lang

by Jinang Shah

Week 5 - Compliling jonquil and M_CLI2

June 14 – June 20, 2025

Another productive week in our journey to compile the full FPM with LFortran! This week, my focus was on two crucial libraries: jonquil and M_CLI2. Both were successfully compiled using LFortran with some workarounds. Tests are pending but as discussed we will test it later. Also compiling dynamic and polymorphic features used heavily in these libraries is a boost for LFortran to compile codes that uses classes and runtime polymorphism.

Work done this week:

I logged about 20 hours of dedicated work this week. By addressing issues in libraries like M_CLI2 and jonquil, we’ve cleared major barriers to moving forward with the full FPM compilation. Many of the fixes I implemented this week also help LFortran to strengthen over polymorphic or character semantics.

Thanks once again to Ondřej Čertík and Pranav Goswami for detailed reviews, mentoring, and encouragement throughout the week. Thank to all LFortran community members for their support and fixing some MREs created by me.

Plan for next week: