Giter Site home page Giter Site logo

Comments (6)

smolendawid avatar smolendawid commented on April 28, 2024 1

The progress I made is adding --platform=linux/amd64 to the build command

docker build --platform=linux/amd64 . -t duckling

returns:

 > [builder 6/7] RUN stack setup:
#13 18.70 Killed

but at least the stack is found.

from duckling.

jmacedoit avatar jmacedoit commented on April 28, 2024

Same issue here

from duckling.

aleneum avatar aleneum commented on April 28, 2024

If you use colima I found this which solved it for me at least explains the error.

Your VM probably needs more memory. (Edit: A lot more memory it seems)

The default VM created by Colima has 2 CPUs, 2GiB memory and 60GiB storage.

Building this from scratch requires a lot of memory. Try this:

I tried this:

# 50GB RAM and 100GB disk space
colima start --cpu 8 --memory 50 --disk 100

but the build process failed after about an hour with:

#15 3478.6 some                 > [7 of 8] Compiling Data.Some.Newtype
#15 3479.5 some                 > [8 of 8] Compiling Data.Some
#15 3489.5 some                 > copy/register
#15 3495.5 some                 > Installing library in /root/.stack/snapshots/x86_64-linux-tinfo6/8ae098606434194dfb0e7d2b8f74c0d24bfa643930ca121d2cfd7a8f7dd8d4d4/8.8.4/lib/x86_64-linux-ghc-8.8.4/some-1.0.2-4Gh6GmR1iTrGWcPYE7Ik5l
#15 3509.8 some                 > Registering library for some-1.0.2..
#15 3515.3
#15 3515.3 --  While building package haskell-src-exts-1.23.1 (scroll up to its section to see the error) using:
#15 3515.3       /root/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.0.1.0 build --ghc-options ""
#15 3515.3     Process exited with code: ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)

I tried --memory 8 but ran into:

#13 234.0 Processed 162800 cabal files
#13 234.3 Package index cache populated
#13 235.5 Killed

With --memory 16 it stopped here:

#13 266.1 Unpacking GHC into /root/.stack/programs/x86_64-linux/ghc-tinfo6-8.8.4.temp/ ...
#13 322.2 Configuring GHC ...
#13 341.6 Installing GHC ...
#13 508.6 Killed

With --memory 32 these were the last lines:

 => ERROR [builder 8/8] RUN stack install                                                                                                                                128.4s
------
 > [builder 8/8] RUN stack install:
#15 40.35 [1 of 2] Compiling Main             ( /root/.stack/setup-exe-src/setup-mPHDZzAJ.hs, /root/.stack/setup-exe-src/setup-mPHDZzAJ.o )
#15 41.19 [2 of 2] Compiling StackSetupShim   ( /root/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /root/.stack/setup-exe-src/setup-shim-mPHDZzAJ.o )
#15 41.82 Linking /root/.stack/setup-exe-cache/x86_64-linux-tinfo6/tmp-Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 ...
#15 57.30 base-compat          > configure
#15 109.7 base-compat          > Configuring base-compat-0.11.2...
#15 119.5 base-compat          > build
#15 119.6 base-orphans         > configure
#15 128.1 Killed
------

from duckling.

tmbo avatar tmbo commented on April 28, 2024

@aleneum did you get the build to work?+

from duckling.

aleneum avatar aleneum commented on April 28, 2024

Hello @tmbo,

did you get the build to work?+

unfortunately, I was not able to successfully compile duckling for amd64 with an M1 Macbook and colima. Seems like the amd64 emulation with colima just requires too much memory. But ramping up memory for the VM was enough to get docker images with compiled duckling versions to work with botpress which was my actual goal.

from duckling.

DanBmh avatar DanBmh commented on April 28, 2024

You might be interested in #703 which provides arm64 docker images.

from duckling.

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.