[GHC] #1452: "undefined reference" while linking executable (for cyclic import project) in ghc-6.6.1

GHC trac at galois.com
Mon Jun 25 06:05:38 EDT 2007


#1452: "undefined reference" while linking executable (for cyclic import project)
in ghc-6.6.1
------------------------------+---------------------------------------------
    Reporter:  guest          |        Owner:  guest           
        Type:  bug            |       Status:  assigned        
    Priority:  normal         |    Milestone:                  
   Component:  Compiler       |      Version:  6.6.1           
    Severity:  normal         |   Resolution:                  
    Keywords:  cyclic import  |   Difficulty:  Moderate (1 day)
          Os:  Linux          |     Testcase:                  
Architecture:  x86            |  
------------------------------+---------------------------------------------
Comment (by simonpj):

 Duncan adds

 Currently Cabal uses ghc --make to build packages. It starts from all
 the modules listed in the exposed-modules but ghc --make will find any
 other modules that are imported, even if they are not listed in
 the .cabal file in the exposed-modules or other-modules fields.

 That's the current system. The right system I think is for Cabal to do
 the dependency analysis itself (it needs to do that for proper support
 of pre-processors anyway). That would allow Cabal to notice when modules
 are imported but not listed in either the exposed-modules or
 other-modules fields. It could issue a warning or an error.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1452>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list