https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Bug ID: 1210323 Summary: haskell-platform FTBFS on aarch64: program alex version ==3.1.3 is required but version could not be determined Product: Fedora Version: 22 Component: haskell-platform Assignee: petersen@redhat.com Reporter: petersen@redhat.com QA Contact: extras-qa@fedoraproject.org CC: bos@serpentine.com, haskell-devel@lists.fedoraproject.org, petersen@redhat.com
Description of problem: haskell-platform fails to build under ghc-7.8.4 on aarch64.
Version-Release number of selected component (if applicable): haskell-platform-2014.2.0.0.1-1.fc22
How reproducible: 100%
Steps to Reproduce: 1. fedpkg local/build
Actual results: Configuring haskell-platform-2014.2.0.0.1... Setup: The program alex version ==3.1.3 is required but the version of /usr/bin/alex could not be determined.
Expected results: no error
Additional info: Workaround will probably be to comment out alex from haskell-platform.cabal.
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pbrobinson@gmail.com
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #1 from Peter Robinson pbrobinson@gmail.com --- I don't think this is just limited to the above.
I see similar with the ghc-haskell-src-exts build and happy req
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2955322
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #2 from Peter Robinson pbrobinson@gmail.com --- And ghc-language-javascript with happy
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2955282
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #3 from Peter Robinson pbrobinson@gmail.com --- And ghc-language-java with alex
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2955263
there appears to be a theme ;-)
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Peter Robinson pbrobinson@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(petersen@redhat.c | |om)
--- Comment #4 from Peter Robinson pbrobinson@gmail.com ---
gtk2hs-buildtools has issues detecting alex too. This one affects quite a number of package builds
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2955394
Can we up the priority on this issue now?
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|haskell-platform |ghc Summary|haskell-platform FTBFS on |haskell-platform and |aarch64: program alex |gtk2hs-buildtools FTBFS on |version ==3.1.3 is required |aarch64: the version of |but version could not be |/usr/bin/alex could not be |determined |determined
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Flags|needinfo?(petersen@redhat.c | |om) |
--- Comment #5 from Jens Petersen petersen@redhat.com --- 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
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #6 from Jens Petersen petersen@redhat.com --- The upstream ticket is https://ghc.haskell.org/trac/ghc/ticket/9673.
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- gtk2hs-buildtools-0.13.0.3-2.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/gtk2hs-buildtools-0.13.0.3-2.fc22
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #8 from Peter Robinson pbrobinson@gmail.com --- It's clear this is a more wider problem that just a single issue with gtk2hs-buildtools.
ghc-cairo http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2965561
What is the status of getting a proper fix?
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|haskell-platform and |[aarch64] Haskell Cabal |gtk2hs-buildtools FTBFS on |build-tools version |aarch64: the version of |detection failing |/usr/bin/alex could not be | |determined |
--- Comment #9 from Jens Petersen petersen@redhat.com --- (In reply to Peter Robinson from comment #8)
It's clear this is a more wider problem that just a single issue with gtk2hs-buildtools. 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ASSIGNED
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[aarch64] Haskell Cabal |[aarch64] stdout from |build-tools version |subprocess lost |detection failing |
--- Comment #10 from Jens Petersen petersen@redhat.com --- 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #11 from Jens Petersen petersen@redhat.com --- Okay the solution seems to be to use ld.gold for aarch64 too (like armv7).
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |DUPLICATE Last Closed| |2015-04-21 06:20:01
--- Comment #12 from Jens Petersen petersen@redhat.com ---
*** This bug has been marked as a duplicate of bug 1195231 ***
https://bugzilla.redhat.com/show_bug.cgi?id=1210323
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- 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.
haskell-devel@lists.fedoraproject.org