haskell-telegram-api icon indicating copy to clipboard operation
haskell-telegram-api copied to clipboard

Failed to build against GHC-8.2

Open klappvisor opened this issue 7 years ago • 1 comments

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

klappvisor avatar Dec 17 '17 08:12 klappvisor

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)

ibnuda avatar Feb 01 '18 05:02 ibnuda