#3214: "undefined reference to..." when compiling parallel code
--------------------------------+-------------------------------------------
Reporter:  fhsanches            |          Owner:                  
    Type:  bug                  |         Status:  new             
Priority:  normal               |      Component:  Compiler        
 Version:  6.10.2               |       Severity:  normal          
Keywords:  undefined reference  |       Testcase:                  
      Os:  Linux                |   Architecture:  Unknown/Multiple
--------------------------------+-------------------------------------------
 First of all, sorry if it's not a bug in GHC, but I just don't know where
 to file it.

 When compiling a file that imports Control.Parallel (par), I receive the
 following error:

 death-star% ghc par.hs -O2
 par.o: In function `s15L_info':
 (.text+0xce3): undefined reference to
 `__stginit_parallelzm1zi0zi0zi0_ControlziParallel_'
 collect2: ld returned 1 exit status

 Disabling optimizations just make things worse:

 death-star% ghc par.hs -fforce-recomp
 par.o: In function `r6b_info':
 (.text+0x106d): undefined reference to
 `parallelzm1zi0zi0zi0_ControlziParallel_par_closure'
 par.o: In function `sEr_info':
 (.text+0x143b): undefined reference to
 `__stginit_parallelzm1zi0zi0zi0_ControlziParallel_'
 par.o: In function `r6b_srt':
 (.data+0x368): undefined reference to
 `parallelzm1zi0zi0zi0_ControlziParallel_par_closure'
 collect2: ld returned 1 exit status

 Is this a bug in GHC? In ld? Any missing dependency in my distro?

 I'm using Ubuntu 9.04, GHC 6.8.2 built from the repositories.

 Thanks for your time.

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