[GHC] #11570: C build fails on RPi 2

#11570: C build fails on RPi 2 ---------------------------------+------------------------------------- Reporter: neuwirthe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.4-rc1 Keywords: | Operating System: Unknown/Multiple Architecture: arm | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ---------------------------------+------------------------------------- I am trying to build ghc 7.8.4 on a RaspberryPi 2 B This fails in the last step. I installed ghc 7.6.3 from the Raspbian archive pi@raspberrypi32:~/devel/ghc-7.8.4$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.6.3 And I downloaded the sources for 7.8.4 from here. https://www.haskell.org/ghc/dist/7.8.4/ghc-7.8.4-src.tar.bz2 The I unarchived the tar file and did ./boot ./configure make Then, tha machine happily chruned alog for more than 12 hours and then I got ===--- building final phase make -r --no-print-directory -f ghc.mk phase=final all inplace/bin/dll-split compiler/stage2/build/.depend-v-p-dyn.haskell "DynFlags" "Annotations Avail Bag BasicTypes BinIface Binary BooleanFormula BreakArray BufWrite BuildTyCl Class CmdLineParser CmmType CoAxiom ConLike Coercion Config Constants CoreArity CoreFVs CoreLint CoreSubst CoreSyn CoreTidy CoreUnfold CoreUtils CostCentre DataCon Demand Digraph DriverPhases DsMonad DynFlags Encoding ErrUtils Exception ExtsCompat46 FamInstEnv FastFunctions FastMutInt FastString FastTypes Finder Fingerprint FiniteMap ForeignCall Hooks HsBinds HsDecls HsDoc HsExpr HsImpExp HsLit HsPat HsSyn HsTypes HsUtils HscTypes IOEnv Id IdInfo IfaceEnv IfaceSyn IfaceType InstEnv Kind ListSetOps Literal LoadIface Maybes MkCore MkId Module MonadUtils Name NameEnv NameSet OccName OccurAnal OptCoercion OrdList Outputable PackageConfig Packages Pair Panic PatSyn PipelineMonad Platform PlatformConstants PprCore PrelInfo PrelNames PrelRules Pretty PrimOp RdrName Rules Serialized SrcLoc StaticFlags StringBuffer TcEvidence TcIface TcRnMonad TcRnTypes TcType TcTypeNats 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.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" dll-split: internal error: evacuate(static): strange closure type 0 (GHC version 7.8.4 for arm_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug compiler/ghc.mk:646: recipe for target 'compiler/stage2/dll-split.stamp' failed make[1]: *** [compiler/stage2/dll-split.stamp] Aborted Makefile:71: recipe for target 'all' failed make: *** [all] Error 2 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11570 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11570: C build fails on RPi 2 -------------------------------------+--------------------------------- Reporter: neuwirthe | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.4-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+--------------------------------- Comment (by neuwirthe): I forgot to mention: I also get warnings of the following type: [ 1 of 89] Compiling Distribution.PackageDescription.Utils ( libraries/Cabal/Cabal/Distribution/PackageDescription/Utils.hs, bootstrapping/Distribution/PackageDescription/Utils.o ) You are using a new version of LLVM that hasn't been tested yet! We will try though... And this is the information abut the version of LLVM I am using: pi@raspberrypi32:~/devel/ghc-7.8.4$ /usr/lib/llvm-3.4/bin/opt --version LLVM (http://llvm.org/): LLVM version 3.4.2 Optimized build. Built Nov 5 2014 (21:06:13). Default target: arm-unknown-linux-gnueabihf Host CPU: (unknown) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11570#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11570: C build fails on RPi 2 -------------------------------------+--------------------------------- Reporter: neuwirthe | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.4-rc1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: arm Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+--------------------------------- Changes (by rwbarton): * status: new => closed * resolution: => wontfix Comment: This looks like it might be #8976. Are you using the gold linker? But even if you get past that, you'd run into #9439. Unfortunately the whole 7.8 line has a serious bug in the LLVM backend making it unusable. You can try applying commit 5895f2b8ffba72a8393e9f712461e6e5ed7ceced. It should be easy, it was just overlooked. If you don't mind building 7.10 instead of 7.8, I imagine you'd probably have an easier time with that (both these bugs are fixed in 7.10). Closing since 7.8 is no longer supported. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11570#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC