
Hi! Here's a letter from someone who has next to no clue about what he is doing so have patience and don't assume any knowledge when answering... I'm trying to create a package for ghc. I've struggled quite a lot and gotten this far: (This is when invoking ghci -package yahu) Loading package base ... linking ... done. Loading package yahu ... linking ... /.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o: unknown symbol `__stginit_List_' ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1): can't load package `yahu' I'm surprised by this. Why do I get this error message? From the name of the symbol I would expect that it can be found in package base but aparently not... Please advice. /Josef

Josef Svenningsson
(This is when invoking ghci -package yahu)
Loading package base ... linking ... done. Loading package yahu ... linking ... /.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o: unknown symbol `__stginit_List_' ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1): can't load package `yahu'
I'm surprised by this. Why do I get this error message? From the name of the symbol I would expect that it can be found in package base but aparently not... Please advice.
The List module is not in package 'base', but in package 'haskell98'. In your package.conf file for yahu, you probably just need to add an explicit dependency on the 'haskell98' package. Regards, Malcolm

Hi again, Thanks to both Malcolm and Volker. It all works now. /Josef On Wed, 29 Oct 2003, Malcolm Wallace wrote:
Josef Svenningsson
writes: (This is when invoking ghci -package yahu)
Loading package base ... linking ... done. Loading package yahu ... linking ... /.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o: unknown symbol `__stginit_List_' ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1): can't load package `yahu'
I'm surprised by this. Why do I get this error message? From the name of the symbol I would expect that it can be found in package base but aparently not... Please advice.
The List module is not in package 'base', but in package 'haskell98'. In your package.conf file for yahu, you probably just need to add an explicit dependency on the 'haskell98' package.
Regards, Malcolm _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

In local.glasgow-haskell-users, you wrote:
(This is when invoking ghci -package yahu) Loading package base ... linking ... done. Loading package yahu ... linking ... /.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o: unknown symbol `__stginit_List_' ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1): can't load package `yahu'
You need to add -package haskell98. You can either do this on the commandline or, better, in package.conf. -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME rage against the finite state machine
participants (3)
-
Josef Svenningsson
-
Malcolm Wallace
-
Volker Stolz