Created
March 22, 2019 22:10
-
-
Save isovector/9354f6e0070efe8890b4d4f53366ae29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ stack exec --resolver=lts-13.0 ./hadrian/ghci.sh | |
GHCi, version 8.6.3: http://www.haskell.org/ghc/ :? for help | |
Warning: the following files would be used as linker inputs, but linking is not being done: 2.2 | |
Warning: ignoring unrecognised input `2.2' | |
target ‘version’ is not a module name or a source file | |
Prelude> :load /home/sandy/prj/ghc/compiler/specialise/Specialise.hs | |
/home/sandy/prj/ghc/compiler/specialise/Specialise.hs:11:2: error: | |
fatal error: HsVersions.h: No such file or directory | |
^ | |
| | |
11 | | |
| ^ | |
compilation terminated. | |
`gcc' failed in phase `C pre-processor'. (Exit code: 1) |
Author
isovector
commented
Mar 22, 2019
stack exec ./hadrian/ghci.sh 18:31
cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
Cabal. Use the flag --package-db to specify a package database (it can be used
multiple times).
GHCi, version 8.6.3: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Main ( ghc/Main.hs, nothing )
ghc/Main.hs:15:1: error:
Could not load module ‘GHC’
It is a member of the hidden package ‘ghc-8.6.3’.
You can run ‘:set -package ghc’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v to see a list of the files searched for.
|
15 | import qualified GHC
| ^^^^^^^^^^^^^^^^^^^^
ghc/Main.hs:16:1: error:
Could not load module ‘GHC’
It is a member of the hidden package ‘ghc-8.6.3’.
You can run ‘:set -package ghc’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v to see a list of the files searched for.
|
16 | import GHC ( -- DynFlags(..), HscTarget(..),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
... lots more of this
stack exec -- bash -x ./hadrian/ghci.sh 18:49
++ TERM=dumb
++ CABFLAGS=-v0
++ . hadrian/build.cabal.sh tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci
+++ CABAL=cabal
+++ CABFLAGS='--disable-documentation --disable-profiling --disable-library-profiling -v0'
+++ PROJ=/home/sandy/prj/ghc/hadrian/cabal.project
+++ set -euo pipefail
+++ '[' -f /home/sandy/prj/ghc/hadrian/cabal.project ']'
+++ type cabal
++++ cabal --numeric-version
+++ CABVERSTR=2.4.1.0
+++ CABVER=(${CABVERSTR//./ })
+++ '[' 2 -gt 2 -o 2 -eq 2 -a 4 -ge 2 ']'
+++ cabal --project-file=/home/sandy/prj/ghc/hadrian/cabal.project new-build --disable-documentation
--disable-profiling --disable-library-profiling -v0 -j exe:hadrian
cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
Cabal. Use the flag --package-db to specify a package database (it can be used
multiple times).
+ ghci -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs
GHCi, version 8.6.3: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Main ( ghc/Main.hs, nothing )
ghc/Main.hs:15:1: error:
Could not load module ‘GHC’
It is a member of the hidden package ‘ghc-8.6.3’.
You can run ‘:set -package ghc’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v to see a list of the files searched for.
|
./hadrian/ghci.sh 19:09
++ TERM=dumb
++ CABFLAGS=-v0
++ . hadrian/build.cabal.sh tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci
+++ CABAL=cabal
+++ CABFLAGS='--disable-documentation --disable-profiling --disable-library-profiling -v0'
+++ PROJ=/home/sandy/prj/ghc/hadrian/cabal.project
+++ '[' -f /home/sandy/prj/ghc/hadrian/cabal.project ']'
+++ type cabal
++++ cabal --numeric-version
+++ CABVERSTR=2.4.1.0
+++ CABVER=(${CABVERSTR//./ })
+++ '[' 2 -gt 2 -o 2 -eq 2 -a 4 -ge 2 ']'
+++ cabal --project-file=/home/sandy/prj/ghc/hadrian/cabal.project new-build --disable-documentation --disable-profiling --disable-library-profiling -v0 -j exe:hadrian
cabal: Could not resolve dependencies:
[__0] trying: hadrian-0.1.0.0 (user goal)
[__1] unknown package: unordered-containers (dependency of hadrian)
[__1] fail (backjumping, conflict set: hadrian, unordered-containers)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: hadrian, unordered-containers
+++ cabal --project-file=/home/sandy/prj/ghc/hadrian/cabal.project new-exec --disable-documentation --disable-profiling --disable-library-profiling -v0 hadrian -- --directory /home/sandy/prj/ghc tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci
cabal: Could not resolve dependencies:
[__0] trying: hadrian-0.1.0.0 (user goal)
[__1] unknown package: unordered-containers (dependency of hadrian)
[__1] fail (backjumping, conflict set: hadrian, unordered-containers)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: hadrian, unordered-containers
+ GHC_FLAGS=
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment