Guest User

Untitled

a guest
Jan 20th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. Vagrant.configure(2) do |config|
  5.  
  6. config.vm.box = "ubuntu/trusty64"
  7. config.ssh.forward_x11 = true
  8.  
  9. config.vm.provider "virtualbox" do |vb|
  10. vb.memory = "1024"
  11. vb.cpus = 1
  12. end
  13.  
  14. config.vm.hostname = "stack-project"
  15. config.vm.provision "shell", path: "root-bootstrap.sh"
  16.  
  17. #!/bin/bash
  18. set -x
  19. set -e
  20.  
  21. export DEBIAN_FRONTEND="noninteractive"
  22.  
  23. apt-get -qq update &>/dev/null
  24. apt-get -qq install software-properties-common
  25. pkg-config wget dpkg nano vim
  26. &>/dev/null
  27.  
  28. # Haskell Stack
  29. wget -qO- https://get.haskellstack.org/ | sh
  30.  
  31. chown -R vagrant $HOME
  32.  
  33. vagrant@stack-project:~$ stack --version
  34. Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0
  35.  
  36. vagrant@stack-project:~$ stack install --resolver lts-10.3 text
  37. Writing implicit global project config file to: /home/vagrant/.stack/global-project/stack.yaml
  38. Note: You can change the snapshot via the resolver field there.
  39. Using resolver: lts-10.3 specified on command line
  40. Downloaded lts-10.3 build plan.
  41. Preparing to install GHC to an isolated location.
  42. This will not interfere with any system-level installation.
  43.  
  44. Warning: Retry number 0 after a total delay of 0 us
  45. If you see this warning and stack fails to download, but running the
  46. command again solves the problem, please report here:
  47. https://github.com/commercialhaskell/stack/issues/3510
  48. Downloaded ghc-8.2.2.
  49. Installed GHC.
  50. Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
  51. Downloading root
  52. Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
  53. Downloading timestamp
  54. Downloading snapshot
  55. Downloading mirrors
  56. Cannot update index (no local copy)
  57. Downloading index
  58. Updated package index downloaded
  59. Update complete
  60. Populated index cache.
  61. Segmentation fault (core dumped)
  62.  
  63. vagrant@stack-project:~$ stack install --resolver lts-10.3 text
  64. [1 of 2] Compiling Main ( /home/vagrant/.stack/setup-exe-src/setup-mPHDZzAJ.hs, /home/vagrant/.stack/setup-exe-src/setup-mPHDZzAJ.o )
  65. [2 of 2] Compiling StackSetupShim ( /home/vagrant/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /home/vagrant/.stack/setup-exe-src/setup-shim-mPHDZzAJ.o )
  66. Linking /home/vagrant/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 ...
  67. text-1.2.2.2: download
  68. text-1.2.2.2: configure
  69. text-1.2.2.2: build
  70.  
  71. -- While building custom Setup.hs for package text-1.2.2.2 using:
  72. /home/vagrant/.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 -fdiagnostics-color=always"
  73. Process exited with code: ExitFailure (-6)
  74. Logs have been written to: /home/vagrant/.stack/global-project/.stack-work/logs/text-1.2.2.2.log
  75.  
  76. Configuring text-1.2.2.2...
  77. Preprocessing library for text-1.2.2.2..
  78. Building library for text-1.2.2.2..
  79. [ 1 of 44] Compiling Data.Text.Encoding.Error ( Data/Text/Encoding/Error.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Encoding/Error.o )
  80. [ 2 of 44] Compiling Data.Text.Internal.Builder.Int.Digits ( Data/Text/Internal/Builder/Int/Digits.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Builder/Int/Digits.o )
  81. [ 3 of 44] Compiling Data.Text.Internal.Builder.RealFloat.Functions ( Data/Text/Internal/Builder/RealFloat/Functions.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Builder/RealFloat/Functions.o )
  82. [ 4 of 44] Compiling Data.Text.Internal.Encoding.Utf16 ( Data/Text/Internal/Encoding/Utf16.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Encoding/Utf16.o )
  83. [ 5 of 44] Compiling Data.Text.Internal.Encoding.Utf32 ( Data/Text/Internal/Encoding/Utf32.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Encoding/Utf32.o )
  84. [ 6 of 44] Compiling Data.Text.Internal.Functions ( Data/Text/Internal/Functions.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Functions.o )
  85. [ 7 of 44] Compiling Data.Text.Internal.Read ( Data/Text/Internal/Read.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Read.o )
  86. [ 8 of 44] Compiling Data.Text.Internal.Unsafe ( Data/Text/Internal/Unsafe.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Unsafe.o )
  87. [ 9 of 44] Compiling Data.Text.Internal.Unsafe.Shift ( Data/Text/Internal/Unsafe/Shift.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Unsafe/Shift.o )
  88. [10 of 44] Compiling Data.Text.Array ( Data/Text/Array.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Array.o )
  89. [11 of 44] Compiling Data.Text.Internal.Unsafe.Char ( Data/Text/Internal/Unsafe/Char.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Unsafe/Char.o )
  90. [12 of 44] Compiling Data.Text.Internal.Encoding.Utf8 ( Data/Text/Internal/Encoding/Utf8.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Encoding/Utf8.o )
  91. [13 of 44] Compiling Data.Text.Internal ( Data/Text/Internal.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal.o )
  92. [14 of 44] Compiling Data.Text.Internal.Search ( Data/Text/Internal/Search.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Search.o )
  93. [15 of 44] Compiling Data.Text.Internal.Fusion.Size ( Data/Text/Internal/Fusion/Size.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Fusion/Size.o )
  94. [16 of 44] Compiling Data.Text.Internal.Fusion.Types ( Data/Text/Internal/Fusion/Types.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Fusion/Types.o )
  95. [17 of 44] Compiling Data.Text.Internal.Fusion.CaseMapping ( Data/Text/Internal/Fusion/CaseMapping.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Fusion/CaseMapping.o )
  96. [18 of 44] Compiling Data.Text.Internal.Fusion.Common ( Data/Text/Internal/Fusion/Common.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Fusion/Common.o )
  97. [19 of 44] Compiling Data.Text.Unsafe ( Data/Text/Unsafe.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Unsafe.o )
  98. [20 of 44] Compiling Data.Text.Internal.Private ( Data/Text/Internal/Private.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Private.o )
  99. [21 of 44] Compiling Data.Text.Internal.Fusion ( Data/Text/Internal/Fusion.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Fusion.o )
  100. [22 of 44] Compiling Data.Text.Show ( Data/Text/Show.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Show.o )
  101. [23 of 44] Compiling Data.Text.Internal.Encoding.Fusion.Common ( Data/Text/Internal/Encoding/Fusion/Common.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Encoding/Fusion/Common.o )
  102. [24 of 44] Compiling Data.Text.Internal.Lazy.Encoding.Fusion ( Data/Text/Internal/Lazy/Encoding/Fusion.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Lazy/Encoding/Fusion.o )
  103. [25 of 44] Compiling Data.Text.Internal.Encoding.Fusion ( Data/Text/Internal/Encoding/Fusion.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Internal/Encoding/Fusion.o )
  104. [26 of 44] Compiling Data.Text.Encoding ( Data/Text/Encoding.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Encoding.o )
  105. [27 of 44] Compiling Data.Text.Foreign ( Data/Text/Foreign.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text/Foreign.o )
  106. [28 of 44] Compiling Data.Text ( Data/Text.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Data/Text.o )
  107. ghc: internal error: Unable to commit 1048576 bytes of memory
  108. (GHC version 8.2.2 for x86_64_unknown_linux)
  109. Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
  110.  
  111. vagrant@stack-project:~$ stack install --cabal-verbose --resolver lts-10.3 text
  112. text-1.2.2.2: configure
  113. text-1.2.2.2: build
  114. text-1.2.2.2: copy/register
Add Comment
Please, Sign In to add comment