https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Bug ID: 1121620 Summary: ghc-haskell-src-exts fails to build on s390(x) Product: Fedora Version: 20 Component: ghc-haskell-src-exts Assignee: petersen@redhat.com Reporter: jcajka@redhat.com QA Contact: extras-qa@fedoraproject.org CC: haskell-devel@lists.fedoraproject.org, petersen@redhat.com
Created attachment 919613 --> https://bugzilla.redhat.com/attachment.cgi?id=919613&action=edit Koji shadow build log
Build fails with: [ 1 of 22] Compiling Language.Haskell.Exts.Annotated.Syntax ( src/Language/Haskell/Exts/Annotated/Syntax.hs, dist/build/Language/Haskell/Exts/Annotated/Syntax.p_o ) virtual memory exhausted: Cannot allocate memory
How reproducible: Always
Shadow build:
http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1441430
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Jakub Čajka jcajka@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |467765 (ZedoraTracker)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=467765 [Bug 467765] Fedora for System z (s390): Bug Tracker
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
--- Comment #1 from Jens Petersen petersen@redhat.com --- I tried building with -O1 but that didn't help.
I wonder if moving to ghc-7.8 will help.
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|Unspecified |s390 Summary|ghc-haskell-src-exts fails |ghc-haskell-src-exts fails |to build on s390(x) |to build on s390
--- Comment #2 from Jens Petersen petersen@redhat.com --- (http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1441705)
The failure seems specific to s390. It builds ok on s390x: http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1441814
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Dan Horák dan@danny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dan@danny.cz
--- Comment #3 from Dan Horák dan@danny.cz --- I think the problem will be the compiler process trying to allocate more than 1GB of heap or other memory. s390 has only 2GB address space per process as opposed to the usual 4GB on other 32-bit arches.
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
--- Comment #4 from Jens Petersen petersen@redhat.com --- Ah right - that makes sense then.
Okay I will try later to play with heap size setting to see if we can make it compile on s390 too. 2GB of heap still seems like quite a lot but yeah looks like this lib pushes the limits a bit.
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #5 from Jens Petersen petersen@redhat.com --- Okay sorry for the long pause.
I tried building with 1GB heap with the change below but it still fails in the same way.
[ 1 of 22] Compiling Language.Haskell.Exts.Annotated.Syntax ( src/Language/Haskell/Exts/Annotated/Syntax.hs, dist/build/Language/Haskell/Exts/Annotated/Syntax.p_o ) virtual memory exhausted: Cannot allocate memory
``` --- a/ghc-haskell-src-exts.spec +++ b/ghc-haskell-src-exts.spec @@ -65,6 +65,10 @@ files.
%build +# s390 has max process size of 2GB +%ifarch s390 +cabal_configure_extra_options="--ghc-option=+RTS --ghc-option=-M1000m --ghc-option=-RTS" +%endif %ghc_lib_build
```
I guess the problem is that it actually needs more VM (not less). So unless I am mistaken the only solution is to exclude s390 for now.
cf https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654786#8 for a different package
How long do you plan to continue to support Fedora s390 btw?
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |POST
--- Comment #6 from Jens Petersen petersen@redhat.com --- For now I committed a change to pkg git master to exclude s390.
http://pkgs.fedoraproject.org/cgit/ghc-haskell-src-exts.git/commit/?id=d701a...
It is not built yet but I can backport it to F21 if you like.
To "get further" will need a similar change to hlint and ghc-hgettext.
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
--- Comment #7 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|20 |22
https://bugzilla.redhat.com/show_bug.cgi?id=1121620
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|POST |CLOSED Resolution|--- |CANTFIX Last Closed| |2015-07-22 02:41:25
haskell-devel@lists.fedoraproject.org