[GHC] #10292: Validate fails on armhf-linux

#10292: Validate fails on armhf-linux -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Keywords: | Operating System: Unknown/Multiple Architecture: arm | Type of failure: Building GHC Test Case: | failed Blocking: | Blocked By: Differential Revisions: | Related Tickets: -------------------------------------+------------------------------------- After apply the 'configure : LLVM and LD detection improvements' patch from #10234 validation of the ghc-7.10 branch fails with: {{{ inplace/bin/dll-split compiler/stage2/build/.depend-v-dyn.haskell \ "DynFlags" "Annotations ApiAnnotation Avail Bag BasicTypes Binary \ BooleanFormula BreakArray BufWrite Class CmdLineParser CmmType CoAxiom \ ConLike Coercion Config Constants CoreArity CoreFVs CoreSubst CoreSyn \ CoreTidy CoreUnfold CoreUtils CostCentre DataCon Demand Digraph \ DriverPhases DynFlags Encoding ErrUtils Exception ExtsCompat46 \ FamInstEnv FastFunctions FastMutInt FastString FastTypes Fingerprint \ FiniteMap ForeignCall Hooks HsBinds HsDecls HsDoc HsExpr HsImpExp \ HsLit PlaceHolder HsPat HsSyn HsTypes HsUtils HscTypes IOEnv Id \ IdInfo IfaceSyn IfaceType InstEnv Kind Lexeme ListSetOps Literal \ Maybes MkCore MkId Module MonadUtils Name NameEnv NameSet OccName \ OccurAnal OptCoercion OrdList Outputable PackageConfig Packages Pair \ Panic PatSyn PipelineMonad Platform PlatformConstants PprCore PrelNames \ PrelRules Pretty PrimOp RdrName Rules Serialized SrcLoc StaticFlags \ StringBuffer TcEvidence TcRnTypes TcType TrieMap TyCon Type TypeRep \ TysPrim TysWiredIn Unify UniqFM UniqSet UniqSupply Unique Util Var \ VarEnv VarSet Bitmap BlockId ByteCodeAsm ByteCodeInstr ByteCodeItbls \ CLabel Cmm CmmCallConv CmmExpr CmmInfo CmmMachOp CmmNode CmmUtils \ CodeGen.Platform CodeGen.Platform.ARM CodeGen.Platform.ARM64 \ CodeGen.Platform.NoRegs CodeGen.Platform.PPC CodeGen.Platform.PPC_Darwin \ CodeGen.Platform.SPARC CodeGen.Platform.X86 CodeGen.Platform.X86_64 \ FastBool Hoopl Hoopl.Dataflow InteractiveEvalTypes MkGraph PprCmm \ PprCmmDecl PprCmmExpr Reg RegClass SMRep StgCmmArgRep StgCmmClosure \ StgCmmEnv StgCmmLayout StgCmmMonad StgCmmProf StgCmmTicky StgCmmUtils \ StgSyn Stream" compiler/ghc.mk:653: recipe for target 'compiler/stage2/dll-split.stamp' failed make[1]: *** [compiler/stage2/dll-split.stamp] Segmentation fault }}} There have been a number of tickets related to `dll-split` on armhf. I have verified that the `ld.gold` linker is being invoked. The fixes introduced in #9873 also seem to be present. More investigation needed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10292: Validate fails on armhf-linux ----------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+--------------------------------- Comment (by rwbarton): dll-split crashing usually just means the stage2 compiler is broken somehow, it may be good to start by running the test suite. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10292: Validate fails on armhf-linux ----------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+--------------------------------- Comment (by erikd): @rwbarton : With this failure to build `dll-split` the stage2 compiler isn't complete, so how do I run the test suite? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10292: Validate fails on armhf-linux ----------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+--------------------------------- Comment (by rwbarton): If `dll-split` was built then the stage2 compiler has also been built, since `dll-split` is built with the stage2 compiler. It's just the `dll- split` check and perhaps some libraries that did not get built yet, but you can run the test suite without those. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10292: Validate fails on armhf-linux ----------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+--------------------------------- Changes (by bgamari): * cc: bgamari (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10292: Validate fails on armhf-linux ----------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+--------------------------------- Comment (by erikd): A checkout of the ghc-7.10 branch (commit f6c690ba64) with these cherry- picked commits: {{{ 5d5abdca31 llvmGen: move to LLVM 3.6 exclusively 56fbc18e13 Commit missing T10148 files and ignore the built executable. }}} and commit that fixes some `configure.ac`, `aclocal.m4` and `distrib/configure.ac.in` issues does not suffer from this `ddl-split` issue. This is also reminiscent of #9920 where the fix was to either patch the llvm-3.5 sources or move to llvm-3.6. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10292: Validate fails on armhf-linux ----------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+--------------------------------- Comment (by erikd): Its seems to that @bgamari is is using llvm-3.5.1 where I have been using the llvm-3.5 package from Debian (which seems to be llvm-3.5.0 with about 30 patches applied). Since ticket #9920 actually has the `arm-lower-tail- calls.patch` patch as an attachment, that patch could probably be added the Debian's llvm package, but that doesn't solve the problem on non- Debian systems. What we need now is a way to detect this llvm bug at configure time. I'm working on that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10292: Validate fails on armhf-linux ----------------------------------------+--------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------------+--------------------------------- Changes (by erikd): * status: new => closed * resolution: => duplicate Comment: The patch to detect this at configure time is in #10329 and Phab:D856 . -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10292#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC