#5889: -fno-prof-count-entries leads to linking errors
---------------------------------------+------------------------------------
 Reporter:  akio                       |          Owner:                
     Type:  bug                        |         Status:  new           
 Priority:  normal                     |      Component:  Compiler      
  Version:  7.4.1                      |       Keywords:                
       Os:  Linux                      |   Architecture:  x86_64 (amd64)
  Failure:  GHC rejects valid program  |       Testcase:                
Blockedby:                             |       Blocking:                
  Related:                             |  
---------------------------------------+------------------------------------
 When I compile the attached program with a certain set of flags, I get a
 linking error.

 {{{
 % ghc -O -prof -fprof-auto -fno-prof-count-entries -fforce-recomp main.hs
 [1 of 2] Compiling Foo              ( Foo.hs, Foo.o )
 [2 of 2] Compiling Main             ( main.hs, main.o )
 Linking main ...
 main.o: In function `s1uR_info':
 (.text+0xcc): undefined reference to `Foo_makePairzitotal_C0_cc'
 collect2: ld returned 1 exit status
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5889>
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

Reply via email to