{"action":"created","issue":{"url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/27","labels_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/27/comments","events_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/27/events","html_url":"https://github.com/snowleopard/shaking-up-ghc/issues/27","id":123625194,"number":27,"title":"Building ghc-pkg: can't find stage0-built libs","user":{"login":"quchen","id":3020161,"avatar_url":"https://avatars.githubusercontent.com/u/3020161?v=3","gravatar_id":"","url":"https://api.github.com/users/quchen","html_url":"https://github.com/quchen","followers_url":"https://api.github.com/users/quchen/followers","following_url":"https://api.github.com/users/quchen/following{/other_user}","gists_url":"https://api.github.com/users/quchen/gists{/gist_id}","starred_url":"https://api.github.com/users/quchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quchen/subscriptions","organizations_url":"https://api.github.com/users/quchen/orgs","repos_url":"https://api.github.com/users/quchen/repos","events_url":"https://api.github.com/users/quchen/events{/privacy}","received_events_url":"https://api.github.com/users/quchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-23T09:15:23Z","updated_at":"2015-12-23T12:02:14Z","closed_at":null,"body":"When running the build system, I get the error pasted below. It seems the libraries built by the stage-0 compiler cannot be found. Any pointers would be welcome!\r\n\r\nReproducible on Xubuntu 14.04 and 15.04, although I doubt the OS matters. Stage-0 is GHC 7.10.3.\r\n\r\n```\r\n/usr/bin/ld: cannot find -lHSterminfo-0.4.0.2\r\n/usr/bin/ld: cannot find -lHSghc-boot-0.0.0.0\r\n/usr/bin/ld: cannot find -lHSCabal-1.23.0.0\r\n/usr/bin/ld: cannot find -lHSbinary-0.8.0.0\r\ncollect2: error: ld returned 1 exit status\r\nError when running Shake build system:\r\n* inplace/bin/ghc-pkg\r\nuser error (Development.Shake.cmd, system command failed\r\nCommand: /home/david/bin/haskell/ghc\r\n    -hisuf hi\r\n    -osuf o\r\n    -hcsuf hc\r\n    -static\r\n    -hide-all-packages\r\n    -no-user-package-db\r\n    -package-db libraries/bootstrapping.conf\r\n    -package-id Cabal-1.23.0.0\r\n    -package-id base-4.8.2.0-0d6d1084fbc041e1cded9228e80e264d\r\n    -package-id binary-0.8.0.0\r\n    -package-id bytestring-0.10.6.0-c60f4c543b22c7f7293a06ae48820437\r\n    -package-id containers-0.5.6.2-e59c9b78d840fa743d4169d4bea15592\r\n    -package-id directory-1.2.2.0-f8e14a9d121b76a00a0f669ee724a732\r\n    -package-id filepath-1.4.0.0-f97d1e4aebfd7a03be6980454fe31d6e\r\n    -package-id ghc-boot-0.0.0.0\r\n    -package-id process-1.2.3.0-78f206acb2330ea8066c6c19c87356f0\r\n    -package-id terminfo-0.4.0.2\r\n    -package-id unix-2.7.1.0-343d4f566f30113da92e819f4a148640\r\n    -i\r\n    -iutils/ghc-pkg/stage0/build\r\n    -iutils/ghc-pkg/stage0/build/autogen\r\n    -Iutils/ghc-pkg/stage0/build\r\n    -Iutils/ghc-pkg/stage0/build/autogen\r\n    -iutils/ghc-pkg\r\n    -optP-include\r\n    -optPutils/ghc-pkg/stage0/build/autogen/cabal_macros.h\r\n    -XHaskell2010\r\n    -odir utils/ghc-pkg/stage0/build\r\n    -hidir utils/ghc-pkg/stage0/build\r\n    -stubdir utils/ghc-pkg/stage0/build\r\n    -rtsopts\r\n    -H32m\r\n    -O\r\n    -Wall\r\n    -fwarn-tabs\r\n    -no-auto-link-packages\r\n    -optl-ltinfo\r\n    -optl-lrt\r\n    -optl-lutil\r\n    -optl-ldl\r\n    -optl-lpthread\r\n    -optl-lgmp\r\n    -optl-lm\r\n    -optl-lrt\r\n    -optl-ldl\r\n    -optl-L/home/david/Coding/haskell/ghc/libraries/terminfo/stage0/build\r\n    -optl-L/home/david/Coding/haskell/ghc/libraries/ghc-boot/stage0/build\r\n    -optl-L/home/david/Coding/haskell/ghc/libraries/Cabal/Cabal/stage0/build\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/proce_52AgREEfSrnJLlkGV9YZZJ\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/prett_JItwetRppk1H5Uq3xbjDGC\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/direc_0hFG6ZxK1nk4zsyOqbNHfm\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/unix_KZL8h98IqDM57kQSPo1mKx\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/time_FTheb6LSxyX1UABIbBXRfn\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/filep_Ey7a1in9roBAE8bUFJ5R9m\r\n    -optl-L/home/david/Coding/haskell/ghc/libraries/binary/stage0/build\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/conta_2C3ZI8RgPO2LBMidXKTvIU\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/bytes_6VWy06pWzJq9evDvK2d4w6\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/deeps_6vMKxt5sPFR0XsbRWvvq59\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/array_67iodizgJQIIxYVTp4emlA\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/integ_2aU3IZNMF9a7mQ0OzsZ0dS\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/ghcpr_8TmvWUcS1U1IKHT0levwg3\r\n    -optl-L/home/david/Programs/haskell/ghc-7.10.3/lib/ghc-7.10.3/rts utils/ghc-pkg/stage0/build/Main.o utils/ghc-pkg/stage0/build/Version.o\r\n    -o inplace/bin/ghc-pkg\r\nExit code: 1\r\nStderr:\r\n/usr/bin/ld: cannot find -lHSterminfo-0.4.0.2\r\n/usr/bin/ld: cannot find -lHSghc-boot-0.0.0.0\r\n/usr/bin/ld: cannot find -lHSCabal-1.23.0.0\r\n/usr/bin/ld: cannot find -lHSbinary-0.8.0.0\r\ncollect2: error: ld returned 1 exit status\r\n)\r\n```"},"comment":{"url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/comments/166875980","html_url":"https://github.com/snowleopard/shaking-up-ghc/issues/27#issuecomment-166875980","issue_url":"https://api.github.com/repos/snowleopard/shaking-up-ghc/issues/27","id":166875980,"user":{"login":"quchen","id":3020161,"avatar_url":"https://avatars.githubusercontent.com/u/3020161?v=3","gravatar_id":"","url":"https://api.github.com/users/quchen","html_url":"https://github.com/quchen","followers_url":"https://api.github.com/users/quchen/followers","following_url":"https://api.github.com/users/quchen/following{/other_user}","gists_url":"https://api.github.com/users/quchen/gists{/gist_id}","starred_url":"https://api.github.com/users/quchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quchen/subscriptions","organizations_url":"https://api.github.com/users/quchen/orgs","repos_url":"https://api.github.com/users/quchen/repos","events_url":"https://api.github.com/users/quchen/events{/privacy}","received_events_url":"https://api.github.com/users/quchen/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T12:02:14Z","updated_at":"2015-12-23T12:02:14Z","body":"@snowleopard that folder has contents, so *something* has been built. But there's no `.a` file there.\r\n\r\n```\r\nλ. find\r\n.\r\n./.dependencies\r\n./Data\r\n./Data/Binary.o\r\n./Data/Binary.hi\r\n./Data/Binary\r\n./Data/Binary/Class.o\r\n./Data/Binary/Builder\r\n./Data/Binary/Builder/Base.o\r\n./Data/Binary/Builder/Base.hi\r\n./Data/Binary/Generic.hi\r\n./Data/Binary/Get.o\r\n./Data/Binary/Class.hi\r\n./Data/Binary/Put.hi\r\n./Data/Binary/Generic.o\r\n./Data/Binary/Builder.hi\r\n./Data/Binary/Get\r\n./Data/Binary/Get/Internal.hi\r\n./Data/Binary/Get/Internal.o\r\n./Data/Binary/Get.hi\r\n./Data/Binary/Put.o\r\n./Data/Binary/Builder.o\r\n./.hs-dependencies\r\n./autogen\r\n./autogen/Paths_binary.hs\r\n./autogen/cabal_macros.h\r\n```"}}