<div dir="ltr">On Wed, Sep 9, 2015 at 11:46 AM, Karel Gardas <span dir="ltr"><<a href="mailto:karel.gardas@centrum.cz" target="_blank">karel.gardas@centrum.cz</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 09/ 9/15 04:21 PM, <a href="mailto:jmcf125@openmailbox.org" target="_blank">jmcf125@openmailbox.org</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So ghc-stage1 is working. Good! Now just to find why your base is broken,<br>
please rebuild ghc completely and this time does not use any -j 5 option.<br>
It'll use just one core, but will stop on the first error. Let's see how far<br>
you get.<br>
</blockquote>
Ah. Alright, it took a while longer.<br>
<br>
  $ ./configure --target=arm-linux-gnueabihf --with-gcc=arm-linux-gnueabihf-gcc-sysroot --enable-unregisterised && make<br>
(...)<br>
"inplace/bin/ghc-stage1" -hisuf hi -osuf  o -hcsuf hc -static  -H64m -O0    -this-package-key ghcpr_8TmvWUcS1U1IKHT0levwg3 -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-key rts -this-package-key ghc-prim -XHaskell2010 -O -fllvm  -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   -c libraries/ghc-prim/./GHC/CString.hs -o libraries/ghc-prim/dist-install/build/GHC/CString.o<br>
You are using a new version of LLVM that hasn't been tested yet!<br>
We will try though...<br>
</blockquote>
<br></span>
^ OK you can see this.<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
opt: /tmp/ghc23881_0/ghc_1.ll:7:6: error: unexpected type in metadata definition<br>
!0 = metadata !{metadata !"top", i8* null}<br>
      ^<br>
libraries/ghc-prim/<a href="http://ghc.mk:4" rel="noreferrer" target="_blank">ghc.mk:4</a>: recipe for target 'libraries/ghc-prim/dist-install/build/GHC/CString.o' failed<br>
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/CString.o] Error 1<br>
Makefile:71: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
<br>
This is weird, I think I'm not even using LLVM.<br>
</blockquote>
<br></span>
This is not weird at all! GHC does not provide ARM NCG and so it is using LLVM if you compile ARM registerised build.<br></blockquote><div><br></div><div>But "./configure [...] --enable-unregisterised" should mean using the C backend, not LLVM, right? So this still looks strange. Also there is an explicit "-fllvm" on the failing ghc-stage1 command line.<br><br></div><div>What is in your <a href="http://build.mk">build.mk</a>? Maybe you are using one of the build flavors that sets -fllvm explicitly?<br><br></div><div>That said you can also try installing the supported version of LLVM for ghc 7.10, which is LLVM 3.5.<br></div><div><br></div><div>Regards,<br></div><div>Reid Barton<br></div></div></div></div>