# LFortran

**URL:** https://fortran-lang.discourse.group/c/compilers/lfortran/23.md

[Latest](https://fortran-lang.discourse.group/latest.md) · [Categories](https://fortran-lang.discourse.group/categories.md)

---

## [About the LFortran category](https://fortran-lang.discourse.group/t/about-the-lfortran-category/6950)

<div class="topic-metadata">

**Author:** [@milancurcic](https://fortran-lang.discourse.group/u/milancurcic)\
**Replies:** 0

</div>

Anything LFortran related. Bug reports, questions, tutorials, links, etc.

---

## [Recommended way to use LFortran with mpi](https://fortran-lang.discourse.group/t/recommended-way-to-use-lfortran-with-mpi/11150)

<div class="topic-metadata">

**Author:** [@rsci](https://fortran-lang.discourse.group/u/rsci)\
**Replies:** 39\
**Last updated:** [October 21, 2026, 4:35pm UTC](https://fortran-lang.discourse.group/t/recommended-way-to-use-lfortran-with-mpi/11150 "2026-10-21T16:35:08Z")

</div>

Hi, I would like to try compiling an existing fairly large MPI-based scientific Fortran code with LFortran. The code currently uses use mpi with standard point-to-point and collective operations. What is the recommende…

---

## [The Oregon Trail in the browser – FORTRAN 77 to WebAssembly with LFortran](https://fortran-lang.discourse.group/t/the-oregon-trail-in-the-browser-fortran-77-to-webassembly-with-lfortran/11070)

<div class="topic-metadata">

**Author:** [@minhdao](https://fortran-lang.discourse.group/u/minhdao)\
**Replies:** 14\
**Last updated:** [October 12, 2026, 1:55am UTC](https://fortran-lang.discourse.group/t/the-oregon-trail-in-the-browser-fortran-77-to-webassembly-with-lfortran/11070 "2026-10-12T01:55:36Z")

</div>

I compiled the 1978 edition of The Oregon Trail — ~1,000 lines of fixed-form FORTRAN 77 — to WebAssembly with LFortran, and it’s playable in your browser, even on your phone. Source code is here.

---

## [Can we get LFortran into homebrew-core?](https://fortran-lang.discourse.group/t/can-we-get-lfortran-into-homebrew-core/11016)

<div class="topic-metadata">

**Author:** [@minhdao](https://fortran-lang.discourse.group/u/minhdao)\
**Replies:** 8\
**Last updated:** [October 7, 2026, 10:05pm UTC](https://fortran-lang.discourse.group/t/can-we-get-lfortran-into-homebrew-core/11016 "2026-10-07T22:05:53Z")

</div>

Hey all, I just had a look at https://github.com/fortran-lang/homebrew-fortran and realized that the lfortran formula is a bit outdated (0.48.0 instead of 0.64.0). So I’m wondering if it’s possible to get LFortran into h…

---

## [Colossal Cave Adventure in the Browser — FORTRAN IV to WebAssembly with LFortran](https://fortran-lang.discourse.group/t/colossal-cave-adventure-in-the-browser-fortran-iv-to-webassembly-with-lfortran/11073)

<div class="topic-metadata">

**Author:** [@minhdao](https://fortran-lang.discourse.group/u/minhdao)\
**Replies:** 1\
**Last updated:** [August 31, 2026, 3:19am UTC](https://fortran-lang.discourse.group/t/colossal-cave-adventure-in-the-browser-fortran-iv-to-webassembly-with-lfortran/11073 "2026-08-31T03:19:07Z")

</div>

I thought I’d try another classic Fortran game: Colossal Cave Adventure (1976), originally written in FORTRAN IV. After compiling it with LFortran and using Emscripten for the WebAssembly build, it’s now playable in the …

---

## [Compiling Xfoil](https://fortran-lang.discourse.group/t/compiling-xfoil/10848)

<div class="topic-metadata">

**Author:** [@oroppas](https://fortran-lang.discourse.group/u/oroppas)\
**Replies:** 31\
**Last updated:** [July 22, 2026, 3:49am UTC](https://fortran-lang.discourse.group/t/compiling-xfoil/10848 "2026-07-22T03:49:10Z")

</div>

Compiling Xfoil https://web.mit.edu/drela/Public/web/xfoil/ failed with the following message: lfortran -c -O -fbounds-check --fixed-form ../src/xfoil.f tokenizer error: Expecting terminating symbol for program --\> …

---

## [LFortran now recognized by CMake](https://fortran-lang.discourse.group/t/lfortran-now-recognized-by-cmake/9144)

<div class="topic-metadata">

**Author:** [@jorgeg](https://fortran-lang.discourse.group/u/jorgeg)\
**Replies:** 10\
**Last updated:** [May 7, 2026, 12:54am UTC](https://fortran-lang.discourse.group/t/lfortran-now-recognized-by-cmake/9144 "2026-05-07T00:54:32Z")

</div>

I don’t think this has been mentioned elsewhere, see the release notes for CMake 3.31 Lfortran is now supported in CMake! :smiley:

---

## [LFortran compiles fpm](https://fortran-lang.discourse.group/t/lfortran-compiles-fpm/10744)

<div class="topic-metadata">

**Author:** [@certik](https://fortran-lang.discourse.group/u/certik)\
**Replies:** 0\
**Last updated:** [February 25, 2026, 5:04pm UTC](https://fortran-lang.discourse.group/t/lfortran-compiles-fpm/10744 "2026-02-25T17:04:17Z")

</div>

fpm is the most complex code that we now fully compile and run, all tests pass. More details in the blog post: LFortran compiles fpm - This is a huge milestone for us. We talk in the blog post about the current state…

---

## [LFortran compiles LAPACK](https://fortran-lang.discourse.group/t/lfortran-compiles-lapack/10695)

<div class="topic-metadata">

**Author:** [@certik](https://fortran-lang.discourse.group/u/certik)\
**Replies:** 7\
**Last updated:** [February 6, 2026, 6:35am UTC](https://fortran-lang.discourse.group/t/lfortran-compiles-lapack/10695 "2026-02-06T06:35:21Z")

</div>

LFortran can now compile LAPACK, single/double precision, real/complex, 32-bit/64-bit integers, all tests pass: LFortran compiles LAPACK - Thank you @ert for getting it over the finish line!

---

## [Unhelpful AI when asked for lfortran latest version](https://fortran-lang.discourse.group/t/unhelpful-ai-when-asked-for-lfortran-latest-version/10684)

<div class="topic-metadata">

**Author:** [@Harper](https://fortran-lang.discourse.group/u/Harper)\
**Replies:** 7\
**Last updated:** [February 4, 2026, 1:24am UTC](https://fortran-lang.discourse.group/t/unhelpful-ai-when-asked-for-lfortran-latest-version/10684 "2026-02-04T01:24:09Z")

</div>

Suspecting that some people have access to Lfortran later than version 0.59.0 released Jan 14, 2026 (I think) I tried asking Duck.ai and was told The latest version of LFortran is 0.19.0, released on January 31, 2026. Th…

---

## [Dev Log: LFortran Build & First Semantic Fix](https://fortran-lang.discourse.group/t/dev-log-lfortran-build-first-semantic-fix/10592)

<div class="topic-metadata">

**Author:** [@Adityazzzz](https://fortran-lang.discourse.group/u/Adityazzzz)\
**Replies:** 2\
**Last updated:** [January 3, 2026, 9:58pm UTC](https://fortran-lang.discourse.group/t/dev-log-lfortran-build-first-semantic-fix/10592 "2026-01-03T21:58:05Z")

</div>

Hi everyone, Following up on my previous post, I’ve successfully built LFortran from source (v0.59.0) and started digging into the Legacy OO / Polymorphism features as suggested. I spent some time analyzing the ASR (Ab…

---

## [LFortran problem when specifying optional arguments using an interface (cross-module interface binding)](https://fortran-lang.discourse.group/t/lfortran-problem-when-specifying-optional-arguments-using-an-interface-cross-module-interface-binding/9773)

<div class="topic-metadata">

**Author:** [@fxm](https://fortran-lang.discourse.group/u/fxm)\
**Replies:** 5\
**Last updated:** [June 11, 2025, 6:23pm UTC](https://fortran-lang.discourse.group/t/lfortran-problem-when-specifying-optional-arguments-using-an-interface-cross-module-interface-binding/9773 "2025-06-11T18:23:08Z")

</div>

After trying to compile my stats/ML lib with LFortran (version: 0.52.0), I’m back with what looks like a limitation in LFortran’s semantic analysis: When I call a function (with optional arguments) defined module 1 thro…

---

## [LFortran problem with derived type in data statement](https://fortran-lang.discourse.group/t/lfortran-problem-with-derived-type-in-data-statement/9572)

<div class="topic-metadata">

**Author:** [@fxm](https://fortran-lang.discourse.group/u/fxm)\
**Replies:** 3\
**Last updated:** [April 9, 2025, 5:20pm UTC](https://fortran-lang.discourse.group/t/lfortran-problem-with-derived-type-in-data-statement/9572 "2025-04-09T17:20:26Z")

</div>

Hi, I’ve decided to test compilation of some of my new projects with LFortran alongside gfortran, because I think it would be great to eventually use the modules in jupyter notebooks (esp. the plotting library) and want…

---

## [\[HELP\]-CI Checks Failing](https://fortran-lang.discourse.group/t/help-ci-checks-failing/9464)

<div class="topic-metadata">

**Author:** [@Th3C0d3Mast3R](https://fortran-lang.discourse.group/u/Th3C0d3Mast3R)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 2:41pm UTC](https://fortran-lang.discourse.group/t/help-ci-checks-failing/9464 "2025-03-24T14:41:05Z")

</div>

I came across some bugs in the lfortran, which I tried to resolve. When I created a pull request, I saw some checks were not successful. This is the pull request that I have made- \[PULL REQUEST\] I would appreciate any …

---

## [\`lfortran v0.48.0\` available on homebrew](https://fortran-lang.discourse.group/t/lfortran-v0-48-0-available-on-homebrew/9343)

<div class="topic-metadata">

**Author:** [@FedericoPerini](https://fortran-lang.discourse.group/u/FedericoPerini)\
**Replies:** 0\
**Last updated:** [March 13, 2025, 6:07pm UTC](https://fortran-lang.discourse.group/t/lfortran-v0-48-0-available-on-homebrew/9343 "2025-03-13T18:07:42Z")

</div>

Dear macOS Fortran Enthusiasts, the latest version of the lFortran compiler (v0.48.0) is now available on Homebrew via our custom tap. You can install it easily with the following commands: brew tap fortran-lang/homebr…

---

## [Uninitialized Variables in LLVM Fortran](https://fortran-lang.discourse.group/t/uninitialized-variables-in-llvm-fortran/8751)

<div class="topic-metadata">

**Author:** [@feenberg](https://fortran-lang.discourse.group/u/feenberg)\
**Replies:** 0\
**Last updated:** [October 26, 2024, 12:43pm UTC](https://fortran-lang.discourse.group/t/uninitialized-variables-in-llvm-fortran/8751 "2024-10-26T12:43:42Z")

</div>

Some time ago, SBLionel mentioned in this Discourse group:. Now with the move to LLVM, there is still no compile-time detection, but a fairly robust run-time detection. I would be thrilled to have runtime detection.…

---

## [Finding lfortran issues](https://fortran-lang.discourse.group/t/finding-lfortran-issues/8707)

<div class="topic-metadata">

**Author:** [@Harper](https://fortran-lang.discourse.group/u/Harper)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 7:29am UTC](https://fortran-lang.discourse.group/t/finding-lfortran-issues/8707 "2024-10-11T07:29:20Z")

</div>

Until this week, when I asked duckduckgo for lfortran issues I got a long list of open issues. Now I get referred to one issue. How do I recover the previous result?

---

## [I have a problem with LFortran installation](https://fortran-lang.discourse.group/t/i-have-a-problem-with-lfortran-installation/2440)

<div class="topic-metadata">

**Author:** [@Reza](https://fortran-lang.discourse.group/u/Reza)\
**Replies:** 38\
**Last updated:** [August 5, 2024, 4:30pm UTC](https://fortran-lang.discourse.group/t/i-have-a-problem-with-lfortran-installation/2440 "2024-08-05T16:30:03Z")

</div>

I have installed the LFORTRAN on WSL2 and I used conda environment to do that. Thus, after following all steps, when I tried to use these commands: cmake \\ -DCMAKE\_BUILD\_TYPE=Debug \\ -DWITH\_LLVM=yes \\ -DWIT…

---

## [Fortran On Web Using LFortran](https://fortran-lang.discourse.group/t/fortran-on-web-using-lfortran/7957)

<div class="topic-metadata">

**Author:** [@Ubaid-Shaikh](https://fortran-lang.discourse.group/u/Ubaid-Shaikh)\
**Replies:** 4\
**Last updated:** [May 3, 2024, 11:43pm UTC](https://fortran-lang.discourse.group/t/fortran-on-web-using-lfortran/7957 "2024-05-03T23:43:03Z")

</div>

We are happy to share that LFortran can compile Fortran codes to WebAssembly via the LLVM Backend. We have deployed the following examples in our blog post Fortran On Web Using LFortran. MNIST Classifier Matrix Multip…

---

## [Lfortran testing](https://fortran-lang.discourse.group/t/lfortran-testing/7795)

<div class="topic-metadata">

**Author:** [@Harper](https://fortran-lang.discourse.group/u/Harper)\
**Replies:** 5\
**Last updated:** [April 18, 2024, 1:32am UTC](https://fortran-lang.discourse.group/t/lfortran-testing/7795 "2024-04-18T01:32:32Z")

</div>

Fortran users may like to know what happened when I started using Lfortran recently. Its own web page says it’s “in alpha”. Having tried it with about 150 test programs (some copied from comp.lang.fortran, some from Fort…

---

## [LFortran example and request to development team](https://fortran-lang.discourse.group/t/lfortran-example-and-request-to-development-team/7391)

<div class="topic-metadata">

**Author:** [@apoorv01](https://fortran-lang.discourse.group/u/apoorv01)\
**Replies:** 4\
**Last updated:** [February 15, 2024, 2:12am UTC](https://fortran-lang.discourse.group/t/lfortran-example-and-request-to-development-team/7391 "2024-02-15T02:12:46Z")

</div>

Hi, I am trying my hand in lfortran and came across this example (example 4) in documentation https://docs.lfortran.org/en/design/ Somehow that example is not working for me. I have installed lfortran on my ubuntu 22.…

---

## [No debug in conda install lfortran on m1 mac?](https://fortran-lang.discourse.group/t/no-debug-in-conda-install-lfortran-on-m1-mac/7258)

<div class="topic-metadata">

**Author:** [@blametroi](https://fortran-lang.discourse.group/u/blametroi)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 1:57am UTC](https://fortran-lang.discourse.group/t/no-debug-in-conda-install-lfortran-on-m1-mac/7258 "2024-01-25T01:57:04Z")

</div>

This is more of a simple how-to question so I thought I’d ask here first instead of adding an issue over on github. My goal is to be able to compile and breakpoint debug on a Mac. Hobbyist user, relearning Fortran. I thi…

---

## [LFortran: When is the next release? Can I get a "WebAssembly" app?](https://fortran-lang.discourse.group/t/lfortran-when-is-the-next-release-can-i-get-a-webassembly-app/6941)

<div class="topic-metadata">

**Author:** [@danielc](https://fortran-lang.discourse.group/u/danielc)\
**Replies:** 14\
**Last updated:** [December 8, 2023, 9:55pm UTC](https://fortran-lang.discourse.group/t/lfortran-when-is-the-next-release-can-i-get-a-webassembly-app/6941 "2023-12-08T21:55:05Z")

</div>

Early next year I plan to do a mini “intro to Fortran” course for the grad students in my group. I would love to use LFortran for this. I just have two questions: (1) The web app on the LFortran website supports arrays…
