-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling SNAP #3951
Comments
Now it fails with #3977. |
A general practice to edit comments will be to use “Edit: “ and then add changes. The changes done above is fine, thanks for pointing it! Also, it was intentional to put branch redirecting to list of commits as most often we need that, but this is fine as well. |
Thank you very much for the guidance @Pranavchiku! I will keep this in mind. I am sorry for deleting my quoted comment! I had done so to keep this thread clean because I thought I was reemphasizing the changes made. |
I am facing an issue related to the lfortran version. (lf) saurabh-kumar@Awadh:~/Projects/Packages/SNAP/src$ make
cpp -P time.0.F90 >time.f90
lfortran -c time.f90
Internal Compiler Error: Unhandled exception
Traceback (most recent call last):
.
.
.
LCompilersException: Incompatible format: LFortran Modfile was generated using version '0.1.0-dirty', but current LFortran version is '0.1.0-7-g430c8a917-dirty'
make: *** [Makefile:173: time.o] Error 1 I had faced this same issue when compiling lfortran. I had fixed it by creating the version tag stated in the above stacktrace by executing Trying to compile the package using GFortran throws the following error. (base) saurabh-kumar@Awadh:~/Projects/Packages/SNAP/src$ make FORTRAN=gfortran
cpp -P time.0.F90 >time.f90
gfortran -c time.f90
f951: Fatal Error: Reading module ‘global_module.mod’ at line 1 column 1: Unexpected EOF
compilation terminated.
make: *** [Makefile:173: time.o] Error 1 |
@kmr-srbh ask on zulip for further help. You need to clean the old modules, you are using modules from older version of LFortran. |
I am sorry for bothering you @certik. A clean build has fixed the issue. I am able to move forward with compiling SNAP now :) Thank you for the quick reply! I have a small question though. Do we need to periodically do a clean build after fetching the latest main due to the version problem? |
I recommend that every time you update LFortran, always do a clean build of SNAP. |
Branch: https://github.com/Pranavchiku/SNAP/tree/lf2
Thanks to previous work done by @certik, it was easy to setup.
Steps to compile, change directory to
src
default compiler is
lfortran
, to make it work withgfortran
do:Compilation status
Edit: Update link to point to the branch.
The text was updated successfully, but these errors were encountered: