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

Has anyone gotten the dev image to build? #111

Open
abharga2 opened this issue Oct 13, 2022 · 4 comments
Open

Has anyone gotten the dev image to build? #111

abharga2 opened this issue Oct 13, 2022 · 4 comments

Comments

@abharga2
Copy link

I'm running into tens of errors getting the dev image to build. Just wanted to see if anyone's gotten it working?

@totem37
Copy link

totem37 commented Nov 4, 2022

Yes, I got it working. ghcup was installing the latest version of ghc by default, which was incompatible with PICARD's requirements. To fix this, I replaced the lines:

ENV BOOTSTRAP_HASKELL_NONINTERACTIVE=yes \
    BOOTSTRAP_HASKELL_NO_UPGRADE=yes \

with:

ENV BOOTSTRAP_HASKELL_MINIMAL=yes \

Then, instead of:

    && ghcup install ghc \
    && ghcup install cabal \

I hardcoded the versions of ghc and Cabal:

    && ghcup install ghc base-4.14.1.0 \
    && ghcup set ghc "8.10.4" \
    && export PATH="/app/.ghcup/bin:$PATH" \
    && ghcup install cabal 3.8.1.0 \

I also replaced these lines:

    && git checkout f5f8d933db229d30e6fc558f5335f0a4e85d7d44 \
    && sed -i 's/3.5.0.0/3.6.0.0/' */*.cabal \
    && cabal install cabal-install/ \
        --allow-newer=Cabal-QuickCheck:Cabal \
        --allow-newer=Cabal-described:Cabal \
        --allow-newer=Cabal-tree-diff:Cabal \
        --allow-newer=cabal-install:Cabal \
        --allow-newer=cabal-install-solver:Cabal \

With the following:

    && git checkout HEAD \
    && sed -i 's/3.5.0.0/3.8.1.0/' */*.cabal \
    && cabal install --package-env . cabal-install/ \
        --allow-newer=Cabal-QuickCheck:Cabal \
        --allow-newer=Cabal-described:Cabal \
        --allow-newer=Cabal-tree-diff:Cabal \
        --allow-newer=cabal-install:Cabal \
        --allow-newer=cabal-install-solver:Cabal \
	--allow-newer=cabal-testsuite \

I hope this helps.

@SethCram
Copy link

SethCram commented Feb 3, 2023

@totem37 Thanks so much for posting this! I was able to get the eval image to build through adding your changes to my dockerfile and

#to avoid apt-get Ubuntu public key error
RUN rm /etc/apt/sources.list.d/cuda.list
RUN rm /etc/apt/sources.list.d/nvidia-ml.list

before the first

RUN apt-get update

@ppb-rapid
Copy link

ppb-rapid commented Mar 23, 2023

@totem37 This almost worked for me. But I got other version conflicts and errors like:

cabal test suite in conflict-set
and another error exactly like this open issue #105 specifically: Failed to build exe:cabal from cabal-install-3.8.1.0

Got any tips?

Also @SethCram your solution solved one of the errors that apt-get update was giving. Thanks!

@ppb-rapid
Copy link

Okay. I've got it working now.

What worked for me was @totem37 's solution but with a little modification:

&& ghcup install cabal 3.10.1.0 \

and

&& sed -i 's/3.5.0.0/3.10.1.0/' */*.cabal \

@tscholak Please help make changes to the Dockerfile and resolve these bugs. Thanks!

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

4 participants