Hi, Am Montag, den 17.08.2009, 00:25 +0200 schrieb Joachim Breitner: > I thought I give it a shot and tried to build ghc-6.10.4 on ia64. In the > sid dchroot on merulo, I removed haddock from ghc6’s build-dependencies > and ran debuild. Here it fails with: > > /usr/bin/make -C utils with-stage-2 > make[3]: Entering directory `/home/nomeata/ghc6/ghc6-6.10.4/utils' > /usr/bin/make -C installPackage with-stage-2 > make[4]: Entering directory > `/home/nomeata/ghc6/ghc6-6.10.4/utils/installPackage' > /home/nomeata/ghc6/ghc6-6.10.4/libraries/cabal-bin /usr/bin/ghc6 > /home/nomeata/ghc6/ghc6-6.10.4/libraries/bootstrapping.conf 1.6.0.3 configure > --distpref dist-install \ > --prefix=/NONEXISTENT --bindir=/NONEXISTENT > --libdir=/NONEXISTENT --libexecdir=/NONEXISTENT --datadir=/NONEXISTENT > --docdir=/NONEXISTENT --haddockdir=/NONEXISTENT --htmldir=/NONEXISTENT \ > > --with-compiler=/home/nomeata/ghc6/ghc6-6.10.4/ghc/stage2-inplace/ghc > --with-hc-pkg=/home/nomeata/ghc6/ghc6-6.10.4/utils/ghc-pkg/install-inplace/bin/ghc-pkg > --package-db /home/nomeata/ghc6/ghc6-6.10.4/stage3.package.conf \ > --libsubdir='$pkgid' --with-gcc=gcc > --with-ld=/usr/bin/ld --hsc2hs-option=--cflag=-G0 --with-alex="/usr/bin/alex" > --with-happy="/usr/bin/happy" --configure-option='--build' > --configure-option='ia64-linux-gnu' --configure-option='--prefix=/usr' > --configure-option='--with-ghc=/usr/bin/ghc6' > --configure-option='build_alias=ia64-linux-gnu' > --configure-option='CFLAGS=-g -O2' --configure-option='LDFLAGS=' > --configure-option='CPPFLAGS=' --configure-option=--with-cc="gcc" > --with-hsc2hs=/home/nomeata/ghc6/ghc6-6.10.4/utils/hsc2hs/install-inplace/bin/hsc2hs > \ > --constraint="Cabal == 1.6.0.3" > Configuring installPackage-1.0... > ghc: internal error: evacuate: strange closure type 8 > (GHC version 6.10.4 for ia64_unknown_linux) > Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug > make[4]: *** [with-stage-2] Fehler 6
I debugged it some more, adding putStrLn’s in various locations. It seems it crashes when parsing the packages files, which lead me to the hypothesis that the problem is related to the happy-generated-files. These files are generated by upstream with -agc. I re-generated them without any special options, and the problem changed a bit: Instead of a strange closure type, I now get a segmentation fault, but at the same position: Starting program: /home/nomeata/ghc6/ghc6-6.10.4/ghc/stage2-inplace/libexec/ghc -B/home/nomeata/ghc6/ghc6-6.10.4/inplace-datadir/. -dynload wrapped ~/test.hs -o ~/test [Thread debugging using libthread_db enabled] hi1 hi2 hi3 hi4 setSessionDynFlags top initPackages top readPackageConfig top Program received signal SIGSEGV, Segmentation fault. 0x4000000003c50931 in evacuate (p=0x600000000067af20) at sm/Evac.c:517 517 stp = bd->step->to; (gdb) bt #0 0x4000000003c50931 in evacuate (p=0x600000000067af20) at sm/Evac.c:517 #1 0x4000000003be1730 in scavenge_srt (srt=0x600000000067af20, srt_bitmap=3) at sm/Scav.c:264 #2 0x4000000003be1980 in scavenge_fun_srt (info=0x60000000006793a8) at sm/Scav.c:292 #3 0x4000000003be8c90 in scavenge_static () at sm/Scav.c:1566 #4 0x4000000003beafb0 in scavenge_loop () at sm/Scav.c:1917 #5 0x4000000003bd6f40 in scavenge_until_all_done () at sm/GC.c:973 #6 0x4000000003bd2fb0 in GarbageCollect (force_major_gc=rtsFalse) at sm/GC.c:358 #7 0x4000000003bb2f20 in scheduleDoGC (cap=0x6000000000a66a48, task=0x6000000000a84160, force_major=rtsFalse) at Schedule.c:1550 #8 0x4000000003bb07e0 in schedule (initialCapability=0x6000000000a66a48, task=0x6000000000a84160) at Schedule.c:694 #9 0x4000000003bb4920 in scheduleWaitThread (tso=0x2000000000780000, ret=0x0, cap=0x6000000000a66a48) at Schedule.c:1987 #10 0x4000000003ba5270 in rts_evalLazyIO (cap=0x6000000000a66a48, p=0x6000000000008f80, ret=0x0) at RtsAPI.c:517 #11 0x4000000003ba26b0 in real_main () at Main.c:111 #12 0x4000000003ba29f0 in main (argc=7, argv=0x60000fffffd8b478) at Main.c:156 (gdb) I don’t know where to continue from here (and it’s too late), but maybe someone else has a nice idea now. BTW, is there a corresponding upstream bug? I didn’t find one. Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil