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

Not in scope: type constructor or class `Doc.DescribedParams' #1196

Closed
weaversa opened this issue May 14, 2021 · 4 comments
Closed

Not in scope: type constructor or class `Doc.DescribedParams' #1196

weaversa opened this issue May 14, 2021 · 4 comments

Comments

@weaversa
Copy link
Collaborator

I'm attempting to build cryptol-remote-api on CentOS 7 and am having trouble. The dockerfile is attached.
cryptol-solvers-centos7-nightly.Dockerfile.txt
Here is the error:
Any help would be appreciated.

[ 3 of 15] Compiling CryptolServer.Options ( src/CryptolServer/Options.hs, /workdir/dist-newstyle/build/x86_64-linux/ghc-8.10.2/cryptol-remote-api-0.1.0.0/build/CryptolServer/Options.o, /workdir/dist-newstyle/build/x86_64-linux/ghc-8.10.2/cryptol-remote-api-0.1.0.0/build/CryptolServer/Options.dyn_o )

src/CryptolServer/Options.hs:57:26: error:
    Not in scope: type constructor or class `Doc.DescribedParams'
    Module `Argo.Doc' does not export `DescribedParams'.
   |
57 | instance forall params . Doc.DescribedParams params => Doc.DescribedParams (WithOptions params) where
   |                          ^^^^^^^^^^^^^^^^^^^

src/CryptolServer/Options.hs:57:56: error:
    Not in scope: type constructor or class `Doc.DescribedParams'
    Module `Argo.Doc' does not export `DescribedParams'.
   |
57 | instance forall params . Doc.DescribedParams params => Doc.DescribedParams (WithOptions params) where
   |                                                        ^^^^^^^^^^^^^^^^^^^
cabal: Failed to build cryptol-remote-api-0.1.0.0 (which is required by
exe:cryptol-remote-api from cryptol-remote-api-0.1.0.0 and
exe:cryptol-eval-server from cryptol-remote-api-0.1.0.0).

The command '/bin/sh -c ./cry build cryptol-remote-api' returned a non-zero code: 1
@pnwamk
Copy link
Contributor

pnwamk commented May 14, 2021 via email

@pnwamk
Copy link
Contributor

pnwamk commented May 14, 2021

Aha! the --remote flag on the line in the Dockerfile

RUN git clone https://github.com/GaloisInc/cryptol.git . && git submodule update --init --remote

is causing the submodule to get bumped to a newer checkout than it is pinned by cryptol. I believe dropping the --remote will fix it. (I've experimented with the git commands but haven't rebuilt everything yet, but I'm pretty sure that's it.)

@weaversa
Copy link
Collaborator Author

Thank you @pnwamk !

@RyanGlScott
Copy link
Contributor

...speaking of which, I really should update cryptol to use the new API in argo, since I was the one who introduced that change. (I was originally going to wait until we updated libraries to use GHC 9.0 before doing this, but that might take longer than expected.)

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

3 participants