Comments (6)
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.
Same issue here
from duckling.
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.
@aleneum did you get the build to work?+
from duckling.
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.
You might be interested in #703 which provides arm64 docker images.
from duckling.
Related Issues (20)
- [CS] Czech language support HOT 1
- [HU] Hungary language Support
- Does duckling has support for sentence containing entities with negation
- Have plan to support Cantonese? HOT 1
- Support Persian(fa) Languages HOT 4
- [Persian][Numeral] Extract incorrect number from text
- ghc: panic! when stack build.
- Error building on MacOS with M1 Pro HOT 4
- Can't build Docker image HOT 2
- [it_IT] add time corpus/rules
- Default log files are created even if different paths are provided via options
- [ERROR] Network.Socket.sendBuf: resource vanished HOT 1
- Time intervals are too large by one grain HOT 1
- [Question] Which elements are relevant for Test-Failures? HOT 2
- Will not run on new Macbook
- Reject common phrases like "guten morgen"
- Up Text and Hashable constraints
- Ne dimension is not working. HOT 1
- Custom Dimension doesn't return the actual value!
- Intervals with leap year dates return incorrect years
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duckling.