Skip to content
Commits on Source (3)
  • Gianfranco Costamagna's avatar
    ghc: force llvm-8, I tested llvm-9 in a ppa and failed with: · 83c471b7
    Gianfranco Costamagna authored
    "inplace/bin/ghc-stage1" -hisuf hi -osuf  o -hcsuf hc -static  -H32m -O -lffi -optl-pthread -Wall   -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header   -this-unit-id ghc-8.8.1 -hide-all-packages -i -icompiler/backpack -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/hieFile -icompiler/stage2/build -Icompiler/stage2/build -icompiler/stage2/build/./autogen -Icompiler/stage2/build/./autogen -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/../rts/dist/build -Icompiler/stage2 -Icompiler/stage2/build/. -Icompiler/stage2/build/parser -Icompiler/stage2/build/utils -Icompiler/stage2/build/../rts/dist/build -Icompiler/stage2/build/stage2   -optP-DGHCI -optP-DINTEGER_GMP -optP-include -optPcompiler/stage2/build/./autogen/cabal_macros.h -package-id array-0.5.4.0 -package-id base-4.13.0.0 -package-id binary-0.8.7.0 -package-id bytestring-0.10.9.0 -package-id containers-0.6.2.1 -package-id deepseq-1.4.4.0 -package-id directory-1.3.3.2 -package-id filepath-1.4.2.1 -package-id ghc-boot-8.8.1 -package-id ghc-boot-th-8.8.1 -package-id ghc-heap-8.8.1 -package-id ghci-8.8.1 -package-id hpc-0.6.0.3 -package-id integer-gmp-1.0.2.0 -package-id process-1.6.5.1 -package-id template-haskell-2.15.0.0 -package-id terminfo-0.4.1.4 -package-id time-1.9.3 -package-id transformers-0.5.6.2 -package-id unix-2.7.2.2 -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances -this-unit-id ghc -XHaskell2010 -XNoImplicitPrelude -optc-DTHREADED_RTS -DGHCI_TABLES_NEXT_TO_CODE -DSTAGE=2 -Rghc-timing -O2 -haddock -Wcpp-undef  -no-user-package-db -rtsopts       -Wnoncanonical-monad-instances  -outputdir compiler/stage2/build   -dynamic-too -c compiler/prelude/TysPrim.hs -o compiler/stage2/build/TysPrim.o -dyno compiler/stage2/build/TysPrim.dyn_o
    You are using an unsupported version of LLVM!
    Currently only 7 is supported.
    We will try though...
    LLVM ERROR: out of memory
    Stack dump:
    0.	Program arguments: opt -O2 -enable-tbaa -tbaa -relocation-model=static /tmp/ghc19343_0/ghc_3.ll -o /tmp/ghc19343_0/ghc_5.bc
    /usr/lib/aarch64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x30)[0xffff843459c8]
    LLVM ERROR: out of memory
    Stack dump:
    0.	Program arguments: llc -O2 -enable-tbaa -relocation-model=static -mcpu=generic -mattr=+neon /tmp/ghc15878_0/ghc_6.bc -o /tmp/ghc15878_0/ghc_7.lm_s
    1.	Running pass 'Function Pass Manager' on module '/tmp/ghc15878_0/ghc_6.bc'.
    2.	Running pass 'AArch64 Instruction Selection' on function '@"s3pcQ_info$def"'
    `opt' failed in phase `LLVM Optimiser'. (Exit code: -6)
    <<ghc: 1700597048 bytes, 187 GCs, 16113040/45564360 avg/max bytes residency (10 samples), 119M in use, 0.001 INIT (0.002 elapsed), 6.681 MUT (14.365 elapsed), 2.268 GC (3.350 elapsed) :ghc>>
    make[3]: *** [compiler/ghc.mk:445: compiler/stage2/build/TysPrim.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    `llc' failed in phase `LLVM Compiler'. (Exit code: -9)
    <<ghc: 167069333120 bytes, 2791 GCs, 371658610/1080078360 avg/max bytes residency (43 samples), 2994M in use, 0.001 INIT (0.001 elapsed), 570.436 MUT (1328.734 elapsed), 216.291 GC (219.568 elapsed) :ghc>>
    make[3]: *** [compiler/ghc.mk:445: compiler/stage2/build/HsInstances.p_o] Error 1
    83c471b7
  • Gianfranco Costamagna's avatar
  • Gianfranco Costamagna's avatar
    1c7d67bc
ghc (8.8.1+dfsg1-1~exp3) experimental; urgency=medium
* Stick with llvm-8, because llvm-9 seems to be not able to make the build
finish correctly (error during the compile of a test program in ghc
testsuite)
* Comment patch fix-build-using-unregisterized-v8.4: we are using 8.6.5
to bootstrap 8.8.1
-- Gianfranco Costamagna <locutusofborg@debian.org> Wed, 11 Sep 2019 08:55:51 +0200
ghc (8.8.1+dfsg1-1~exp2) experimental; urgency=medium
* Followup upstream change in ghc configure script to fix a configure error
......
......@@ -14,7 +14,7 @@ Build-Depends:
pkg-config,
ghc:native (>= 8.4),
libgmp-dev,
llvm [arm64 armel armhf],
llvm-8 [arm64 armel armhf],
libffi-dev,
libncurses5-dev,
python-sphinx <!cross>,
......@@ -30,7 +30,7 @@ Vcs-Browser: https://salsa.debian.org/haskell-team/DHG_packages/tree/master/p/gh
Package: ghc
Architecture: any
Depends:
llvm [arm64 armel armhf],
llvm-8 [arm64 armel armhf],
gcc,
libgmp-dev,
libffi-dev,
......@@ -53,7 +53,7 @@ Replaces: ghc6 (<< 7), ghc-dynamic (<< 7.8), ghc-haddock (<< 7.10), ${conflictin
Conflicts: ghc6 (<< 7), ghc-dynamic (<< 7.8)
Breaks: cabal-install (<< 1.22), haskell-devscripts (<< 0.8.13),
ghc-doc (<< 7.10), ghc-haddock (<< 7.10), ${conflicting-devs}
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-8
Description: The Glasgow Haskell Compilation system
The Glorious Glasgow Haskell Compilation system (GHC) is a compiler for
Haskell.
......
......@@ -7,4 +7,4 @@ use-stage1-binaries-for-install.patch
llvm-arm-unknown-linux-gnueabi.patch
kfreebsd-aclocal.m4
local-mathjax
fix-build-using-unregisterized-v8.4
#fix-build-using-unregisterized-v8.4