Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Parser.hs crashes due to broken #include in DynFlags.hs #53

Closed
angerman opened this issue Dec 26, 2015 · 1 comment
Closed

Parser.hs crashes due to broken #include in DynFlags.hs #53

angerman opened this issue Dec 26, 2015 · 1 comment
Labels

Comments

@angerman
Copy link
Collaborator

/----------
| Running GhcM Stage0 with arguments:
|   -M
|   ... skipping 495 arguments ...
|   compiler/stage0/build/compiler/parser/Parser.hs
\----------


compiler/main/DynFlags.hs:127:10:
     fatal error: '../includes/dist-derivedconstants/header/GHCConstantsHaskellExports.hs' file not found
#include "../includes/dist-derivedconstants/header/GHCConstantsHaskellExports.hs"
         ^
1 error generated.
shakeArgsWith   0.000s    0%                           
Function shake  0.019s    1%                           
Database read   0.105s    7%  ==                       
With database   0.004s    0%                           
Running rules   1.274s   90%  =========================
Total           1.401s  100%                           
Error when running Shake build system:
* inplace/bin/ghc-stage1
* compiler/stage0/build/libHSghc-7.11.20151224.a
* compiler/stage0/build/Dwarf/Constants.o
* OracleQ (DependenciesKey ("compiler/stage0/build/.dependencies","compiler/stage0/build/Dwarf/Constants.o"))
* compiler/stage0/build/.dependencies
* compiler/stage0/build/.hs-dependencies
user error (Development.Shake.cmd, system command failed
Command: /usr/local/bin/ghc -M -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db -package-db libraries/bootstrapping.conf -this-package-key ghc-7.11.20151224 -package-id array-0.5.1.0-d4206b835b96b5079d918fa1eab1a9a8 -package-id base-4.8.1.0-075aa0db10075facc5aaa59a7991ca2f -package-id binary-0.8.0.0 -package-id bytestring-0.10.6.0-6e8453cb70b477776f26900f41a5e17a -package-id containers-0.5.6.2-2b49cce16f8a2908df8454387e550b93 -package-id directory-1.2.2.0-16f6a661d4e92cd8da4d681a1d197064 -package-id filepath-1.4.0.0-8fee9c13b5e42926cc01f6aa7c403c4b -package-id ghc-boot-0.0.0.0 -package-id hoopl-3.10.2.1 -package-id hpc-0.6.0.2 -package-id process-1.2.3.0-36e5501145ab363f58c5e5a7079e9636 -package-id template-haskell-2.11.0.0 -package-id time-1.5.0.1-710377a9566ae0edafdde8dc74a184c3 -package-id transformers-0.5.0.0 -package-id unix-2.7.1.0-75051e1ddce506fe76a9ea932b926357 -i -icompiler/stage0/build -icompiler/stage0/build/autogen -Icompiler/stage0/build -Icompiler/stage0/build/autogen -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils -icompiler/vectorise -Icompiler -Icompiler/parser -Icompiler/utils -Icompiler/stage0 -optP-include -optPcompiler/stage0/build/autogen/cabal_macros.h -Wall -fno-warn-name-shadowing -this-package-key ghc -XHaskell2010 -DSTAGE=1 -odir compiler/stage0/build -hidir compiler/stage0/build -stubdir compiler/stage0/build -rtsopts -include-pkg-deps -dep-makefile compiler/stage0/build/.hs-dependencies -dep-suffix  compiler/main/Annotations.hs compiler/parser/ApiAnnotation.hs compiler/nativeGen/AsmCodeGen.hs compiler/basicTypes/Avail.hs compiler/utils/Bag.hs compiler/basicTypes/BasicTypes.hs compiler/iface/BinIface.hs compiler/utils/Binary.hs compiler/cmm/Bitmap.hs compiler/cmm/BlockId.hs compiler/utils/BooleanFormula.hs compiler/main/BreakArray.hs compiler/utils/BufWrite.hs compiler/iface/BuildTyCl.hs compiler/cmm/CLabel.hs compiler/nativeGen/CPrim.hs compiler/simplCore/CSE.hs compiler/simplCore/CallArity.hs compiler/codeGen/CgUtils.hs compiler/deSugar/Check.hs compiler/types/Class.hs compiler/main/CmdLineParser.hs compiler/cmm/Cmm.hs compiler/cmm/CmmBuildInfoTables.hs compiler/cmm/CmmCallConv.hs compiler/cmm/CmmCommonBlockElim.hs compiler/cmm/CmmContFlowOpt.hs compiler/cmm/CmmExpr.hs compiler/cmm/CmmImplementSwitchPlans.hs compiler/cmm/CmmInfo.hs compiler/cmm/CmmLayoutStack.hs compiler/cmm/CmmLint.hs compiler/cmm/CmmLive.hs compiler/cmm/CmmMachOp.hs compiler/cmm/CmmNode.hs compiler/cmm/CmmOpt.hs compiler/cmm/CmmPipeline.hs compiler/cmm/CmmProcPoint.hs compiler/cmm/CmmSink.hs compiler/cmm/CmmSwitch.hs compiler/cmm/CmmType.hs compiler/cmm/CmmUtils.hs compiler/types/CoAxiom.hs compiler/codeGen/CodeGen/Platform.hs compiler/codeGen/CodeGen/Platform/ARM.hs compiler/codeGen/CodeGen/Platform/ARM64.hs compiler/codeGen/CodeGen/Platform/NoRegs.hs compiler/codeGen/CodeGen/Platform/PPC.hs compiler/codeGen/CodeGen/Platform/PPC_Darwin.hs compiler/codeGen/CodeGen/Platform/SPARC.hs compiler/codeGen/CodeGen/Platform/X86.hs compiler/codeGen/CodeGen/Platform/X86_64.hs compiler/main/CodeOutput.hs compiler/types/Coercion.hs compiler/basicTypes/ConLike.hs compiler/main/Constants.hs compiler/coreSyn/CoreArity.hs compiler/coreSyn/CoreFVs.hs compiler/coreSyn/CoreLint.hs compiler/simplCore/CoreMonad.hs compiler/coreSyn/CorePrep.hs compiler/coreSyn/CoreSeq.hs compiler/coreSyn/CoreStats.hs compiler/coreSyn/CoreSubst.hs compiler/coreSyn/CoreSyn.hs compiler/coreSyn/CoreTidy.hs compiler/stgSyn/CoreToStg.hs compiler/coreSyn/CoreUnfold.hs compiler/coreSyn/CoreUtils.hs compiler/profiling/CostCentre.hs compiler/deSugar/Coverage.hs compiler/parser/Ctype.hs compiler/basicTypes/DataCon.hs compiler/cmm/Debug.hs compiler/basicTypes/Demand.hs compiler/deSugar/Desugar.hs compiler/utils/Digraph.hs compiler/stranal/DmdAnal.hs compiler/main/DriverMkDepend.hs compiler/main/DriverPhases.hs compiler/main/DriverPipeline.hs compiler/deSugar/DsArrows.hs compiler/deSugar/DsBinds.hs compiler/deSugar/DsCCall.hs compiler/deSugar/DsExpr.hs compiler/deSugar/DsForeign.hs compiler/deSugar/DsGRHSs.hs compiler/deSugar/DsListComp.hs compiler/deSugar/DsMeta.hs compiler/deSugar/DsMonad.hs compiler/deSugar/DsUtils.hs compiler/nativeGen/Dwarf.hs compiler/nativeGen/Dwarf/Constants.hs compiler/nativeGen/Dwarf/Types.hs compiler/main/DynFlags.hs compiler/main/DynamicLoading.hs compiler/main/Elf.hs compiler/utils/Encoding.hs compiler/main/ErrUtils.hs compiler/utils/Exception.hs compiler/utils/FV.hs compiler/typecheck/FamInst.hs compiler/types/FamInstEnv.hs compiler/utils/FastFunctions.hs compiler/utils/FastMutInt.hs compiler/utils/FastString.hs compiler/utils/FastStringEnv.hs compiler/basicTypes/FieldLabel.hs compiler/main/Finder.hs compiler/utils/FiniteMap.hs compiler/iface/FlagChecker.hs compiler/simplCore/FloatIn.hs compiler/simplCore/FloatOut.hs compiler/prelude/ForeignCall.hs compiler/nativeGen/Format.hs compiler/typecheck/FunDeps.hs compiler/main/GHC.hs compiler/main/GhcMake.hs compiler/main/GhcMonad.hs compiler/main/GhcPlugins.hs compiler/utils/GraphBase.hs compiler/utils/GraphColor.hs compiler/utils/GraphOps.hs compiler/utils/GraphPpr.hs compiler/parser/HaddockUtils.hs compiler/main/HeaderInfo.hs compiler/main/Hooks.hs compiler/cmm/Hoopl.hs compiler/cmm/Hoopl/Dataflow.hs compiler/hsSyn/HsBinds.hs compiler/hsSyn/HsDecls.hs compiler/hsSyn/HsDoc.hs compiler/hsSyn/HsExpr.hs compiler/hsSyn/HsImpExp.hs compiler/hsSyn/HsLit.hs compiler/hsSyn/HsPat.hs compiler/hsSyn/HsSyn.hs compiler/hsSyn/HsTypes.hs compiler/hsSyn/HsUtils.hs compiler/main/HscMain.hs compiler/main/HscStats.hs compiler/main/HscTypes.hs compiler/utils/IOEnv.hs compiler/basicTypes/Id.hs compiler/basicTypes/IdInfo.hs compiler/iface/IfaceEnv.hs compiler/iface/IfaceSyn.hs compiler/iface/IfaceType.hs compiler/typecheck/Inst.hs compiler/types/InstEnv.hs compiler/nativeGen/Instruction.hs compiler/main/InteractiveEval.hs compiler/main/InteractiveEvalTypes.hs compiler/types/Kind.hs compiler/basicTypes/Lexeme.hs compiler/simplCore/LiberateCase.hs compiler/utils/ListSetOps.hs compiler/basicTypes/Literal.hs compiler/llvmGen/Llvm.hs compiler/llvmGen/Llvm/AbsSyn.hs compiler/llvmGen/Llvm/MetaData.hs compiler/llvmGen/Llvm/PpLlvm.hs compiler/llvmGen/Llvm/Types.hs compiler/llvmGen/LlvmCodeGen.hs compiler/llvmGen/LlvmCodeGen/Base.hs compiler/llvmGen/LlvmCodeGen/CodeGen.hs compiler/llvmGen/LlvmCodeGen/Data.hs compiler/llvmGen/LlvmCodeGen/Ppr.hs compiler/llvmGen/LlvmCodeGen/Regs.hs compiler/llvmGen/LlvmMangler.hs compiler/iface/LoadIface.hs compiler/deSugar/Match.hs compiler/deSugar/MatchCon.hs compiler/deSugar/MatchLit.hs compiler/utils/Maybes.hs compiler/coreSyn/MkCore.hs compiler/cmm/MkGraph.hs compiler/basicTypes/MkId.hs compiler/iface/MkIface.hs compiler/basicTypes/Module.hs compiler/utils/MonadUtils.hs compiler/nativeGen/NCGMonad.hs compiler/basicTypes/Name.hs compiler/basicTypes/NameEnv.hs compiler/basicTypes/NameSet.hs compiler/basicTypes/OccName.hs compiler/simplCore/OccurAnal.hs compiler/types/OptCoercion.hs compiler/utils/OrdList.hs compiler/utils/Outputable.hs compiler/nativeGen/PIC.hs compiler/nativeGen/PPC/CodeGen.hs compiler/nativeGen/PPC/Cond.hs compiler/nativeGen/PPC/Instr.hs compiler/nativeGen/PPC/Ppr.hs compiler/nativeGen/PPC/RegInfo.hs compiler/nativeGen/PPC/Regs.hs compiler/main/PackageConfig.hs compiler/main/Packages.hs compiler/utils/Pair.hs compiler/utils/Panic.hs compiler/basicTypes/PatSyn.hs compiler/main/PipelineMonad.hs compiler/hsSyn/PlaceHolder.hs compiler/utils/Platform.hs compiler/main/PlatformConstants.hs compiler/main/Plugins.hs compiler/deSugar/PmExpr.hs compiler/nativeGen/PprBase.hs compiler/cmm/PprC.hs compiler/cmm/PprCmm.hs compiler/cmm/PprCmmDecl.hs compiler/cmm/PprCmmExpr.hs compiler/coreSyn/PprCore.hs compiler/main/PprTyThing.hs compiler/prelude/PrelInfo.hs compiler/prelude/PrelNames.hs compiler/prelude/PrelRules.hs compiler/utils/Pretty.hs compiler/prelude/PrimOp.hs compiler/profiling/ProfInit.hs compiler/parser/RdrHsSyn.hs compiler/basicTypes/RdrName.hs compiler/nativeGen/Reg.hs compiler/nativeGen/RegAlloc/Graph/ArchBase.hs compiler/nativeGen/RegAlloc/Graph/ArchX86.hs compiler/nativeGen/RegAlloc/Graph/Coalesce.hs compiler/nativeGen/RegAlloc/Graph/Main.hs compiler/nativeGen/RegAlloc/Graph/Spill.hs compiler/nativeGen/RegAlloc/Graph/SpillClean.hs compiler/nativeGen/RegAlloc/Graph/SpillCost.hs compiler/nativeGen/RegAlloc/Graph/Stats.hs compiler/nativeGen/RegAlloc/Graph/TrivColorable.hs compiler/nativeGen/RegAlloc/Linear/Base.hs compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs compiler/nativeGen/RegAlloc/Linear/JoinToTargets.hs compiler/nativeGen/RegAlloc/Linear/Main.hs compiler/nativeGen/RegAlloc/Linear/PPC/FreeRegs.hs compiler/nativeGen/RegAlloc/Linear/SPARC/FreeRegs.hs compiler/nativeGen/RegAlloc/Linear/StackMap.hs compiler/nativeGen/RegAlloc/Linear/State.hs compiler/nativeGen/RegAlloc/Linear/Stats.hs compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs compiler/nativeGen/RegAlloc/Linear/X86_64/FreeRegs.hs compiler/nativeGen/RegAlloc/Liveness.hs compiler/nativeGen/RegClass.hs compiler/rename/RnBinds.hs compiler/rename/RnEnv.hs compiler/rename/RnExpr.hs compiler/rename/RnHsDoc.hs compiler/rename/RnNames.hs compiler/rename/RnPat.hs compiler/rename/RnSource.hs compiler/rename/RnSplice.hs compiler/rename/RnTypes.hs compiler/specialise/Rules.hs compiler/simplCore/SAT.hs compiler/profiling/SCCfinal.hs compiler/cmm/SMRep.hs compiler/nativeGen/SPARC/AddrMode.hs compiler/nativeGen/SPARC/Base.hs compiler/nativeGen/SPARC/CodeGen.hs compiler/nativeGen/SPARC/CodeGen/Amode.hs compiler/nativeGen/SPARC/CodeGen/Base.hs compiler/nativeGen/SPARC/CodeGen/CondCode.hs compiler/nativeGen/SPARC/CodeGen/Expand.hs compiler/nativeGen/SPARC/CodeGen/Gen32.hs compiler/nativeGen/SPARC/CodeGen/Gen64.hs compiler/nativeGen/SPARC/CodeGen/Sanity.hs compiler/nativeGen/SPARC/Cond.hs compiler/nativeGen/SPARC/Imm.hs compiler/nativeGen/SPARC/Instr.hs compiler/nativeGen/SPARC/Ppr.hs compiler/nativeGen/SPARC/Regs.hs compiler/nativeGen/SPARC/ShortcutJump.hs compiler/nativeGen/SPARC/Stack.hs compiler/simplCore/SetLevels.hs compiler/simplCore/SimplCore.hs compiler/simplCore/SimplEnv.hs compiler/simplCore/SimplMonad.hs compiler/simplStg/SimplStg.hs compiler/simplCore/SimplUtils.hs compiler/simplCore/Simplify.hs compiler/specialise/SpecConstr.hs compiler/specialise/Specialise.hs compiler/basicTypes/SrcLoc.hs compiler/utils/State.hs compiler/main/StaticFlags.hs compiler/deSugar/StaticPtrTable.hs compiler/codeGen/StgCmm.hs compiler/codeGen/StgCmmArgRep.hs compiler/codeGen/StgCmmBind.hs compiler/codeGen/StgCmmClosure.hs compiler/codeGen/StgCmmCon.hs compiler/codeGen/StgCmmEnv.hs compiler/codeGen/StgCmmExpr.hs compiler/codeGen/StgCmmExtCode.hs compiler/codeGen/StgCmmForeign.hs compiler/codeGen/StgCmmHeap.hs compiler/codeGen/StgCmmHpc.hs compiler/codeGen/StgCmmLayout.hs compiler/codeGen/StgCmmMonad.hs compiler/codeGen/StgCmmPrim.hs compiler/codeGen/StgCmmProf.hs compiler/codeGen/StgCmmTicky.hs compiler/codeGen/StgCmmUtils.hs compiler/stgSyn/StgLint.hs compiler/simplStg/StgStats.hs compiler/stgSyn/StgSyn.hs compiler/utils/Stream.hs compiler/utils/StringBuffer.hs compiler/main/SysTools.hs compiler/prelude/THNames.hs compiler/nativeGen/TargetReg.hs compiler/typecheck/TcAnnotations.hs compiler/typecheck/TcArrows.hs compiler/typecheck/TcBinds.hs compiler/typecheck/TcCanonical.hs compiler/typecheck/TcClassDcl.hs compiler/typecheck/TcDefaults.hs compiler/typecheck/TcDeriv.hs compiler/typecheck/TcEnv.hs compiler/typecheck/TcErrors.hs compiler/typecheck/TcEvidence.hs compiler/typecheck/TcExpr.hs compiler/typecheck/TcFlatten.hs compiler/typecheck/TcForeign.hs compiler/typecheck/TcGenDeriv.hs compiler/typecheck/TcGenGenerics.hs compiler/typecheck/TcHsSyn.hs compiler/typecheck/TcHsType.hs compiler/iface/TcIface.hs compiler/typecheck/TcInstDcls.hs compiler/typecheck/TcInteract.hs compiler/typecheck/TcMType.hs compiler/typecheck/TcMatches.hs compiler/typecheck/TcPat.hs compiler/typecheck/TcPatSyn.hs compiler/typecheck/TcPluginM.hs compiler/typecheck/TcRnDriver.hs compiler/typecheck/TcRnMonad.hs compiler/typecheck/TcRnTypes.hs compiler/typecheck/TcRules.hs compiler/typecheck/TcSMonad.hs compiler/typecheck/TcSimplify.hs compiler/typecheck/TcSplice.hs compiler/typecheck/TcTyClsDecls.hs compiler/typecheck/TcTyDecls.hs compiler/typecheck/TcType.hs compiler/typecheck/TcTypeNats.hs compiler/typecheck/TcTypeable.hs compiler/typecheck/TcUnify.hs compiler/typecheck/TcValidity.hs compiler/main/TidyPgm.hs compiler/deSugar/TmOracle.hs compiler/coreSyn/TrieMap.hs compiler/types/TyCoRep.hs compiler/types/TyCon.hs compiler/types/Type.hs compiler/prelude/TysPrim.hs compiler/prelude/TysWiredIn.hs compiler/utils/UnVarGraph.hs compiler/simplStg/UnariseStg.hs compiler/types/Unify.hs compiler/utils/UniqDFM.hs compiler/utils/UniqDSet.hs compiler/utils/UniqFM.hs compiler/utils/UniqSet.hs compiler/basicTypes/UniqSupply.hs compiler/basicTypes/Unique.hs compiler/utils/Util.hs compiler/basicTypes/Var.hs compiler/basicTypes/VarEnv.hs compiler/basicTypes/VarSet.hs compiler/vectorise/Vectorise.hs compiler/vectorise/Vectorise/Builtins.hs compiler/vectorise/Vectorise/Builtins/Base.hs compiler/vectorise/Vectorise/Builtins/Initialise.hs compiler/vectorise/Vectorise/Convert.hs compiler/vectorise/Vectorise/Env.hs compiler/vectorise/Vectorise/Exp.hs compiler/vectorise/Vectorise/Generic/Description.hs compiler/vectorise/Vectorise/Generic/PADict.hs compiler/vectorise/Vectorise/Generic/PAMethods.hs compiler/vectorise/Vectorise/Generic/PData.hs compiler/vectorise/Vectorise/Monad.hs compiler/vectorise/Vectorise/Monad/Base.hs compiler/vectorise/Vectorise/Monad/Global.hs compiler/vectorise/Vectorise/Monad/InstEnv.hs compiler/vectorise/Vectorise/Monad/Local.hs compiler/vectorise/Vectorise/Monad/Naming.hs compiler/vectorise/Vectorise/Type/Classify.hs compiler/vectorise/Vectorise/Type/Env.hs compiler/vectorise/Vectorise/Type/TyConDecl.hs compiler/vectorise/Vectorise/Type/Type.hs compiler/vectorise/Vectorise/Utils.hs compiler/vectorise/Vectorise/Utils/Base.hs compiler/vectorise/Vectorise/Utils/Closure.hs compiler/vectorise/Vectorise/Utils/Hoisting.hs compiler/vectorise/Vectorise/Utils/PADict.hs compiler/vectorise/Vectorise/Utils/Poly.hs compiler/vectorise/Vectorise/Var.hs compiler/vectorise/Vectorise/Vect.hs compiler/stranal/WorkWrap.hs compiler/stranal/WwLib.hs compiler/nativeGen/X86/CodeGen.hs compiler/nativeGen/X86/Cond.hs compiler/nativeGen/X86/Instr.hs compiler/nativeGen/X86/Ppr.hs compiler/nativeGen/X86/RegInfo.hs compiler/nativeGen/X86/Regs.hs compiler/stage0/build/Config.hs compiler/stage0/build/compiler/cmm/CmmLex.hs compiler/stage0/build/compiler/cmm/CmmParse.hs compiler/stage0/build/compiler/utils/Fingerprint.hs compiler/stage0/build/compiler/parser/Lexer.hs compiler/stage0/build/compiler/parser/Parser.hs
Exit code: 1
Stderr:
compiler/main/DynFlags.hs:127:10:
     fatal error: '../includes/dist-derivedconstants/header/GHCConstantsHaskellExports.hs' file not found
#include "../includes/dist-derivedconstants/header/GHCConstantsHaskellExports.hs"
         ^
1 error generated.
)
@snowleopard
Copy link
Owner

Let's just add all issues related to includes directly to #39. No need to micromanage with multiple issues I guess.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants