https://bugzilla.redhat.com/show_bug.cgi?id=995419
Bug ID: 995419 Summary: ghc throws an illegal instruction error when compiling on nvidia tegra2 Product: Fedora Version: rawhide Component: ghc Assignee: petersen@redhat.com Reporter: hdegoede@redhat.com QA Contact: extras-qa@fedoraproject.org CC: bos@serpentine.com, haskell-devel@lists.fedoraproject.org, petersen@redhat.com
While doing a testbuild of hedgewars on my trimslice (arm system with nVidia Tegra2 soc), I got the following error:
/bin/sh: line 1: 1076 Illegal instruction /usr/bin/ghc --make /root/rpmbuild/BUILD/hedgewars-src-0.9.18/gameServer/hedgewars-server.hs -i/root/rpmbuild/BUILD/hedgewars-src-0.9.18/gameServer -o /root/rpmbuild/BUILD/hedgewars-src-0.9.18/bin/hedgewars-server -odir /root/rpmbuild/BUILD/hedgewars-src-0.9.18/gameServer -hidir /root/rpmbuild/BUILD/hedgewars-src-0.9.18/gameServer -O2
This is with F-20 ghc, but F-19 glibc due to bug 985342, after fixing the build issue I was trying to debug "blind" (guessing the cause and firing of a build) the build did succeed on the buildsystem, so the likely cause for this is the ghc binaries containing (unconditionally executed) neon code.
A good place to start fixing this is to check the compile flags for ghc, end ensure they don't enable neon. If that is not the case it may be interesting to wait and see how bug 985342 plays out, as that is a similar issue.