Coder Social home page Coder Social logo

Wire-server make error about wire-server HOT 5 CLOSED

wireapp avatar wireapp commented on April 28, 2024
Wire-server make error

from wire-server.

Comments (5)

ThomasR avatar ThomasR commented on April 28, 2024

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.

jschaul avatar jschaul commented on April 28, 2024

@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.

sd166 avatar sd166 commented on April 28, 2024

@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.

ThomasR avatar ThomasR commented on April 28, 2024

@jschaul Sorry, I'm not familiar with the ghc ecosystem. Not sure what to do there.

from wire-server.

elverkilde avatar elverkilde commented on April 28, 2024

@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)

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.