Ticket #3214 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

"undefined reference to..." when compiling parallel code

Reported by: fhsanches Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.8
Keywords: undefined reference Cc:
Operating System: Linux Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Attachments

par.hs Download (0.8 KB) - added by fhsanches 4 years ago.
Source file generates error

Change History

Changed 4 years ago by fhsanches

Source file generates error

  Changed 4 years ago by fhsanches

  • version changed from 6.10.2 to 6.8

Sorry, I just realized I'm using an old GHC version (and filed the bug agains the new one). Sorry for the burden.

follow-up: ↓ 3   Changed 4 years ago by fhsanches

  • status changed from new to closed
  • resolution set to invalid

Sigh, sorry for the flood here, I forgot to pass the "--make" flag to the compiler. I'm really, really sorry.

in reply to: ↑ 2   Changed 4 years ago by simonmar

  • difficulty set to Unknown

Replying to fhsanches:

Sigh, sorry for the flood here, I forgot to pass the "--make" flag to the compiler. I'm really, really sorry.

Not at all - thanks for taking the time to help improve GHC.

Note: See TracTickets for help on using tickets.