Comments (9)
Sorry, this is our bad that we didn't put a lower bound on GHC's Base package.
We will make a release that includes a fix to that but meanwhile if you upgrade to GHC 8, the problem will go away.
Let us know if it fixes it.
from camfort.
Thanks for the quick response! Unfortunately, it looks like GHC 8 isn't available yet for my distro.
from camfort.
Hmm, I will look into making it compatible.
Meanwhile there is a (dynamically linked) binary for the older version (I will update that to an up to date version today as well) in the installation guide. It should work if you can get the dependencies for your distro. Let me know if you are having any difficulties with that.
from camfort.
Thanks, I didn't spot that. The binary runs, but I get "syntax error (from parser)" on most files. It choked on a F77-style comment line ("C" in first column), on the new line in a derived type declaration:
TYPE Map
...
in an F90 file, and on pointer assignment:
field_aux(0:nx,0:ny,k_low-1:k_high+1) => workf(:,:,:,1)
Any ideas?
from camfort.
Hi @ZedThree, which feature of Camfort are you trying to use? We actually have two different parsers being used internally, one which is much more robust than the other! We are in the process of converting everything to use the better parser.
from camfort.
Sorry, that was with count
, loops
and common
:
$ camfort common annotp.f cam_output
CamFort 0.776 - Cambridge Fortran Infrastructure.
Refactoring common blocks in "annotp.f"
annotp.f
camfort: annotp.f: line 2 column 1: syntax error (from parser)
$ head -2 annotp.f
SUBROUTINE ANNOTP(IDIRX,IDIRY)
C
ast
gives me a different error:
$ camfort ast annotp.f cam_output
CamFort 0.776 - Cambridge Fortran Infrastructure.
annotp.f/cam_output
camfort: annotp.f/cam_output: openFile: inappropriate type (Not a directory)
from camfort.
Not much we can do for the parser issues right now as some analysis use the old and very fragile parser. Hopefully, they will be updated soon.
As for the verification commands related to units and stencils, they should be able to deal with most Fortran programs and certainly in the presence of 77 comments, etc.
I have made a new version but it will take a while to get it into Hackage (cabal's package database), as soon as I upload the dynamically linked binary, I will let you know here. Until then I am retaining the issue open.
Also thanks a lot for reporting these. It really helps. Please do let us know if you come up with more ways to break it!
from camfort.
Incidentally loops
was deprecated and I just removed it, and I just updated count
to work with the new parser. But common
won't be fixed for a couple of weeks.
from camfort.
@ZedThree: Hey again! We have made a new release and here's an updated Linux binary.
I'm afraid you'll still have to wait until refactoring routines switch to the new parser.
Let me know if your problems persist.
from camfort.
Related Issues (20)
- camfort complains with double colon use statement HOT 1
- Camfort complains about contiguous arrays HOT 1
- Camfort 0.9 and 0.904
- Q: Is there a way to build camfort on Windows without hmatrix/OpenBLAS? HOT 8
- Support GHC 9.0 HOT 4
- When I use camfort's common elimination for Fortran77 legacy, I get an error. HOT 3
- Support Windows again HOT 6
- COMMON block elimination misbinds variables sometimes HOT 1
- Brew fails HOT 5
- Windows install of 1.1.1 - "The code execution cannot proceed because libbas.dll was not found" HOT 12
- Any projection when post f95 will be supported? HOT 3
- lack of documentation on how to refactor HOT 5
- Lack of command usage, example invocation documentation
- issues with building on macOS HOT 4
- New basic check: conditional in for loop
- [Possible change] Don't make units all lowercase when parsing. HOT 1
- Short-circuiting logic analysis
- Suppress warnings option HOT 1
- Update pre-built binaries
- Provide OCI/Docker-compatible container HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camfort.