[Bug 995419] [neon] ghc throws an illegal instruction error when compiling on nvidia tegra2

bugzilla at redhat.com bugzilla at redhat.com
Mon Jul 14 07:30:10 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=995419



--- Comment #13 from Jens Petersen <petersen at redhat.com> ---
(In reply to Hans de Goede from comment #7)
> Unfortunately my trimslice is acting up.
:
> So I got it to boot once, and clang --version and llvm-as --version both
> worked fine.

I guess we need to see how ghc is running llc...

I tried to build ghc-entropy on arm with verbose ghc output


=====
--- a/ghc-entropy.spec
+++ b/ghc-entropy.spec
@@ -44,6 +44,7 @@ This package provides the Haskell %{pkg_name} library
development files.
 %patch1 -p1 -b .orig

 %build
+cabal_configure_extra_options="--ghc-option=-v"
 %ghc_lib_build


=====

and see (http://koji.fedoraproject.org/koji/taskinfo?taskID=7135691):

:
*** CodeGen:
*** LlVM CodeGen:
You are using a new version of LLVM that hasn't been tested yet!
We will try though...
*** LLVM Optimiser:
'/usr/bin/opt' '/tmp/ghc408_0/ghc408_0.ll' '-o' '/tmp/ghc408_0/ghc408_0.bc'
'-O2' '--enable-tbaa=true'
*** LLVM Compiler:
'/usr/bin/llc' '-O3' '-relocation-model=static' '/tmp/ghc408_0/ghc408_0.bc'
'-o' '/tmp/ghc408_0/ghc408_0.lm_s' '--enable-tbaa=true' '-mattr=+v7,+vfp3'
'-float-abi=hard'
:

The "+vfp3" looks like the place where neon should be disabled perhaps.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=UutqUaHVpZ&a=cc_unsubscribe


More information about the haskell-devel mailing list