Re: [GHC] #936: strange ghci behavior and error with recursive modules

2007-01-30 Thread GHC
#936: strange ghci behavior and error with recursive modules
-+--
 Reporter:  Misha Aizatulin [EMAIL PROTECTED]  |  Owner:  igloo  
 Type:  merge| Status:  new
 Priority:  normal   |  Milestone:  6.6.1  
Component:  GHCi |Version:  6.4.2  
 Severity:  normal   | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:  ghci.prog007 |   Architecture:  Unknown
   Os:  Linux|  
-+--
Changes (by simonmar):

  * testcase:  = ghci.prog007
  * owner:  = igloo
  * type:  bug = merge

Comment:

 Fixed, please merge:

 {{{
 Tue Jan 30 02:13:06 PST 2007  Simon Marlow [EMAIL PROTECTED]
   * Fix for #936
 }}}

 and testsuite:

 {{{
 Tue Jan 30 02:10:59 PST 2007  Simon Marlow [EMAIL PROTECTED]
   * add test for bug #036
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/936
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #936: strange ghci behavior and error with recursive modules

2007-01-30 Thread GHC
#936: strange ghci behavior and error with recursive modules
-+--
 Reporter:  Misha Aizatulin [EMAIL PROTECTED]  |  Owner:  igloo  
 Type:  merge| Status:  closed 
 Priority:  normal   |  Milestone:  6.6.1  
Component:  GHCi |Version:  6.4.2  
 Severity:  normal   | Resolution:  fixed  
 Keywords:   | Difficulty:  Unknown
 Testcase:  ghci.prog007 |   Architecture:  Unknown
   Os:  Linux|  
-+--
Changes (by igloo):

  * resolution:  = fixed
  * status:  new = closed

Comment:

 Merged.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/936
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #936: strange ghci behavior and error with recursive modules

2007-01-29 Thread GHC
#936: strange ghci behavior and error with recursive modules
-+--
 Reporter:  Misha Aizatulin [EMAIL PROTECTED]  |  Owner: 
 Type:  bug  | Status:  new
 Priority:  normal   |  Milestone:  6.6.1  
Component:  GHCi |Version:  6.4.2  
 Severity:  normal   | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Linux|  
-+--
Comment (by simonmar):

 I looked into this a bit.  The problem seems to be that when the linker
 comes to link the expression 'A', it traverses the dependencies graph and
 doesn't find module `B`.  The reason is that the dependencies for module
 `A` say `C[boot]`, and don't include `B`, despite the fact that `C`
 depends on `B` (module dependencies are transitively closed, except for
 `[boot]` dependencies).

 Perhaps we need to recursively add dependencies for `[boot]` modules that
 we find? (see `compiler\ghci\Linker.hs:get_deps`).

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/936
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #936: strange ghci behavior and error with recursive modules

2007-01-26 Thread GHC
#936: strange ghci behavior and error with recursive modules
-+--
 Reporter:  Misha Aizatulin [EMAIL PROTECTED]  |  Owner: 
 Type:  bug  | Status:  new
 Priority:  normal   |  Milestone:  6.6.1  
Component:  GHCi |Version:  6.4.2  
 Severity:  normal   | Resolution: 
 Keywords:   | Difficulty:  Unknown
 Testcase:   |   Architecture:  Unknown
   Os:  Linux|  
-+--
Changes (by igloo):

  * milestone:  = 6.6.1
  * testcase:  =

Comment:

 All but 3) looks fixed in 6.6 and the HEAD. The message now talks about
 B_zdf1_closure, but is otherwise the same.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/936
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #936: strange ghci behavior and error with recursive modules

2006-10-12 Thread GHC
#936: strange ghci behavior and error with recursive modules
--+-
  Reporter:  Misha Aizatulin [EMAIL PROTECTED]  |  Owner: 
  Type:  bug  | Status:  new
  Priority:  normal   |  Milestone: 
 Component:  GHCi |Version:  6.4.2  
  Severity:  normal   |   Keywords: 
Difficulty:  Unknown  |   Architecture:  Unknown
Os:  Linux|  
--+-
Here is a ghci session with the attached program:

 {{{
  ghci B
___ ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |  GHC Interactive, version 6.4.2, for Haskell 98.
 / /_\\/ __  / /___| |  http://www.haskell.org/ghc/
 \/\/ /_/\/|_|  Type :? for help.

 Loading package base-1.0 ... linking ... done.
 Compiling C[boot]  ( ./C.hs-boot, ./C.o-boot )
 Compiling A( ./A.hs, interpreted )
 Compiling B( B.hs, interpreted )
 Compiling C( ./C.hs, interpreted )
 Ok, modules loaded: C, B, A, C.
 *C :r
 Ok, modules loaded: A, C, B.
 *A :m + B
 *A B A

 During interactive linking, GHCi couldn't find the following symbol:
   B_zdfClass1B_closure
 This may be due to you not asking GHCi to load extra object files,
 archives or DLLs needed by your current session.  Restart GHCi, specifying
 the missing library using the -L/path/to/object/dir and -lmissinglibname
 flags, or simply by naming the relevant files on the GHCi command line.
 Alternatively, this link failure might indicate a bug in GHCi.
 If you suspect the latter, please send a bug report to:
   glasgow-haskell-bugs@haskell.org

 *A B B
 B
 *A B A
 A
 }}}

 3 strange things happen:
 1. I ask to load B, it loads C
 2. I ask to reload, it loads A :)
 3. missing symbol error which goes away after evaluating some other
 expression

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/936
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs