[GHC] #1325: GHC 6.6.1 build fails from MacPorts 1.4.0 on MacOS 10.4.9, internal error "strange closure type"

GHC trac at galois.com
Thu May 3 14:09:50 EDT 2007


#1325: GHC 6.6.1 build fails from MacPorts 1.4.0 on MacOS 10.4.9, internal error
"strange closure type"
---------------------------------------------+------------------------------
  Reporter:  michael.j.fromberger at gmail.com  |          Owner:         
      Type:  bug                             |         Status:  new    
  Priority:  normal                          |      Milestone:         
 Component:  Build System                    |        Version:  6.6.1  
  Severity:  normal                          |       Keywords:         
Difficulty:  Unknown                         |             Os:  MacOS X
  Testcase:                                  |   Architecture:  powerpc
---------------------------------------------+------------------------------
While attempting to build GHC 6.6.1 via [http://www.macports.org/
 MacPorts], I received the following traceback.  Apologies for the length
 of the transcript, but I'm not sure how much of it will be needed to
 diagnose the trouble.

 I'm not sure if this is a fault with GHC itself, or an interaction with
 MacPorts, though the message "ghc-6.4: internal error: evacuate: strange
 closure type 32782" led me to suspect the former.

 {{{
 [Desktop] 14: sudo port install ghc
 --->  Fetching ghc
 --->  Attempting to fetch ghc-6.6.1-src.tar.bz2 from
 http://www.haskell.org/ghc/dist/6.6.1/
 --->  Attempting to fetch ghc-6.6.1-src-extralibs.tar.bz2 from
 http://www.haskell.org/ghc/dist/6.6.1/
 --->  Verifying checksum(s) for ghc
 --->  Extracting ghc
 --->  Applying patches to ghc
 --->  Configuring ghc
 --->  Building ghc with target all
 Error: Target com.apple.build returned: shell command "env
 DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make all" returned error 2
 Command output:
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c rename/RnBinds.lhs -o
 stage1/rename/RnBinds.o  -ohi stage1/rename/RnBinds.hi
 <<ghc: 279723312 bytes, 424 GCs, 7978072/16310264 avg/max bytes residency
 (6 samples), 43M in use, 0.00 INIT (0.00 elapsed), 3.20 MUT (9.37
 elapsed), 2.34 GC (2.84 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c rename/RnSource.lhs -o
 stage1/rename/RnSource.o  -ohi stage1/rename/RnSource.hi
 <<ghc: 488257052 bytes, 1315 GCs, 10451625/19565480 avg/max bytes
 residency (7 samples), 50M in use, 0.00 INIT (0.00 elapsed), 5.36 MUT
 (18.21 elapsed), 4.06 GC (4.52 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c rename/RnNames.lhs -o
 stage1/rename/RnNames.o  -ohi stage1/rename/RnNames.hi
 <<ghc: 623869912 bytes, 1884 GCs, 13195130/22228644 avg/max bytes
 residency (8 samples), 60M in use, 0.00 INIT (0.00 elapsed), 7.01 MUT
 (19.38 elapsed), 5.31 GC (6.19 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c types/Generics.lhs -o
 stage1/types/Generics.o  -ohi stage1/types/Generics.hi
 <<ghc: 184879980 bytes, 38 GCs, 4183890/9099872 avg/max bytes residency (4
 samples), 20M in use, 0.00 INIT (0.00 elapsed), 1.96 MUT (6.48 elapsed),
 0.96 GC (1.06 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcExpr.lhs-boot -o
 stage1/typecheck/TcExpr.o-boot  -ohi stage1/typecheck/TcExpr.hi-boot
 <<ghc: 38004696 bytes, 12 GCs, 3022428/7083916 avg/max bytes residency (3
 samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.26 MUT (0.37 elapsed),
 0.32 GC (0.37 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcEnv.lhs -o
 stage1/typecheck/TcEnv.o  -ohi stage1/typecheck/TcEnv.hi
 <<ghc: 290084308 bytes, 563 GCs, 8376552/17751088 avg/max bytes residency
 (6 samples), 44M in use, 0.00 INIT (0.00 elapsed), 3.02 MUT (10.25
 elapsed), 2.63 GC (2.87 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/Inst.lhs -o
 stage1/typecheck/Inst.o  -ohi stage1/typecheck/Inst.hi
 <<ghc: 374937520 bytes, 968 GCs, 9434033/18417372 avg/max bytes residency
 (6 samples), 50M in use, 0.00 INIT (0.00 elapsed), 4.04 MUT (12.17
 elapsed), 3.15 GC (3.46 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcUnify.lhs-boot -o
 stage1/typecheck/TcUnify.o-boot  -ohi stage1/typecheck/TcUnify.hi-boot
 <<ghc: 34985720 bytes, 10 GCs, 1851854/3607588 avg/max bytes residency (2
 samples), 19M in use, 0.00 INIT (0.01 elapsed), 0.23 MUT (0.69 elapsed),
 0.24 GC (0.28 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcSimplify.lhs -o
 stage1/typecheck/TcSimplify.o  -ohi stage1/typecheck/TcSimplify.hi
 <<ghc: 819531508 bytes, 2676 GCs, 14663066/23874040 avg/max bytes
 residency (9 samples), 65M in use, 0.00 INIT (0.00 elapsed), 8.86 MUT
 (28.60 elapsed), 6.79 GC (7.42 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcUnify.lhs -o
 stage1/typecheck/TcUnify.o  -ohi stage1/typecheck/TcUnify.hi
 <<ghc: 721726228 bytes, 1974 GCs, 11877227/18873380 avg/max bytes
 residency (9 samples), 52M in use, 0.00 INIT (0.00 elapsed), 7.49 MUT
 (26.21 elapsed), 5.98 GC (6.34 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcHsType.lhs -o
 stage1/typecheck/TcHsType.o  -ohi stage1/typecheck/TcHsType.hi
 <<ghc: 352532984 bytes, 735 GCs, 8979526/17730892 avg/max bytes residency
 (6 samples), 46M in use, 0.00 INIT (0.00 elapsed), 3.68 MUT (11.66
 elapsed), 3.00 GC (3.19 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcMatches.lhs-boot -o
 stage1/typecheck/TcMatches.o-boot  -ohi stage1/typecheck/TcMatches.hi-boot
 <<ghc: 37962164 bytes, 12 GCs, 2210636/4659072 avg/max bytes residency (3
 samples), 19M in use, 0.00 INIT (0.00 elapsed), 0.24 MUT (0.36 elapsed),
 0.33 GC (0.36 elapsed) :ghc>>
 /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_ghc/work
 /ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -I/usr/include
 -L/opt/local/lib -L/usr/lib  -istage1/utils  -istage1/basicTypes
 -istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
 -istage1/typecheck  -istage1/deSugar  -istage1/coreSyn
 -istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
 -istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
 -istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
 -istage1/cmm  -istage1/nativeGen -Istage1 -cpp -fglasgow-exts -fno-
 generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang
 -recomp -Rghc-timing  -H16M '-#include "cutils.h"' -DUSING_COMPAT
 -i../compat -ignore-package Cabal    -c typecheck/TcPat.lhs -o
 stage1/typecheck/TcPat.o  -ohi stage1/typecheck/TcPat.hi
 ghc-6.4: internal error: evacuate: strange closure type 32782
     Please report this as a bug to glasgow-haskell-bugs at haskell.org,
     or http://www.sourceforge.net/projects/ghc/
 make[1]: *** [stage1/typecheck/TcPat.o] Error 254
 make: *** [stage1] Error 1

 Error: Status 1 encountered during processing.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1325>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list