Skip to content

Instantly share code, notes, and snippets.

@hhefesto
Created October 15, 2015 06:07
Show Gist options
  • Save hhefesto/878ec492aa6296001233 to your computer and use it in GitHub Desktop.
Save hhefesto/878ec492aa6296001233 to your computer and use it in GitHub Desktop.
ghc compile error
➜ ghc git:(ghc-stable) ✗ make
===--- building phase 0
make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for 'phase_0_builds'.
===--- building phase 1
make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
"/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -package-db libraries/bootstrapping.conf -hide-all-packages -i -ighc/. -ighc/st
age1/build -ighc/stage1/build/autogen -Ighc/stage1/build -Ighc/stage1/build/autogen -optP-include -optPghc/stage1/build/autogen/cabal_macro
s.h -package array-0.5.0.0 -package base-4.7.0.2 -package bytestring-0.10.4.0 -package directory-1.2.1.0 -package filepath-1.3.0.2 -package ghc
-7.11 -package process-1.2.0.0 -package unix-2.7.0.1 -Wall -XHaskell2010 -no-user-package-db -rtsopts -odir ghc/stage1/build -hidir ghc/
stage1/build -stubdir ghc/stage1/build -c ghc/./Main.hs -o ghc/stage1/build/Main.o
ghc/Main.hs:15:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/GHC.hi
Something is amiss; requested module ghc-7.11:GHC differs from name found in the interface file ghc-7.10.2:GHC
ghc/Main.hs:18:27: Module ‘GHC’ does not export ‘Ghc’
ghc/Main.hs:18:32: Module ‘GHC’ does not export ‘GhcMonad(..)’
ghc/Main.hs:19:27: Module ‘GHC’ does not export ‘LoadHowMuch(..)’
ghc/Main.hs:20:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/CmdLineParser.hi
Something is amiss; requested module ghc-7.11:CmdLineParser differs from name found in the interface file ghc-7.10.2:CmdLineParser
ghc/Main.hs:23:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/LoadIface.hi
Something is amiss; requested module ghc-7.11:LoadIface differs from name found in the interface file ghc-7.10.2:LoadIface
ghc/Main.hs:24:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/HscMain.hi
Something is amiss; requested module ghc-7.11:HscMain differs from name found in the interface file ghc-7.10.2:HscMain
ghc/Main.hs:25:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/DriverPipeline.hi
Something is amiss; requested module ghc-7.11:DriverPipeline differs from name found in the interface file ghc-7.10.2:DriverPipeline
ghc/Main.hs:26:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/DriverMkDepend.hi
Something is amiss; requested module ghc-7.11:DriverMkDepend differs from name found in the interface file ghc-7.10.2:DriverMkDepend
ghc/Main.hs:33:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Config.hi
Something is amiss; requested module ghc-7.11:Config differs from name found in the interface file ghc-7.10.2:Config
ghc/Main.hs:34:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Constants.hi
Something is amiss; requested module ghc-7.11:Constants differs from name found in the interface file ghc-7.10.2:Constants
ghc/Main.hs:35:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/HscTypes.hi
Something is amiss; requested module ghc-7.11:HscTypes differs from name found in the interface file ghc-7.10.2:HscTypes
ghc/Main.hs:36:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Packages.hi
Something is amiss; requested module ghc-7.11:Packages differs from name found in the interface file ghc-7.10.2:Packages
ghc/Main.hs:37:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/DriverPhases.hi
Something is amiss; requested module ghc-7.11:DriverPhases differs from name found in the interface file ghc-7.10.2:DriverPhases
ghc/Main.hs:38:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/BasicTypes.hi
Something is amiss; requested module ghc-7.11:BasicTypes differs from name found in the interface file ghc-7.10.2:BasicTypes
ghc/Main.hs:39:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/StaticFlags.hi
Something is amiss; requested module ghc-7.11:StaticFlags differs from name found in the interface file ghc-7.10.2:StaticFlags
ghc/Main.hs:40:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/DynFlags.hi
Something is amiss; requested module ghc-7.11:DynFlags differs from name found in the interface file ghc-7.10.2:DynFlags
ghc/Main.hs:41:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/ErrUtils.hi
Something is amiss; requested module ghc-7.11:ErrUtils differs from name found in the interface file ghc-7.10.2:ErrUtils
ghc/Main.hs:42:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/FastString.hi
Something is amiss; requested module ghc-7.11:FastString differs from name found in the interface file ghc-7.10.2:FastString
ghc/Main.hs:43:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Outputable.hi
Something is amiss; requested module ghc-7.11:Outputable differs from name found in the interface file ghc-7.10.2:Outputable
ghc/Main.hs:44:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/SrcLoc.hi
Something is amiss; requested module ghc-7.11:SrcLoc differs from name found in the interface file ghc-7.10.2:SrcLoc
ghc/Main.hs:45:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Util.hi
Something is amiss; requested module ghc-7.11:Util differs from name found in the interface file ghc-7.10.2:Util
ghc/Main.hs:46:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Panic.hi
Something is amiss; requested module ghc-7.11:Panic differs from name found in the interface file ghc-7.10.2:Panic
ghc/Main.hs:47:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/MonadUtils.hi
Something is amiss; requested module ghc-7.11:MonadUtils differs from name found in the interface file ghc-7.10.2:MonadUtils
ghc/Main.hs:50:30:
Module ‘LoadIface’ does not export ‘loadUserInterface’
ghc/Main.hs:51:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Module.hi
Something is amiss; requested module ghc-7.11:Module differs from name found in the interface file ghc-7.10.2:Module
ghc/Main.hs:52:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Finder.hi
Something is amiss; requested module ghc-7.11:Finder differs from name found in the interface file ghc-7.10.2:Finder
ghc/Main.hs:53:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/TcRnMonad.hi
Something is amiss; requested module ghc-7.11:TcRnMonad differs from name found in the interface file ghc-7.10.2:TcRnMonad
ghc/Main.hs:54:1:
Bad interface file: /home/hefesto/src/ghc/compiler/stage1/build/Binary.hi
Something is amiss; requested module ghc-7.11:Binary differs from name found in the interface file ghc-7.10.2:Binary
ghc/ghc.mk:114: recipe for target 'ghc/stage1/build/Main.o' failed
make[1]: *** [ghc/stage1/build/Main.o] Error 1
Makefile:71: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment