Comments (5)
I ran into the same issue. The solution is to add the following line to build/alpine/Dockerfile.builder
echo -e "package-indices:\n- name: HackageOrig\n download-prefix: https://hackage.haskell.org/package/\n http: https://hackage.haskell.org/01-index.tar.gz" >> ~/.stack/config.yaml && \
Make sure to insert it just above the stack update
line.
( Found in commercialhaskell/stack#2509 (comment) )
from wire-server.
@ThomasR thanks, we've also seen this issue on some environments. Do you want to make a PR and add those config options to https://github.com/wireapp/wire-server/blob/develop/build/alpine/ghc/config.yaml ?
from wire-server.
@ThomasR Thank you, it helped! But there was the following error, which can not be solved (((
-- While building custom Setup.hs for package configurator-0.3.0.0 using:
/root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure (-6)
Logs have been written to: /src/wire-server/services/proxy/.stack-work/logs/configurator-0.3.0.0.log
Configuring configurator-0.3.0.0...
Preprocessing library for configurator-0.3.0.0..
Building library for configurator-0.3.0.0..
[1 of 5] Compiling Data.Configurator.Types.Internal ( Data/Configurator/Types/Internal.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Configurator/Types/Internal.o )
[2 of 5] Compiling Data.Configurator.Types ( Data/Configurator/Types.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Configurator/Types.o )
[3 of 5] Compiling Data.Configurator.Parser ( Data/Configurator/Parser.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Configurator/Parser.o )
/tmp/stack24/configurator-0.3.0.0/Data/Configurator/Parser.hs:19:1: warning: [-Wunused-imports]
The import of ‘Control.Applicative’ is redundant
except perhaps to import instances from ‘Control.Applicative’
To import instances alone, use: import Control.Applicative()
|
19 | import Control.Applicative
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
[4 of 5] Compiling Data.Configurator.Instances ( Data/Configurator/Instances.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Configurator/Instances.o )
/tmp/stack24/configurator-0.3.0.0/Data/Configurator/Instances.hs:6:1: warning: [-Wunused-imports]
The import of ‘Control.Applicative’ is redundant
except perhaps to import instances from ‘Control.Applicative’
To import instances alone, use: import Control.Applicative()
|
6 | import Control.Applicative
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
[5 of 5] Compiling Data.Configurator ( Data/Configurator.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Configurator.o )
ghc: internal error: Unable to commit 1048576 bytes of memory
(GHC version 8.2.2 for x86_64_alpine_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
-- While building custom Setup.hs for package th-desugar-1.7 using:
/root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure (-6)
Logs have been written to: /src/wire-server/services/proxy/.stack-work/logs/th-desugar-1.7.log
Configuring th-desugar-1.7...
Preprocessing library for th-desugar-1.7..
Building library for th-desugar-1.7..
[1 of 8] Compiling Language.Haskell.TH.Desugar.Util ( Language/Haskell/TH/Desugar/Util.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Language/Haskell/TH/Desugar/Util.o )
[2 of 8] Compiling Language.Haskell.TH.Desugar.Reify ( Language/Haskell/TH/Desugar/Reify.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Language/Haskell/TH/Desugar/Reify.o )
[3 of 8] Compiling Language.Haskell.TH.Desugar.Core ( Language/Haskell/TH/Desugar/Core.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Language/Haskell/TH/Desugar/Core.o )
ghc: internal error: Unable to commit 1048576 bytes of memory
(GHC version 8.2.2 for x86_64_alpine_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
from wire-server.
@jschaul Sorry, I'm not familiar with the ghc ecosystem. Not sure what to do there.
from wire-server.
@ThomasR I created a PR for the changes you suggested, thank you again.
@sd166 it looks like you are running out of memory:
ghc: internal error: Unable to commit 1048576 bytes of memory
can you try allocating more memory to your docker instance?
from wire-server.
Related Issues (20)
- digital currency HOT 1
- Compiling proteus v1.0.3 Mac os big sur HOT 3
- Password hashing / authentication mechanism HOT 4
- Error in building docker images HOT 2
- Adding external SMTP Service
- Cannot Build docker-intermediate HOT 4
- Are there a kind of admin console of this project? HOT 1
- Video Size Limit
- Performance Requirement HOT 3
- Voice Call is not working
- Warning when building docs HOT 4
- nginz: Keep /usr/include/zauth.h compatible with other projects
- Pull Request Preview Environments for increasing maintainer productivity HOT 1
- Could you see all your messages from all your clients ? HOT 1
- Configuration to allow any host (Access-Control-Allow-Origin: host) HOT 1
- WS connections refused with 1006, even though token is correct HOT 2
- Issue when running "direnv allow" on fresh git clone of repo. HOT 1
- Building wire-server locally HOT 4
- wire-server locally build
- v1/conversations/list/v2 The V1 API returnes the data structure with new access_role logical
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 wire-server.