LLVM 3.2 failure

Jan Stolarek jan.stolarek at p.lodz.pl
Thu Mar 14 16:00:22 CET 2013


I'm attaching a fingerprint - is this OK?

I'm quite puzzled about this, mostly because yesterday I couldn't build GHC using LLVM 3.0 - I'm 
attaching error messages in a separate file. It used to work about two weeks ago when I used GHC 
7.4.2 + LLVM 3.0 to build myself an optimized version of GHC 7.6.2 (perf-llvm, official source 
snapshot from GHC download page).

Janek
-------------- next part --------------
.|56353e3da9d5718dfd25e25ccf61c78b25deefe8
libraries/Cabal|8395c5db800284c9e2b54b5c45b94c4a3bfdfcf2
libraries/Win32|1f9f7175e747aad7c424f5b12be5b95f15286f0b
libraries/binary|4d890e4465a0494e5fd80fbcf1fb339d8bd5800d
libraries/bytestring|9692aaf0bf9b203f9249a1414637328fd31fc04a
libraries/containers|41bc140a140143fa517df4c1a08365474cde4d14
libraries/haskeline|3a92ddd63d4edc622ad4af044c5b664aa64c3dd4
libraries/pretty|0b8eada2d4d62dd09ee361d8b6ca9b13e6573202
libraries/primitive|75c3379b6d76e914cc3c7ffd290b6b1cad7ea3e6
libraries/random|4b68afd3356674f12a67a4e381fa9becd704fab2
libraries/terminfo|116d3ee6840d52bab69c880d775ae290a20d64bc
libraries/time|12ba4321d34d646cf9040ad12810c4257d26ade9
libraries/transformers|a59fb93860f84ccd44178dcbbb82cfea7e02cd07
libraries/vector|f27156970d9480806a5defcfea5367187c2a6997
libraries/xhtml|fb9e0bbb69e15873682a9f25d39652099a3ccac1
-------------- next part --------------
PERF-LLVM:

"inplace/bin/ghc-stage1" -static -prof  -O -H64m -fllvm    -package-name ghc-prim-0.3.1.0 -hide-all-packages -i -ilibraries/ghc-prim/. -ilibraries/ghc-prim/dist-install/build -ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/dist-install/build -Ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/.    -optP-include -optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h -package rts-1.0   -package-name ghc-prim -XHaskell98 -XCPP -XMagicHash -XForeignFunctionInterface -XUnliftedFFITypes -XUnboxedTuples -XEmptyDataDecls -XNoImplicitPrelude -O2  -no-user-package-db -rtsopts      -odir libraries/ghc-prim/dist-install/build -hidir libraries/ghc-prim/dist-install/build -stubdir libraries/ghc-prim/dist-install/build -hisuf p_hi -osuf  p_o -hcsuf p_hc -c libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs -o libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.p_o
LLVM ERROR: Cannot select: 0x1346930: v2i64 = insert_vector_elt 0x1341940, 0x1345450, 0x1346b30 [ORD=294] [ID=35]
  0x1341940: v2i64,ch = load 0x10fe0c8, 0x1342150, 0x1342650<LD16[%ln3mg](align=1)(tbaa=!"stack")> [ORD=291] [ID=28]
    0x1342150: i64,ch = CopyFromReg 0x10fe0c8, 0x1342950 [ORD=286] [ID=23]
      0x1342950: i64 = Register %vreg1 [ORD=286] [ID=2]
    0x1342650: i64 = undef [ORD=287] [ID=7]
  0x1345450: i64,ch = load 0x10fe0c8, 0x1341f50, 0x1342650<LD8[%ln3mb](tbaa=!"stack")> [ORD=289] [ID=32]
    0x1341f50: i64 = add 0x1342150, 0x1345650 [ORD=288] [ID=29]
      0x1342150: i64,ch = CopyFromReg 0x10fe0c8, 0x1342950 [ORD=286] [ID=23]
        0x1342950: i64 = Register %vreg1 [ORD=286] [ID=2]
      0x1345650: i64 = Constant<16> [ORD=288] [ID=8]
    0x1342650: i64 = undef [ORD=287] [ID=7]
  0x1346b30: i64,ch = load 0x10fe0c8, 0x133d020, 0x1342650<LD4[%ln3m7](align=8), zext from i32> [ID=33]
    0x133d020: i64 = add 0x1342150, 0x1341040 [ORD=286] [ID=30]
      0x1342150: i64,ch = CopyFromReg 0x10fe0c8, 0x1342950 [ORD=286] [ID=23]
        0x1342950: i64 = Register %vreg1 [ORD=286] [ID=2]
      0x1341040: i64 = Constant<24> [ORD=286] [ID=6]
    0x1342650: i64 = undef [ORD=287] [ID=7]
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.o] B??d 1
make[1]: *** Oczekiwanie na niezako?czone zadania....
LLVM ERROR: Cannot select: 0x15057a0: v2i64 = insert_vector_elt 0x15061a0, 0x1509cb0, 0x150b390 [ORD=294] [ID=35]
  0x15061a0: v2i64,ch = load 0x14dcc78, 0x15069b0, 0x1506eb0<LD16[%ln3O8](align=1)(tbaa=!"stack")> [ORD=291] [ID=28]
    0x15069b0: i64,ch = CopyFromReg 0x14dcc78, 0x15071b0 [ORD=286] [ID=23]
      0x15071b0: i64 = Register %vreg1 [ORD=286] [ID=2]
    0x1506eb0: i64 = undef [ORD=287] [ID=7]
  0x1509cb0: i64,ch = load 0x14dcc78, 0x15067b0, 0x1506eb0<LD8[%ln3O3](tbaa=!"stack")> [ORD=289] [ID=32]
    0x15067b0: i64 = add 0x15069b0, 0x1509eb0 [ORD=288] [ID=29]
      0x15069b0: i64,ch = CopyFromReg 0x14dcc78, 0x15071b0 [ORD=286] [ID=23]
        0x15071b0: i64 = Register %vreg1 [ORD=286] [ID=2]
      0x1509eb0: i64 = Constant<16> [ORD=288] [ID=8]
    0x1506eb0: i64 = undef [ORD=287] [ID=7]
  0x150b390: i64,ch = load 0x14dcc78, 0x1501880, 0x1506eb0<LD4[%ln3NZ](align=8), zext from i32> [ID=33]
    0x1501880: i64 = add 0x15069b0, 0x15058a0 [ORD=286] [ID=30]
      0x15069b0: i64,ch = CopyFromReg 0x14dcc78, 0x15071b0 [ORD=286] [ID=23]
        0x15071b0: i64 = Register %vreg1 [ORD=286] [ID=2]
      0x15058a0: i64 = Constant<24> [ORD=286] [ID=6]
    0x1506eb0: i64 = undef [ORD=287] [ID=7]
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.p_o] B??d 1
make: *** [all] B??d 2


