Description of problem:
haskell-platform fails to build under ghc-7.8.4 on aarch64.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. fedpkg local/build
Setup: The program alex version ==3.1.3 is required but the version of
/usr/bin/alex could not be determined.
Workaround will probably be to comment out alex from haskell-platform.cabal.
I don't think this is just limited to the above.
I see similar with the ghc-haskell-src-exts build and happy req
And ghc-language-java with alex
there appears to be a theme ;-)
gtk2hs-buildtools has issues detecting alex too. This one affects quite a number of package builds
Can we up the priority on this issue now?
Actually it now looks like this really is a duplicate of bug 1195231.
erikd posted a patch which likely fixes this to upstream, which I am
testing in http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2957099
The upstream ticket is <https://ghc.haskell.org/trac/ghc/ticket/9673>.
gtk2hs-buildtools-0.13.0.3-2.fc22 has been submitted as an update for Fedora 22.
It's clear this is a more wider problem that just a single issue with gtk2hs-buildtools.
What is the status of getting a proper fix?
(In reply to Peter Robinson from comment #8)
> It's clear this is a more wider problem that just a single issue with
> ghc-cairo http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2965561
Right it is a ghc bug and affects all versioned build-tools detection
during Cabal configure.
> What is the status of getting a proper fix?
Have a look at the upstream ticket (comment 6): people are working on it now.
Still hard to say when a fix will be available.
Basically it seems ghc is not flushing output to stdout from subprocesses
on aarch64 (ie from processes not attached to a tty).
See eg https://ghc.haskell.org/trac/ghc/ticket/9673#comment:23
for a minimal reproducer.
Okay the solution seems to be to use ld.gold for aarch64 too (like armv7).
*** This bug has been marked as a duplicate of bug 1195231 ***
gtk2hs-buildtools-0.13.0.3-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.