{"action":"created","issue":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/654","repository_url":"https://api.github.com/repos/ghcjs/ghcjs","labels_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/654/labels{/name}","comments_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/654/comments","events_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/654/events","html_url":"https://github.com/ghcjs/ghcjs/issues/654","id":322543220,"number":654,"title":"8.2 / 8.4: Intermittent panic in the type checker during booting","user":{"login":"ElvishJerricco","id":1365692,"avatar_url":"https://avatars0.githubusercontent.com/u/1365692?v=4","gravatar_id":"","url":"https://api.github.com/users/ElvishJerricco","html_url":"https://github.com/ElvishJerricco","followers_url":"https://api.github.com/users/ElvishJerricco/followers","following_url":"https://api.github.com/users/ElvishJerricco/following{/other_user}","gists_url":"https://api.github.com/users/ElvishJerricco/gists{/gist_id}","starred_url":"https://api.github.com/users/ElvishJerricco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElvishJerricco/subscriptions","organizations_url":"https://api.github.com/users/ElvishJerricco/orgs","repos_url":"https://api.github.com/users/ElvishJerricco/repos","events_url":"https://api.github.com/users/ElvishJerricco/events{/privacy}","received_events_url":"https://api.github.com/users/ElvishJerricco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-05-12T21:10:22Z","updated_at":"2018-05-16T07:36:37Z","closed_at":null,"author_association":"NONE","body":"This is an intermittent failure in this PR: https://github.com/NixOS/nixpkgs/pull/40392. To reproduce, checkout that version of nixpkgs and run `nix-build -A haskell.compiler.ghcjs82`. For me it has failed twice and succeeded twice. If it succeeds, you can build it again by adding the `--check` flag so that you don't have to delete the successful build.\r\n\r\nThe failure is always the same, during the booting stage. Here's the build log, starting after it begins booting Cabal:\r\n\r\n```\r\ninstalling Cabal library\r\n/tmp/nix-build-ghcjs.drv-0/configured-ghcjs-src/lib/boot$ [ghcjs-pkg]: /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg \"list\" \"--simple-output\" \"--no-user-package-db\"\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg list --simple-output --no-user-package-db\r\narray-0.5.2.0 base-4.10.1.0 binary-0.8.5.1 bytestring-0.10.8.2 containers-0.5.10.2 deepseq-1.4.3.0 directory-1.3.0.2 filepath-1.4.1.2 ghc-8.2.2 ghc-boot-8.2.2 ghc-boot-th-8.2.2 ghc-prim-0.5.1.1 ghci-8.2.2 ghcjs-prim-0.1.1.0 ghcjs-th-0.1.0.0 integer-gmp-1.0.1.0 pretty-1.1.3.3 process-1.6.1.0 rts-1.0 template-haskell-2.12.0.0 time-1.8.0.2 transformers-0.5.2.0 unix-2.7.2.2\r\n/tmp/nix-build-ghcjs.drv-0/configured-ghcjs-src/lib/boot/pkg/Cabal$ rm_rf dist\r\n/tmp/nix-build-ghcjs.drv-0/configured-ghcjs-src/lib/boot$ [cabal]: /nix/store/jzy31vh7qr8g2xkxy0fys0cqvb6g0xf6-cabal-install-2.2.0.0/bin/cabal \"--config-file\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec/cabalBootConfig\" \"--ignore-sandbox\" \"install\" \"./pkg/Cabal\" \"--global\" \"--ghcjs\" \"--one-shot\" \"--avoid-reinstalls\" \"--builddir\" \"dist\" \"--with-compiler\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs\" \"--with-hc-pkg\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg\" \"--prefix\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec\" \"--enable-documentation\" \"--haddock-html\" \"--haddock-hoogle\" \"--haddock-hyperlink-source\" \"--enable-debug-info\" \"--disable-library-stripping\" \"--disable-executable-stripping\" \"-fghci\" \"--enable-profiling\" \"--enable-shared\" \"--ghcjs-options=-j4\" \"-v2\" \"--dry-run\"\r\n/nix/store/jzy31vh7qr8g2xkxy0fys0cqvb6g0xf6-cabal-install-2.2.0.0/bin/cabal --config-file /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec/cabalBootConfig --ignore-sandbox install ./pkg/Cabal --global --ghcjs --one-shot --avoid-reinstalls --builddir dist --with-compiler /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs --with-hc-pkg /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg --prefix /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec --enable-documentation --haddock-html --haddock-hoogle --haddock-hyperlink-source --enable-debug-info --disable-library-stripping --disable-executable-stripping -fghci --enable-profiling --enable-shared --ghcjs-options=-j4 -v2 --dry-run\r\nlooking for tool c2hs near compiler in\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin\r\n/nix/store/bnl4qmlri04baywqmhl718bfaj5cmj5q-cpphs-1.20.8/bin/cpphs --version\r\n/nix/store/487kalv9jm8g5fs3bm5yhby63mcpnbfv-gcc-wrapper-7.3.0/bin/gcc -dumpversion\r\n/nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2/bin/ghc --numeric-version\r\n/nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2/bin/ghc-pkg --version\r\nlooking for tool haddock near compiler in\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin\r\nfound haddock in\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/haddock-ghcjs\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/haddock-ghcjs --version\r\n/nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2/bin/hpc version\r\nlooking for tool hsc2hs near compiler in\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin\r\nfound hsc2hs in\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/hsc2hs-ghcjs\r\n/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/hsc2hs-ghcjs --version\r\n/nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2/bin/runghc --version\r\n/nix/store/inn1myxkdnw11k8bzfs32bjm9w1w90jy-gnutar-1.30/bin/tar --help\r\nWarning: the --global flag is deprecated -- it is generally considered a bad\r\nidea to install packages into the global store\r\nWarning: No remote package servers have been specified. Usually you would have\r\none specified in the config file.\r\nFailed to query pkg-config, Cabal will continue without solving for pkg-config\r\nconstraints: dieVerbatim: user error (CallStack (from HasCallStack):\r\ndie', called at ./Distribution/Simple/Program/Db.hs:423:28 in\r\nCabal-2.2.0.1-FQFDxSk1q1q5t9xq8LDL8K:Distribution.Simple.Program.Db\r\nrequireProgram, called at ./Distribution/Solver/Types/PkgConfigDb.hs:65:21 in\r\nmain:Distribution.Solver.Types.PkgConfigDb\r\ncabal: The program 'pkg-config' is required but it could not be found.\r\n)\r\nResolving dependencies...\r\nIn order, the following would be installed:\r\nCabal-2.0.1.0 (new package)\r\n/tmp/nix-build-ghcjs.drv-0/configured-ghcjs-src/lib/boot$ [cabal]: /nix/store/jzy31vh7qr8g2xkxy0fys0cqvb6g0xf6-cabal-install-2.2.0.0/bin/cabal \"--config-file\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec/cabalBootConfig\" \"--ignore-sandbox\" \"install\" \"./pkg/Cabal\" \"--global\" \"--ghcjs\" \"--one-shot\" \"--avoid-reinstalls\" \"--builddir\" \"dist\" \"--with-compiler\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs\" \"--with-hc-pkg\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg\" \"--prefix\" \"/nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec\" \"--enable-documentation\" \"--haddock-html\" \"--haddock-hoogle\" \"--haddock-hyperlink-source\" \"--enable-debug-info\" \"--disable-library-stripping\" \"--disable-executable-stripping\" \"-fghci\" \"--enable-profiling\" \"--enable-shared\" \"--ghcjs-options=-j4\"\r\n/nix/store/jzy31vh7qr8g2xkxy0fys0cqvb6g0xf6-cabal-install-2.2.0.0/bin/cabal --config-file /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec/cabalBootConfig --ignore-sandbox install ./pkg/Cabal --global --ghcjs --one-shot --avoid-reinstalls --builddir dist --with-compiler /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs --with-hc-pkg /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg --prefix /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec --enable-documentation --haddock-html --haddock-hoogle --haddock-hyperlink-source --enable-debug-info --disable-library-stripping --disable-executable-stripping -fghci --enable-profiling --enable-shared --ghcjs-options=-j4\r\nWarning: the --global flag is deprecated -- it is generally considered a bad\r\nidea to install packages into the global store\r\nWarning: No remote package servers have been specified. Usually you would have\r\none specified in the config file.\r\nResolving dependencies...\r\nConfiguring Cabal-2.0.1.0...\r\nPreprocessing library for Cabal-2.0.1.0..\r\nBuilding library for Cabal-2.0.1.0..\r\n[  1 of 168] Compiling Distribution.Compat.Binary ( Distribution/Compat/Binary.hs, dist/build/Distribution/Compat/Binary.js_o )\r\n[  2 of 168] Compiling Distribution.Compat.Exception ( Distribution/Compat/Exception.hs, dist/build/Distribution/Compat/Exception.js_o )\r\n[  3 of 168] Compiling Distribution.Compat.Internal.TempFile ( Distribution/Compat/Internal/TempFile.hs, dist/build/Distribution/Compat/Internal/TempFile.js_o )\r\n[  4 of 168] Compiling Distribution.Compat.Map.Strict ( Distribution/Compat/Map/Strict.hs, dist/build/Distribution/Compat/Map/Strict.js_o )\r\n[  5 of 168] Compiling Distribution.Compat.MonadFail ( Distribution/Compat/MonadFail.hs, dist/build/Distribution/Compat/MonadFail.js_o )\r\n[  6 of 168] Compiling Distribution.Compat.Semigroup ( Distribution/Compat/Semigroup.hs, dist/build/Distribution/Compat/Semigroup.js_o )\r\n[  7 of 168] Compiling Distribution.Compat.Stack ( Distribution/Compat/Stack.hs, dist/build/Distribution/Compat/Stack.js_o )\r\n[  8 of 168] Compiling Distribution.Compat.Prelude ( Distribution/Compat/Prelude.hs, dist/build/Distribution/Compat/Prelude.js_o )\r\n[  9 of 168] Compiling Distribution.Compat.SnocList ( Distribution/Compat/SnocList.hs, dist/build/Distribution/Compat/SnocList.js_o )\r\n[ 10 of 168] Compiling Distribution.Compat.ReadP ( Distribution/Compat/ReadP.hs, dist/build/Distribution/Compat/ReadP.js_o )\r\n[ 11 of 168] Compiling Distribution.Compat.Prelude.Internal ( Distribution/Compat/Prelude/Internal.hs, dist/build/Distribution/Compat/Prelude/Internal.js_o )\r\n[ 12 of 168] Compiling Distribution.Compat.Graph ( Distribution/Compat/Graph.hs, dist/build/Distribution/Compat/Graph.js_o )\r\n[ 13 of 168] Compiling Distribution.Compat.GetShortPathName ( Distribution/Compat/GetShortPathName.hs, dist/build/Distribution/Compat/GetShortPathName.js_o )\r\n[ 14 of 168] Compiling Distribution.Compat.DList ( Distribution/Compat/DList.hs, dist/build/Distribution/Compat/DList.js_o )\r\n[ 15 of 168] Compiling Distribution.Compat.CopyFile ( Distribution/Compat/CopyFile.hs, dist/build/Distribution/Compat/CopyFile.js_o )\r\n[ 16 of 168] Compiling Distribution.Compat.Environment ( Distribution/Compat/Environment.hs, dist/build/Distribution/Compat/Environment.js_o )\r\n[ 17 of 168] Compiling Distribution.Compat.CreatePipe ( Distribution/Compat/CreatePipe.hs, dist/build/Distribution/Compat/CreatePipe.js_o )\r\n\r\nDistribution/Compat/CreatePipe.hs:7:1: warning: [-Wunused-imports]\r\n    The import of `hSetEncoding, localeEncoding'\r\n    from module `System.IO' is redundant\r\n  |\r\n7 | import System.IO (Handle, hSetEncoding, localeEncoding)\r\n  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n[ 18 of 168] Compiling Distribution.GetOpt ( Distribution/GetOpt.hs, dist/build/Distribution/GetOpt.js_o )\r\n[ 19 of 168] Compiling Distribution.Lex ( Distribution/Lex.hs, dist/build/Distribution/Lex.js_o )\r\n[ 20 of 168] Compiling Distribution.PackageDescription.Utils ( Distribution/PackageDescription/Utils.hs, dist/build/Distribution/PackageDescription/Utils.js_o )\r\n[ 21 of 168] Compiling Distribution.ReadE ( Distribution/ReadE.hs, dist/build/Distribution/ReadE.js_o )\r\n[ 22 of 168] Compiling Distribution.Simple.CCompiler ( Distribution/Simple/CCompiler.hs, dist/build/Distribution/Simple/CCompiler.js_o )\r\n[ 23 of 168] Compiling Distribution.Simple.PreProcess.Unlit ( Distribution/Simple/PreProcess/Unlit.hs, dist/build/Distribution/Simple/PreProcess/Unlit.js_o )\r\n[ 24 of 168] Compiling Distribution.Simple.Program.Internal ( Distribution/Simple/Program/Internal.hs, dist/build/Distribution/Simple/Program/Internal.js_o )\r\n[ 25 of 168] Compiling Distribution.TestSuite ( Distribution/TestSuite.hs, dist/build/Distribution/TestSuite.js_o )\r\n[ 26 of 168] Compiling Distribution.Text ( Distribution/Text.hs, dist/build/Distribution/Text.js_o )\r\n[ 27 of 168] Compiling Distribution.System ( Distribution/System.hs, dist/build/Distribution/System.js_o )\r\n[ 28 of 168] Compiling Distribution.Types.BuildType ( Distribution/Types/BuildType.hs, dist/build/Distribution/Types/BuildType.js_o )\r\n[ 29 of 168] Compiling Distribution.Types.Condition ( Distribution/Types/Condition.hs, dist/build/Distribution/Types/Condition.js_o )\r\n[ 30 of 168] Compiling Distribution.Types.CondTree ( Distribution/Types/CondTree.hs, dist/build/Distribution/Types/CondTree.js_o )\r\n[ 31 of 168] Compiling Distribution.Types.ExecutableScope ( Distribution/Types/ExecutableScope.hs, dist/build/Distribution/Types/ExecutableScope.js_o )\r\n[ 32 of 168] Compiling Distribution.Types.ForeignLibOption ( Distribution/Types/ForeignLibOption.hs, dist/build/Distribution/Types/ForeignLibOption.js_o )\r\n[ 33 of 168] Compiling Distribution.Types.ForeignLibType ( Distribution/Types/ForeignLibType.hs, dist/build/Distribution/Types/ForeignLibType.js_o )\r\n[ 34 of 168] Compiling Distribution.Types.SourceRepo ( Distribution/Types/SourceRepo.hs, dist/build/Distribution/Types/SourceRepo.js_o )\r\n[ 35 of 168] Compiling Distribution.Utils.Base62 ( Distribution/Utils/Base62.hs, dist/build/Distribution/Utils/Base62.js_o )\r\n[ 36 of 168] Compiling Distribution.Utils.MapAccum ( Distribution/Utils/MapAccum.hs, dist/build/Distribution/Utils/MapAccum.js_o )\r\n[ 37 of 168] Compiling Distribution.Utils.Progress ( Distribution/Utils/Progress.hs, dist/build/Distribution/Utils/Progress.js_o )\r\n[ 38 of 168] Compiling Distribution.Utils.String ( Distribution/Utils/String.hs, dist/build/Distribution/Utils/String.js_o )\r\n[ 39 of 168] Compiling Distribution.Utils.ShortText ( Distribution/Utils/ShortText.hs, dist/build/Distribution/Utils/ShortText.js_o )\r\n[ 40 of 168] Compiling Distribution.Types.PkgconfigName ( Distribution/Types/PkgconfigName.hs, dist/build/Distribution/Types/PkgconfigName.js_o )\r\n[ 41 of 168] Compiling Distribution.Types.ComponentId ( Distribution/Types/ComponentId.hs, dist/build/Distribution/Types/ComponentId.js_o )\r\n[ 42 of 168] Compiling Distribution.Types.AbiHash ( Distribution/Types/AbiHash.hs, dist/build/Distribution/Types/AbiHash.js_o )\r\n[ 43 of 168] Compiling Distribution.ModuleName ( Distribution/ModuleName.hs, dist/build/Distribution/ModuleName.js_o )\r\n[ 44 of 168] Compiling Distribution.Types.ModuleRenaming ( Distribution/Types/ModuleRenaming.hs, dist/build/Distribution/Types/ModuleRenaming.js_o )\r\n[ 45 of 168] Compiling Distribution.Types.IncludeRenaming ( Distribution/Types/IncludeRenaming.hs, dist/build/Distribution/Types/IncludeRenaming.js_o )\r\n[ 46 of 168] Compiling Distribution.Utils.Generic ( Distribution/Utils/Generic.hs, dist/build/Distribution/Utils/Generic.js_o )\r\n[ 47 of 168] Compiling Distribution.Utils.UnionFind ( Distribution/Utils/UnionFind.hs, dist/build/Distribution/Utils/UnionFind.js_o )\r\n[ 48 of 168] Compiling Distribution.Verbosity ( Distribution/Verbosity.hs, dist/build/Distribution/Verbosity.js_o )\r\n[ 49 of 168] Compiling Distribution.Version ( Distribution/Version.hs, dist/build/Distribution/Version.js_o )\r\n[ 50 of 168] Compiling Distribution.Types.TestType ( Distribution/Types/TestType.hs, dist/build/Distribution/Types/TestType.js_o )\r\n[ 51 of 168] Compiling Distribution.Types.TestSuiteInterface ( Distribution/Types/TestSuiteInterface.hs, dist/build/Distribution/Types/TestSuiteInterface.js_o )\r\n[ 52 of 168] Compiling Distribution.Types.PkgconfigDependency ( Distribution/Types/PkgconfigDependency.hs, dist/build/Distribution/Types/PkgconfigDependency.js_o )\r\n[ 53 of 168] Compiling Distribution.Types.BenchmarkType ( Distribution/Types/BenchmarkType.hs, dist/build/Distribution/Types/BenchmarkType.js_o )\r\n[ 54 of 168] Compiling Distribution.Types.BenchmarkInterface ( Distribution/Types/BenchmarkInterface.hs, dist/build/Distribution/Types/BenchmarkInterface.js_o )\r\n[ 55 of 168] Compiling Distribution.License ( Distribution/License.hs, dist/build/Distribution/License.js_o )\r\n[ 56 of 168] Compiling Language.Haskell.Extension ( Language/Haskell/Extension.hs, dist/build/Language/Haskell/Extension.js_o )\r\n[ 57 of 168] Compiling Distribution.Compiler ( Distribution/Compiler.hs, dist/build/Distribution/Compiler.js_o )\r\n[ 58 of 168] Compiling Distribution.PrettyUtils ( Distribution/PrettyUtils.hs, dist/build/Distribution/PrettyUtils.js_o )\r\n[ 59 of 168] Compiling Distribution.ParseUtils ( Distribution/ParseUtils.hs, dist/build/Distribution/ParseUtils.js_o )\r\n[ 60 of 168] Compiling Distribution.Types.PackageName ( Distribution/Types/PackageName.hs, dist/build/Distribution/Types/PackageName.js_o )\r\n[ 61 of 168] Compiling Distribution.Types.UnqualComponentName ( Distribution/Types/UnqualComponentName.hs, dist/build/Distribution/Types/UnqualComponentName.js_o )\r\n[ 62 of 168] Compiling Distribution.Types.ComponentName ( Distribution/Types/ComponentName.hs, dist/build/Distribution/Types/ComponentName.js_o )\r\n[ 63 of 168] Compiling Distribution.Types.PackageId ( Distribution/Types/PackageId.hs, dist/build/Distribution/Types/PackageId.js_o )\r\n[ 64 of 168] Compiling Distribution.Types.UnitId ( Distribution/Types/UnitId.hs, dist/build/Distribution/Types/UnitId.js_o )\r\n[ 65 of 168] Compiling Distribution.Types.Module ( Distribution/Types/Module.hs, dist/build/Distribution/Types/Module.js_o )\r\n[ 66 of 168] Compiling Distribution.Backpack ( Distribution/Backpack.hs, dist/build/Distribution/Backpack.js_o )\r\n\r\n<no location info>: error:\r\n    ghcjs: panic! (the 'impossible' happened)\r\n  (GHC version 8.2.2 for x86_64-unknown-linux):\r\n        piResultTys1\r\n  Ord ModuleName\r\n  [a1_X1XMC]\r\n  Call stack:\r\n      CallStack (from HasCall[ 69 of 168] Compiling Distribution.Types.ModuleReexport ( Distribution/Types/ModuleReexport.hs, dist/build/Distribution/Types/ModuleReexport.js_o )\r\nStack):\r\n        prettyCurrentCall[ 70 of 168] Compiling Distribution.Types.Mixin ( Distribution/Types/Mixin.hs, dist/build/Distribution/Types/Mixin.js_o )\r\nStack, called at compiler/utils/[ 71 of 168] Compiling Distribution.Types.ExeDependency ( Distribution/Types/ExeDependency.hs, dist/build/Distribution/Types/ExeDependency.js_o )\r\nOutputable.hs:1133:58 in ghc-api-ghcjs-8.2.2-1EVQMLnLVnzMOBpw92OEQ:Outputable\r\n        callStackDoc, called at compiler/utils/Outputable.hs:1137:37 in ghc-api-ghcjs-8.2.2-1EVQMLnLVnzMOBpw92OEQ:Outputable\r\n        pprPanic, called at compiler/types/Type.hs:1004:5 in ghc-api-ghcjs-8.2.2-1EVQMLnLVnzMOBpw92OEQ:Type\r\n\r\nPlease report this as a GHC bug:  http://www.haskell.org/ghc/reportabug\r\n\r\n[ 72 of 168] Compiling Distribution.Types.Dependency ( Distribution/Types/Dependency.hs, dist/build/Distribution/Types/Dependency.js_o )\r\n[ 73 of 168] Compiling Distribution.Types.SetupBuildInfo ( Distribution/Types/SetupBuildInfo.hs, dist/build/Distribution/Types/SetupBuildInfo.js_o )\r\n[ 74 of 168] Compiling Distribution.Types.DependencyMap ( Distribution/Types/DependencyMap.hs, dist/build/Distribution/Types/DependencyMap.js_o )\r\n[ 75 of 168] Compiling Distribution.Simple.GHC.IPIConvert ( Distribution/Simple/GHC/IPIConvert.hs, dist/build/Distribution/Simple/GHC/IPIConvert.js_o )\r\n[ 77 of 168] Compiling Distribution.Types.MungedPackageName ( Distribution/Types/MungedPackageName.hs, dist/build/Distribution/Types/MungedPackageName.js_o )\r\n[ 78 of 168] Compiling Distribution.Types.MungedPackageId ( Distribution/Types/MungedPackageId.hs, dist/build/Distribution/Types/MungedPackageId.js_o )\r\n[ 79 of 168] Compiling Distribution.Package ( Distribution/Package.hs, dist/build/Distribution/Package.js_o )\r\n[ 80 of 168] Compiling Distribution.Types.AnnotatedId ( Distribution/Types/AnnotatedId.hs, dist/build/Distribution/Types/AnnotatedId.js_o )\r\n[ 81 of 168] Compiling Distribution.Types.ComponentInclude ( Distribution/Types/ComponentInclude.hs, dist/build/Distribution/Types/ComponentInclude.js_o )\r\n[ 82 of 168] Compiling Distribution.Simple.InstallDirs ( Distribution/Simple/InstallDirs.hs, dist/build/Distribution/Simple/InstallDirs.js_o )\r\n[ 83 of 168] Compiling Distribution.Types.LegacyExeDependency ( Distribution/Types/LegacyExeDependency.hs, dist/build/Distribution/Types/LegacyExeDependency.js_o )\r\n[ 84 of 168] Compiling Distribution.Types.BuildInfo ( Distribution/Types/BuildInfo.hs, dist/build/Distribution/Types/BuildInfo.js_o )\r\n[ 85 of 168] Compiling Distribution.Types.TestSuite ( Distribution/Types/TestSuite.hs, dist/build/Distribution/Types/TestSuite.js_o )\r\n\r\n<no [ 86 of 168] Compiling Distribution.Types.Library ( Distribution/Types/Library.hs, dist/build/Distribution/Types/Library.js_o )\r\nlocation info>: error: Prelude.!!: index too large\r\n[ 87 of 168] Compiling Distribution.Types.HookedBuildInfo ( Distribution/Types/HookedBuildInfo.hs, dist/build/Distribution/Types/HookedBuildInfo.js_o )\r\n[ 88 of 168] Compiling Distribution.Types.ForeignLib ( Distribution/Types/ForeignLib.hs, dist/build/Distribution/Types/ForeignLib.js_o )\r\n[ 89 of 168] Compiling Distribution.Types.Executable ( Distribution/Types/Executable.hs, dist/build/Distribution/Types/Executable.js_o )\r\n[ 90 of 168] Compiling Distribution.Types.Benchmark ( Distribution/Types/Benchmark.hs, dist/build/Distribution/Types/Benchmark.js_o )\r\n[105 of 168] Compiling Paths_Cabal      ( dist/build/autogen/Paths_Cabal.hs, dist/build/Paths_Cabal.js_o )\r\n[106 of 168] Compiling Distribution.Simple.Utils ( Distribution/Simple/Utils.hs, dist/build/Distribution/Simple/Utils.js_o )\r\n[107 of 168] Compiling Distribution.Utils.NubList ( Distribution/Utils/NubList.hs, dist/build/Distribution/Utils/NubList.js_o )\r\n[108 of 168] Compiling Distribution.Utils.LogProgress ( Distribution/Utils/LogProgress.hs, dist/build/Distribution/Utils/LogProgress.js_o )\r\n[109 of 168] Compiling Distribution.Simple.Program.Find ( Distribution/Simple/Program/Find.hs, dist/build/Distribution/Simple/Program/Find.js_o )\r\n[110 of 168] Compiling Distribution.Simple.Program.Types ( Distribution/Simple/Program/Types.hs, dist/build/Distribution/Simple/Program/Types.js_o )\r\n[111 of 168] Compiling Distribution.Simple.Program.Run ( Distribution/Simple/Program/Run.hs, dist/build/Distribution/Simple/Program/Run.js_o )\r\n[112 of 168] Compiling Distribution.Simple.Program.Script ( Distribution/Simple/Program/Script.hs, dist/build/Distribution/Simple/Program/Script.js_o )\r\n[113 of 168] Compiling Distribution.Simple.Program.Ld ( Distribution/Simple/Program/Ld.hs, dist/build/Distribution/Simple/Program/Ld.js_o )\r\n[114 of 168] Compiling Distribution.Simple.Program.Hpc ( Distribution/Simple/Program/Hpc.hs, dist/build/Distribution/Simple/Program/Hpc.js_o )\r\n[115 of 168] Compiling Distribution.Simple.Program.Builtin ( Distribution/Simple/Program/Builtin.hs, dist/build/Distribution/Simple/Program/Builtin.js_o )\r\n[116 of 168] Compiling Distribution.Simple.Program.Db ( Distribution/Simple/Program/Db.hs, dist/build/Distribution/Simple/Program/Db.js_o )\r\n[117 of 168] Compiling Distribution.Simple.Program ( Distribution/Simple/Program.hs, dist/build/Distribution/Simple/Program.js_o )\r\n[118 of 168] Compiling Distribution.Simple.Program.Strip ( Distribution/Simple/Program/Strip.hs, dist/build/Distribution/Simple/Program/Strip.js_o )\r\n[120 of 168] Compiling Distribution.Simple.Compiler ( Distribution/Simple/Compiler.hs, dist/build/Distribution/Simple/Compiler.js_o )\r\n[122 of 168] Compiling Distribution.Simple.GHC.ImplInfo ( Distribution/Simple/GHC/ImplInfo.hs, dist/build/Distribution/Simple/GHC/ImplInfo.js_o )\r\n[123 of 168] Compiling Distribution.Simple.Command ( Distribution/Simple/Command.hs, dist/build/Distribution/Simple/Command.js_o )\r\n[154 of 168] Compiling Distribution.Compat.Time ( Distribution/Compat/Time.hs, dist/build/Distribution/Compat/Time.js_o )\r\n[157 of 168] Compiling Distribution.Backpack.DescribeUnitId ( Distribution/Backpack/DescribeUnitId.hs, dist/build/Distribution/Backpack/DescribeUnitId.js_o )\r\nFailed to install Cabal-2.0.1.0\r\ncabal: Error: some packages failed to install:\r\nCabal-2.0.1.0-4SF5bTgf8uRFHilm8JbW3B failed during the building phase. The\r\nexception was:\r\nExitFailure 1\r\n\r\nghcjs-boot: error running: /nix/store/jzy31vh7qr8g2xkxy0fys0cqvb6g0xf6-cabal-install-2.2.0.0/bin/cabal --config-file /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec/cabalBootConfig --ignore-sandbox install ./pkg/Cabal --global --ghcjs --one-shot --avoid-reinstalls --builddir dist --with-compiler /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs --with-hc-pkg /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg --prefix /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/libexec --enable-documentation --haddock-html --haddock-hoogle --haddock-hyperlink-source --enable-debug-info --disable-library-stripping --disable-executable-stripping -fghci --enable-profiling --enable-shared --ghcjs-options=-j4\r\nexit status: 1\r\nstderr: Warning: the --global flag is deprecated -- it is generally considered a bad\r\nidea to install packages into the global store\r\nWarning: No remote package servers have been specified. Usually you would have\r\none specified in the config file.\r\n\r\nDistribution/Compat/CreatePipe.hs:7:1: warning: [-Wunused-imports]\r\n    The import of `hSetEncoding, localeEncoding'\r\n    from module `System.IO' is redundant\r\n  |\r\n7 | import System.IO (Handle, hSetEncoding, localeEncoding)\r\n  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n<no location info>: error:\r\n    ghcjs: panic! (the 'impossible' happened)\r\n  (GHC version 8.2.2 for x86_64-unknown-linux):\r\n        piResultTys1\r\n  Ord ModuleName\r\n  [a1_X1XMC]\r\n  Call stack:\r\n      CallStack (from HasCallStack):\r\n        prettyCurrentCallStack, called at compiler/utils/Outputable.hs:1133:58 in ghc-api-ghcjs-8.2.2-1EVQMLnLVnzMOBpw92OEQ:Outputable\r\n        callStackDoc, called at compiler/utils/Outputable.hs:1137:37 in ghc-api-ghcjs-8.2.2-1EVQMLnLVnzMOBpw92OEQ:Outputable\r\n        pprPanic, called at compiler/types/Type.hs:1004:5 in ghc-api-ghcjs-8.2.2-1EVQMLnLVnzMOBpw92OEQ:Type\r\n\r\nPlease report this as a GHC bug:  http://www.haskell.org/ghc/reportabug\r\n\r\n\r\n<no location info>: error: Prelude.!!: index too large\r\ncabal: Error: some packages failed to install:\r\nCabal-2.0.1.0-4SF5bTgf8uRFHilm8JbW3B failed during the building phase. The\r\nexception was:\r\nExitFailure 1\r\n```"},"comment":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/comments/389424433","html_url":"https://github.com/ghcjs/ghcjs/issues/654#issuecomment-389424433","issue_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/654","id":389424433,"user":{"login":"luite","id":354096,"avatar_url":"https://avatars1.githubusercontent.com/u/354096?v=4","gravatar_id":"","url":"https://api.github.com/users/luite","html_url":"https://github.com/luite","followers_url":"https://api.github.com/users/luite/followers","following_url":"https://api.github.com/users/luite/following{/other_user}","gists_url":"https://api.github.com/users/luite/gists{/gist_id}","starred_url":"https://api.github.com/users/luite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luite/subscriptions","organizations_url":"https://api.github.com/users/luite/orgs","repos_url":"https://api.github.com/users/luite/repos","events_url":"https://api.github.com/users/luite/events{/privacy}","received_events_url":"https://api.github.com/users/luite/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T07:36:37Z","updated_at":"2018-05-16T07:36:37Z","author_association":"MEMBER","body":"haha my next question would have been if you could reproduce it after rebuilding all Haskell dependencies from source. I've had similar problems with an overheating laptop that would occasionally spit out wrong results (usually just the program segfaulting or the linker complaining)"}}
{"actor":{"display_login":"luite"}}