QUICK-LLVM:

"inplace/bin/ghc-stage1" -optc-Ilibraries/unix/include -optc-I'/dane/uczelnia/projekty/ghc-build/libraries/time/include' -optc-I'/dane/uczelnia/projekty/ghc-build/libraries/bytestring/include' -optc-I'/dane/uczelnia/projekty/ghc-build/libraries/array/include' -optc-I'/dane/uczelnia/projekty/ghc-build/libraries/base/include' -optc-I'/dane/uczelnia/projekty/ghc-build/rts/dist/build' -optc-I'/dane/uczelnia/projekty/ghc-build/includes' -optc-I'/dane/uczelnia/projekty/ghc-build/includes/dist-derivedconstants/header' -static  -H64m -O0 -fllvm    -package-name unix-2.7.0.0 -hide-all-packages -i -ilibraries/unix/. -ilibraries/unix/dist-install/build -ilibraries/unix/dist-install/build/autogen -Ilibraries/unix/dist-install/build -Ilibraries/unix/dist-install/build/autogen -Ilibraries/unix/include    -optP-include -optPlibraries/unix/dist-install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package bytestring-0.10.3.0 -package time-1.4.0.2   -XHaskell98 -XCPP -XForeignFunctionInterface -XEmptyDataDecls -XNondecreasingIndentation -O -fllvm  -no-user-package-db -rtsopts      -c libraries/unix/cbits/execvpe.c -o libraries/unix/dist-install/build/cbits/execvpe.o
LLVM ERROR: Cannot select: 0x134da80: v2i64 = insert_vector_elt 0x134cd80, 0x134baa0, 0x134d680 [ORD=261] [ID=35]
  0x134cd80: v2i64 = bitcast 0x1347d90 [ORD=260] [ID=33]
    0x1347d90: v4i32,ch = CopyFromReg 0x10fe0c8, 0x1348490 [ORD=260] [ID=30]
      0x1348490: v4i32 = Register %vreg10 [ORD=260] [ID=8]
  0x134baa0: i64,ch = CopyFromReg 0x10fe0c8, 0x13493a0 [ORD=261] [ID=27]
    0x13493a0: i64 = Register %vreg4 [ORD=261] [ID=5]
  0x134d680: i64 = and 0x1348590, 0x1372120 [ID=32]
    0x1348590: i64,ch = CopyFromReg 0x10fe0c8, 0x134bea0 [ORD=259] [ID=28]
      0x134bea0: i64 = Register %vreg5 [ORD=259] [ID=6]
    0x1372120: i64 = Constant<4294967295> [ID=22]
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.o] Błąd 1
make[1]: *** Oczekiwanie na niezakończone zadania....
make: *** [all] Błąd 2




More information about the ghc-devs mailing list