klappvisor / haskell-telegram-api

Telegram Bot API for Haskell
BSD 3-Clause "New" or "Revised" License
202 stars 67 forks source link

Failed to build against GHC-8.2 #112

Open klappvisor opened 6 years ago

klappvisor commented 6 years ago

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 commented 6 years ago

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 )

src/Web/Telegram/API/Bot/Data.hs:85: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()
   |
85 | import           Data.Aeson.Types
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


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)