You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runtime error from executable built by LFortran #11
cgpu$ fpm run --compiler lfortran --profile debug --flag '--cpp --realloc-lhs-arrays --separate-compilation' -- fiats
Project is up to date
Runtime Error: End of file
<ERROR> Execution for object " fpm-find " returned exit code 1
<ERROR> *cmd_run*:stopping due to failed executions
STOP 1
[100%] Project compiled successfully.
+ build/lfortran_B7317DA6590B517A/test/driver
The fpm 'find' plugin
passes on searching without optional arguments
passes on searching on case-sensitive URL text via the options `--url --case`
passes on searching on package-name text via the option `--name`
passes on finding nothing for an unlisted package
passes on finding two matching packages
______ 5 of 5 tests passed. ______
5 of 5 tests passed in total. ____
However, switching to --profile release yields
[ 93%] fpm-find
+ mkdir -p build/lfortran_CAC51126F3D307ED/app/
+ /app/bin/lfortran -g --cpp --realloc-lhs-arrays --separate-compilation flag_lfortran_opt -I././include -Ijulienne/include -Iassert/include build/lfortran_0B06C8833CFD0477/fpm-find/app_fpm-find.F90.o build/lfortran_0B06C8833CFD0477/fpm-find/libfpm-find.a -o build/lfortran_CAC51126F3D307ED/app/fpm-find
error: no such file or directory: 'flag_lfortran_opt'
[ 95%] fpm-find done.
error: no such file or directory: 'flag_lfortran_opt'
<ERROR> Compilation failed for object " fpm-find "
<ERROR> stopping due to failed compilation
STOP 1
When I remove --profile release and insert --fast into my --flag argument, all tests pass.
@rouson You're describing the well-known fpm 0.13.0 bug with lfortran --profile release (which is already fixed upstream). That is NOT the topic of this issue.
Also this issue has nothing to do with fpm-findunit tests.
Please try the command in the original report, which is fpm run:
Activity
rouson commentedon Aug 16, 2026
@bonachea I just tried
which produced the following trailing output
However, switching to
--profile releaseyieldswhich looks to me like an
fpmbug.rouson commentedon Aug 16, 2026
Yep. Browsing the
fpmsource code turns up the lineWhen I remove
--profile releaseand insert--fastinto my--flagargument, all tests pass.bonachea commentedon Aug 16, 2026
@rouson You're describing the well-known fpm 0.13.0 bug with lfortran
--profile release(which is already fixed upstream). That is NOT the topic of this issue.Also this issue has nothing to do with
fpm-findunit tests.Please try the command in the original report, which is fpm run:
rouson commentedon Aug 19, 2026
Fixed by PR #12