Skip to content
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 explicit module which is not marked for --# notpresent #202

Open
johnjcamilleri opened this issue Mar 19, 2019 · 0 comments
Open

Comments

@johnjcamilleri
Copy link
Member

Inari came across this problem building ExtendPes.gf:

$ runghc Setup install ExtendPes.gf
Building [Present] persian/ExtendPes.gf
src/persian/SentencePes.gf:58-62:
  Happened in the renaming of UseSlash
   constant not found: Cond
   given Predef, ResPes, Prelude, CommonX, CatPes, SentencePes
src/persian/SentencePes.gf:44-48:
  Happened in the renaming of UseCl
   constant not found: Cond
   given Predef, ResPes, Prelude, CommonX, CatPes, SentencePes
Ran: gf --batch --quiet --gf-lib-path=dist --gfo-dir=dist/present src/persian/ExtendPes.gf
gf exited with exit code: 1

The problem appears to be that it is trying to compile the module, which is not marked with --# notpresent, together with the present version of ParamX, which has Cond filtered out from it.
Specifying to only build alltenses is a workaround:

$ runghc Setup install alltenses ExtendPes.gf
Building [AllTenses] persian/ExtendPes.gf
Copying [Prelude] /Users/john/repositories/gf-core/.stack-work/install/x86_64-osx/lts-11.22/8.2.2/share/x86_64-osx-ghc-8.2.2/gf-3.10/lib/prelude
Copying [AllTenses] /Users/john/repositories/gf-core/.stack-work/install/x86_64-osx/lts-11.22/8.2.2/share/x86_64-osx-ghc-8.2.2/gf-3.10/lib/alltenses

The build script shouldn't really be trying to compile it for present, since we have nowhere specified that it is marked for present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant