Bug#807020: ghc: FTBFS on armel: selected processor does not support `strd r0, r1, [r7, #64]' in ARM mode

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sun Dec 20 10:09:12 UTC 2015


Hi!

So, here's my suggestion on how to fix this issue.

First, copy the attached patch to the ghc source package but do
not add it to the series file. Instead, add the following to
debian/rules:

ifeq (armel,$(DEB_HOST_ARCH))

        patch -p1 < debian/patches/armel-revert-ticket-10375.patch
endif

This will revert the fix from upstream ticket 10375 but only for
armel which will make the package build on armel again (I am currently
doing a testbuild to verify this but it's still building after two
days on armel on qemu).

Then manually build ghc on an armel machine with the above changes
in a prepared changeroot with the build dependencies taken from
snapshots.debian.org. This way we workaround the fact that ghc
is BD-Uninstallable on armel.

Then create a new version of hscolour (can be just a cosmetic change
just so that we can create a new package version) and build and upload
the package manually on armel.

This should resolve this issue and make ghc build all the haskell
packages on armel again.

I have also talked to upstream and the general opinion is that ARM
support generally still needs lots of work, independent of this
particular bug now so I assume that in the future, we will be able
to drop this workaround again and hopefully have ghc's build system
differenriate between armel and armhf which is what would have prevented
this regression in the first place.

Cheers,
Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-------------- next part --------------
A non-text attachment was scrubbed...
Name: armel-revert-ticket-10375.patch
Type: text/x-patch
Size: 3699 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20151220/9d368ab6/attachment.bin>


More information about the Pkg-haskell-maintainers mailing list