GithubHelp home page GithubHelp logo

cabal install camfort fails about camfort HOT 9 CLOSED

camfort avatar camfort commented on September 26, 2024
cabal install camfort fails

from camfort.

Comments (9)

madgen avatar madgen commented on September 26, 2024

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.

ZedThree avatar ZedThree commented on September 26, 2024

Thanks for the quick response! Unfortunately, it looks like GHC 8 isn't available yet for my distro.

from camfort.

madgen avatar madgen commented on September 26, 2024

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.

ZedThree avatar ZedThree commented on September 26, 2024

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.

dorchard avatar dorchard commented on September 26, 2024

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.

ZedThree avatar ZedThree commented on September 26, 2024

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.

madgen avatar madgen commented on September 26, 2024

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.

dorchard avatar dorchard commented on September 26, 2024

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.

madgen avatar madgen commented on September 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.