RE: ghci panic (unknown symbol stg_gc_l1)

2002-01-28 Thread Julian Seward (Intl Vendor)


There's something very suspicious here, but it might be a
bug we know about.

Did you build ghc yourself, from sources?  Did you
bootstrap using itself?  And finally, exactly what
version of gcc do you have?

J

| -Original Message-
| From: Pixel [mailto:[EMAIL PROTECTED]] 
| Sent: Saturday, January 26, 2002 4:07 PM
| To: [EMAIL PROTECTED]
| Subject: ghci panic (unknown symbol stg_gc_l1)
| 
| 
| % 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
| 

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



Re: ghci panic (unknown symbol stg_gc_l1)

2002-01-28 Thread Pixel

Julian Seward (Intl Vendor) [EMAIL PROTECTED] writes:

  % 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'
  [...]

 There's something very suspicious here, but it might be a
 bug we know about.
 
 Did you build ghc yourself, from sources?

yes

 Did you bootstrap using itself?

no, that is the pb. Sigbjorn Finne gave the explaination:

  GHCi doesn't load the RTS package (nor GMP),
  as they're both baked into the binary. My guess is that
  you've built ghci using 5.02.1; you need to use 5.02.2
  (i.e., do two stage build.)  The missing symbol was
  introduced in 5.02.2's RTS.

i bootstraped using itself, and now it works nicely :)

 And finally, exactly what version of gcc do you have?

an heavily patched 2.86

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



RE: ghci panic (unknown symbol stg_gc_l1)

2002-01-28 Thread Julian Seward (Intl Vendor)


Yes, Sigbjorn is of course right.  Disregard my msg ...

J

|  Did you bootstrap using itself?
| 
| no, that is the pb. Sigbjorn Finne gave the explaination:
| 
|   GHCi doesn't load the RTS package (nor GMP),
|   as they're both baked into the binary. My guess is that
|   you've built ghci using 5.02.1; you need to use 5.02.2
|   (i.e., do two stage build.)  The missing symbol was
|   introduced in 5.02.2's RTS.
| 
| i bootstraped using itself, and now it works nicely :)
| 
|  And finally, exactly what version of gcc do you have?
| 
| an heavily patched 2.86
| 

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



ghci panic (unknown symbol stg_gc_l1)

2002-01-26 Thread Pixel

% 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



Re: ghci panic (unknown symbol stg_gc_l1)

2002-01-26 Thread Sigbjorn Finne

Hi,

GHCi doesn't load the RTS package (nor GMP),
as they're both baked into the binary. My guess is that
you've built ghci using 5.02.1; you need to use 5.02.2
(i.e., do two stage build.)  The missing symbol was
introduced in 5.02.2's RTS.

hth
--sigbjorn

- Original Message -
From: Pixel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 26, 2002 08:07
Subject: ghci panic (unknown symbol stg_gc_l1)


 % 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 --s
haredstatedir=/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


___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



Re: ghci panic (unknown symbol stg_gc_l1)

2002-01-26 Thread Pixel

Sigbjorn Finne [EMAIL PROTECTED] writes:

 GHCi doesn't load the RTS package (nor GMP),
 as they're both baked into the binary. My guess is that
 you've built ghci using 5.02.1; you need to use 5.02.2
 (i.e., do two stage build.)  The missing symbol was
 introduced in 5.02.2's RTS.

cool, rebuilding :)

thanks!

PS: maybe some kind of warning could be added for this case?

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs