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

Failed to build against GHC-8.2 #112

Open
klappvisor opened this issue Dec 17, 2017 · 1 comment
Open

Failed to build against GHC-8.2 #112

klappvisor opened this issue Dec 17, 2017 · 1 comment

Comments

@klappvisor
Copy link
Owner

https://matrix.hackage.haskell.org/package/telegram-api#GHC-8.2/telegram-api-0.7.0.0

Configuring library for telegram-api-0.7.0.0..
Preprocessing library for telegram-api-0.7.0.0..
Building library for telegram-api-0.7.0.0..
[ 1 of 15] Compiling Servant.Client.MultipartFormData ( src/Servant/Client/MultipartFormData.hs, /tmp/matrix-worker/1513201967/dist-newstyle/build/x86_64-linux/ghc-8.2.2/telegram-api-0.7.0.0/build/Servant/Client/MultipartFormData.o )
[ 2 of 15] Compiling Web.Telegram.API.Bot.API.Core ( src/Web/Telegram/API/Bot/API/Core.hs, /tmp/matrix-worker/1513201967/dist-newstyle/build/x86_64-linux/ghc-8.2.2/telegram-api-0.7.0.0/build/Web/Telegram/API/Bot/API/Core.o )
[ 3 of 15] Compiling Web.Telegram.API.Bot.JsonExt ( src/Web/Telegram/API/Bot/JsonExt.hs, /tmp/matrix-worker/1513201967/dist-newstyle/build/x86_64-linux/ghc-8.2.2/telegram-api-0.7.0.0/build/Web/Telegram/API/Bot/JsonExt.o )
[ 4 of 15] Compiling Web.Telegram.API.Bot.Data ( src/Web/Telegram/API/Bot/Data.hs, /tmp/matrix-worker/1513201967/dist-newstyle/build/x86_64-linux/ghc-8.2.2/telegram-api-0.7.0.0/build/Web/Telegram/API/Bot/Data.o )

src/Web/Telegram/API/Bot/Data.hs:79:1: warning: [-Wunused-imports]
    The import of ‘Data.Aeson.Types’ is redundant
      except perhaps to import instances from ‘Data.Aeson.Types’
    To import instances alone, use: import Data.Aeson.Types()
   |
79 | import           Data.Aeson.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build telegram-api-0.7.0.0. The build process was killed (i.e. SIGKILL). The typical reason for this is that there is not enough memory available (e.g. the OS killed a process using lots of memory).
@ibnuda
Copy link

ibnuda commented Feb 1, 2018

Experienced the same issue. Using stack lts-10.4.

Configuring telegram-api-0.7.2.0...
Preprocessing library for telegram-api-0.7.2.0..
Building library for telegram-api-0.7.2.0..
[ 1 of 16] Compiling Servant.Client.MultipartFormData ( src/Servant/Client/MultipartFormData.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.0.1.0/build/Servant/Client/MultipartFormData.o )
[ 2 of 16] Compiling Web.Telegram.API.Bot.API.Core ( src/Web/Telegram/API/Bot/API/Core.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.0.1.0/build/Web/Telegram/API/Bot/API/Core.o )
[ 3 of 16] Compiling Web.Telegram.API.Bot.JsonExt ( src/Web/Telegram/API/Bot/JsonExt.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.0.1.0/build/Web/Telegram/API/Bot/JsonExt.o )
[ 4 of 16] Compiling Web.Telegram.API.Bot.Data ( src/Web/Telegram/API/Bot/Data.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.0.1.0/build/Web/Telegram/API/Bot/Data.o )

�[;1msrc/Web/Telegram/API/Bot/Data.hs:85:1: �[;1m�[35mwarning:�[0m�[0m�[;1m [�[;1m�[35m-Wunused-imports�[0m�[0m�[;1m]�[0m�[0m�[;1m
    The import of ‘Data.Aeson.Types’ is redundant
      except perhaps to import instances from ‘Data.Aeson.Types’
    To import instances alone, use: import Data.Aeson.Types()�[0m�[0m
�[;1m�[34m   |�[0m�[0m
�[;1m�[34m85 |�[0m�[0m �[;1m�[35mimport           Data.Aeson.Types�[0m�[0m
�[;1m�[34m   |�[0m�[0m�[;1m�[35m ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m
�[0m�[0m�[0m

While the output of stack build says it indicates an OUT OF MEMORY.

Process exited with code: ExitFailure (-9) (THIS MAY INDICATE OUT OF MEMORY)

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

2 participants