Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-05-03 Thread Nicola Squartini
It has been proposed here https://groups.google.com/forum/#!topic/llvm-dev/gGivQ38EHIY that LLVM should not autodetect the cpu by default, but only if the flag -mcpu=native is passed. This is what GCC does already with -march=native. BTW Magnus, did you try the patch that I sent yet? Nicola On

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-27 Thread Magnus Therning
On Mon, Apr 28, 2014 at 12:08:08AM +0200, Nicola Squartini wrote: > I remember reading somewhere that packages that use parallelism, > like `repa`, would benefit from the llvm backend. I've never seen > benchmarks though. Ah, sounds interesting. What I have read in some old haskell-cafe posts is

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-27 Thread Nicola Squartini
I remember reading somewhere that packages that use parallelism, like `repa`, would benefit from the llvm backend. I've never seen benchmarks though. On Sun, Apr 27, 2014 at 11:55 PM, Magnus Therning wrote: > On Sun, Apr 27, 2014 at 11:11:25PM +0200, Nicola Squartini wrote: > > I never used LLVM

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-27 Thread Magnus Therning
On Sun, Apr 27, 2014 at 11:11:25PM +0200, Nicola Squartini wrote: > I never used LLVM so I'm looking at the manual right now. It's explained > here: > > http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mcpu > > It autodetects the cpu and optimizes for it. > As I understand, in order to produc

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-27 Thread Nicola Squartini
I never used LLVM so I'm looking at the manual right now. It's explained here: http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mcpu It autodetects the cpu and optimizes for it. As I understand, in order to produce generic code you should pass -mcpu=i686 or -mcpu=x86_64. They can be passed to

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-27 Thread Magnus Therning
On Sun, Apr 27, 2014 at 10:16:30PM +0200, Nicola Squartini wrote: > Is it possible that LLVM automatically optimizes for your > architecture or triggers the use of some simd that is not present on > my AMDs? I suppose that might be the case. It is possible to pass options to specific parts of the

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-27 Thread Magnus Therning
On Sat, Apr 26, 2014 at 05:08:58PM +0200, Nicola Squartini wrote: > Version 1.15.0 of HSE was not compiled with llvm, was it? At least from > what I see from the git history. That is correct. I held back on adding HSE to [haskell-testing] for a long time due to GHC 7.8 not being able to compile i

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-26 Thread Nicola Squartini
Version 1.15.0 of HSE was not compiled with llvm, was it? At least from what I see from the git history. On Sat, Apr 26, 2014 at 10:39 AM, Nicola Squartini wrote: > I opened a ticket a few days ago already > https://ghc.haskell.org/trac/ghc/ticket/8991 but no answer. I guess it's > difficult to

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-26 Thread Nicola Squartini
I opened a ticket a few days ago already https://ghc.haskell.org/trac/ghc/ticket/8991 but no answer. I guess it's difficult to reproduce. In fact if I recompile HSE using your same PKGBUILD, it works fine! I'm using llvm-3.4-1 and glibc-2.19-3. I wonder what could be different between your build

Re: [arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-26 Thread Magnus Therning
On Fri, Apr 25, 2014 at 04:10:37PM +0200, Nicola Squartini wrote: > Hi, > > I already mentioned this problem earlier on this mailing list, but now I > have some extra information. > > It's the following (on GHCi): > > Prelude> :m Language.Haskell.Exts > Prelude Language.Haskell.Exts> parseFileCo

[arch-haskell] haskell-src-exts: Illegal instruction (core dumped)

2014-04-25 Thread Nicola Squartini
Hi, I already mentioned this problem earlier on this mailing list, but now I have some extra information. It's the following (on GHCi): Prelude> :m Language.Haskell.Exts Prelude Language.Haskell.Exts> parseFileContents "main = putStrLn \"Hello World\"" Loading package array-0.5.0.0 ... linking .