GHC Extensibility

Monique Monteiro monique.louise at gmail.com
Sat Jun 2 17:02:14 EDT 2007


Hi all,

  I'm able to compile the .NET code generator with GHC without
compiler errors, but now I have the linkage error below.  (In fact
there are other similar messages, this is only an example).  This is
strange because the *.o/*.hi files were all generated without error
messages.  Has anyone any idea about how to solve it?

(...)
stage1/ilGen/ILGen.o(.rodata+0x50):fake: undefined reference to `mtlzm1zi0zi1_C
ntrolziMonadziStateziLazzy_zdf14_closure'
stage1/ilGen/ILGen.o(.rodata+0x68):fake: undefined reference to `mtlzm1zi0zi1_C
ntrolziMonadziStateziLazzy_zdf14_closure'
stage1/ilGen/ILGen.o(.rodata+0x74):fake: undefined reference to `mtlzm1zi0zi1_C
ntrolziMonadziStateziLazzy_zdf14_closure'
stage1/ilGen/ILGen.o(.rodata+0x88):fake: undefined reference to `mtlzm1zi0zi1_C
ntrolziMonadziStateziLazzy_zdf14_closure'
stage1/ilGen/ILGen.o(.rodata+0xb8):fake: more undefined references to `mtlzm1zi
zi1_ControlziMonadziStateziLazzy_zdf14_closure' follow
stage1/ilGen/ILGen.o(.rodata+0x32bc):fake: undefined reference to `mtlzm1zi0zi1
ControlziMonadziStateziLazzy_evalState_closure'
stage1/ilGen/ILGen.o(.rodata+0x32d0):fake: undefined reference to `mtlzm1zi0zi1
ControlziMonadziStateziLazzy_zdf14_closure'
collect2: ld returned 1 exit status
<<ghc: 19046880 bytes, 6 GCs, 176570/181504 avg/max bytes residency (2 samples)
 16M in use, 0.03 INIT (0.00 elapsed), 0.06 MUT (5.61 elapsed), 0.02 GC (0.03 e
apsed) :ghc>>
make: *** [stage1/ghc] Error 1

Monique


More information about the Glasgow-haskell-users mailing list