Hi, the following patch tries to work around the issue we have with packages like src-exts on slow architectures: As the problem seemed to be that the fork() syscall is interrupted by the RTS’s timer interrupt, and takes longer than the time between two interrupts, I thought that letting the timer fire less frequently might fix the issue. It turned out that you can completely prevent the use of the timer. I tried it on my machine: "ghc +RTS -V0" still works fine, does not take longer, and "strace" reveals that no VTIMER interrupts are occurring. I therefore applied the patch to src-exts and uploaded it. Unfortunately, it is still timing out on some architectures, at the same moment. https://buildd.debian.org/fetch.cgi?pkg=haskell-src-exts&arch=mipsel&ver=1.9.0-2&stamp=1277482388&file=log&as=raw This kind of surprises me. If someone feels like debugging this some more, you are more than welcome. Greetings, Joachim Am Freitag, den 25.06.2010, 13:12 +0000 schrieb Joachim Breitner: > Fri Jun 25 13:02:58 UTC 2010 Joachim Breitner <mail@joachim-breitner.de> > * Run ghc6 without active timer (+RTS -V0 -RTS). Should work around http://hackage.haskell.org/trac/ghc/ticket/4074 on slow arches. Negative side effects not known (yet). > Ignore-this: ed7c8dcce8f6fffe22202a59119d2815 > > M ./changelog +8 > M ./rules +1 > > Fri Jun 25 13:02:58 UTC 2010 Joachim Breitner <mail@joachim-breitner.de> > * Run ghc6 without active timer (+RTS -V0 -RTS). Should work around http://hackage.haskell.org/trac/ghc/ticket/4074 on slow arches. Negative side effects not known (yet). > Ignore-this: ed7c8dcce8f6fffe22202a59119d2815 > diff -rN -u old-haskell-src-exts/changelog new-haskell-src-exts/changelog > --- old-haskell-src-exts/changelog 2010-06-25 13:12:20.124641756 +0000 > +++ new-haskell-src-exts/changelog 2010-06-25 13:12:20.132642181 +0000 > @@ -1,3 +1,11 @@ > +haskell-src-exts (1.9.0-2) UNRELEASED; urgency=low > + > + * Run ghc6 without active timer (+RTS -V0 -RTS). Should work around > + http://hackage.haskell.org/trac/ghc/ticket/4074 on slow arches. Negative > + side effects not known (yet). > + > + -- Joachim Breitner <nomeata@debian.org> Fri, 25 Jun 2010 15:02:06 +0200 > + > haskell-src-exts (1.9.0-1) unstable; urgency=low > > [ Giovanni Mascellani ] > diff -rN -u old-haskell-src-exts/rules new-haskell-src-exts/rules > --- old-haskell-src-exts/rules 2010-06-25 13:12:20.124641756 +0000 > +++ new-haskell-src-exts/rules 2010-06-25 13:12:20.128641968 +0000 > @@ -2,6 +2,7 @@ > > DEB_CABAL_PACKAGE=src-exts > DEB_BUILD_DEPENDENCIES = build-arch > +DEB_SETUP_GHC6_CONFIGURE_ARGS = --ghc-options="+RTS -V0 -RTS" > > include /usr/share/cdbs/1/rules/debhelper.mk > include /usr/share/cdbs/1/class/hlibrary.mk > > > > _______________________________________________ > Pkg-haskell-commits mailing list > Pkg-haskell-commits@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pkg-haskell-commits > -- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
Attachment:
signature.asc
Description: This is a digitally signed message part