% ghci
[...]
Loading package std ... linking ... /usr/lib/ghc-5.02.2/HSstd.o: unknown symbol
`stg_gc_l1'
ghc-5.02.2: panic! (the `impossible' happened, GHC version 5.02.2):
can't load package `std'
[...]
(it seems) it should load package "rts" before "std", but (it seems) it doesn't:
% for i in /usr/lib/ghc-5.02.2/*.o; do nm $i | grep -q "T stg_gc_l1" && echo $i; done
/usr/lib/ghc-5.02.2/HSrts.o
% ghci -v5
[...]
Using package config file: /usr/lib/ghc-5.02.2/package.conf
[...]
Package
{name = "std",
import_dirs = ["/usr/lib/ghc-5.02.2/imports/std"],
source_dirs = [],
library_dirs = ["/usr/lib/ghc-5.02.2"],
hs_libraries = ["HSstd"],
extra_libraries = ["HSstd_cbits"],
include_dirs = [],
c_includes = ["HsStd.h"],
package_deps = ["rts"],
extra_ghc_opts = [],
extra_cc_opts = [],
[...]
Loading package std ... linking ... /usr/lib/ghc-5.02.2/HSstd.o: unknown symbol
`stg_gc_l1'
"strace -efile ghci" doesn't show anything weird, except maybe:
stat64("./Prelude.hs", 0xbfffcfe0) = -1 ENOENT (No such file or directory)
stat64("./Prelude.lhs", 0xbfffcfe0) = -1 ENOENT (No such file or directory)
stat64("./Prelude.hi-boot-5", 0xbfffcfe0) = -1 ENOENT (No such file or directory)
stat64("./Prelude.hi-boot", 0xbfffcfe0) = -1 ENOENT (No such file or directory)
I wanted to have a look at the code to find out what's wrong, but i can't find
the time :-(
ghci is built using http://people.mandrakesoft.com/~prigaux/ghc.spec where
%configure is ./configure i586-mandrake-linux-gnu --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info
Any idea what's wrong?
Thanks
--
Pixel
programming languages addict http://merd.net/pixel/language-study/
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs