Bug in 6.0.1

Matthew Parry mettw at tpg.com.au
Sun Oct 26 03:15:14 EST 2003


When I load HToolkit 1.2 into GHC 6.0.1 I get the following:

--8<----

mettw > ghci -package gio  
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.0.1, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package port ... linking ... /usr/lib/ghc-6.0.1/HSport.o: unknown symbol `__stginit_GHCziWord_'
ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1):
        can't load package `port'

Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
or http://sourceforge.net/projects/ghc/.

--8<----

But by specifying the text package it loads OK

--8<----

mettw > ghci -package gio -package text  
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.0.1, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
Loading package lang ... linking ... done.
Loading package text ... linking ... done.
Loading package port ... linking ... done.
Loading package gio ... linking ... done.
Prelude> 

--8<-----

Also, on my Debian Testing system /usr/lib/libpthreads.so is
an ld script, but ghci tries to load it as a library.  It aborts
complaining that /usr/lib/libpthreads.so has an invalid ELF header.
To get around the problem I've had to replace the ld script with
a symlink to /lib/libpthread.so.0, which will probably cause
problems in the future since there are some functions that are 
only in /usr/lib/libpthread_nonshared.a (Which ld can only reach with
the script).


-- 

Matthew Parry

-
"There now, didn't I tell you to keep a good count?  Well,
there's an end of the story.  God knows there's no going on
with it now." - Sancho Panza.





More information about the Glasgow-haskell-bugs mailing list