Re: optllvm failures

2014-04-29 Thread Simon Marlow
We should reject LLVM 3.2 if it's known to be bad - I remember running into this on the RPi too. LlvmCodeGen already checks the version number and emits warnings if it's too old or too new. On 24/04/2014 20:04, Austin Seipp wrote: GHC 7.6 did not support LLVM 3.2 - it was only tested with up-

Re: optllvm failures

2014-04-24 Thread Daniel Fischer
On Thursday 24 April 2014, 14:04:13, Austin Seipp wrote: > Can you try another LLVM version? LLVM 3.2 has been known to be > particularly problematic - I believe me and David looked into this a > while back, and we couldn't get even get the compiler to bootstrap > with it at one point, let alone fi

Re: optllvm failures

2014-04-24 Thread Carter Schonwald
Look at the output of ghc --info It will tell you what opt /LLC ghc will invoke by default. ghc 7.8 should work with llvm 3.3/3.4 On Thursday, April 24, 2014, Daniel Fischer < daniel.is.fisc...@googlemail.com> wrote: > On Thursday 24 April 2014, 14:49:18, Carter Schonwald wrote: > > What OS? Is

Re: optllvm failures

2014-04-24 Thread Austin Seipp
(And note I base this assumption on the principle that e.g. ARM is currently working relatively well with the latest versions of LLVM, where that's the only option for the code generator. But we've had other bugs exposed here before, or exposed LLVM bugs, so it may just be whack-a-mole...) On Thu,

Re: optllvm failures

2014-04-24 Thread Austin Seipp
GHC 7.6 did not support LLVM 3.2 - it was only tested with up-to LLVM 3.1. The odd version number for LLVM 3.2 was a known problem with their tarball, they forgot to remove the 'svn' suffix. This shouldn't be a problem for GHC, it should correctly parse the right thing anyway. Can you try another

Re: optllvm failures

2014-04-24 Thread Daniel Fischer
On Thursday 24 April 2014, 14:49:18, Carter Schonwald wrote: > What OS? Is this on a vm? Oops, sorry. openSuSE 12.3 (64 bit), nothing virtual. > I7-avx is the instruction family. I5 will be ok. Okay, then it's probably that what openSuSE calls 3.2 is not what GHC thinks 3.2 is. __

Re: optllvm failures

2014-04-24 Thread Carter Schonwald
What OS? Is this on a vm? I7-avx is the instruction family. I5 will be ok. Certain vms break handling avx register saves. On Thursday, April 24, 2014, Daniel Fischer < daniel.is.fisc...@googlemail.com> wrote: > I have done a bit of testing with regards to my optllvm failures in the &g

optllvm failures

2014-04-24 Thread Daniel Fischer
I have done a bit of testing with regards to my optllvm failures in the testsuite. Some tests compile but segfault when they are run, others fail to compile, both with HEAD and 7.8.2, but those I tested all work with 7.6.3, although 7.6 gives the warning: You are using a new version of LLVM