Ticket #3536 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

ghci doesn't resolve libm symbols properly on Windows

Reported by: augustss Owned by:
Priority: normal Milestone: 6.12.1
Component: Runtime System Version: 6.10.4
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The erf package on hackage uses the libm functions erf and erfc. This all works fine in ghc, but in ghci we get an error.

To repeat:

cabal install erf

Try compiling

import Data.Number.Erf
main = print $ erf (1::Double)

and it works fine. Now try

ghci
:m +Data.Number.Erf
print $ erf (1::Double)

and the result is

Loading package syb ... linking ... done.
Loading package base-3.0.3.1 ... linking ... done.
Loading package erf-1.0.0.0 ... linking ... <interactive>: C:\Program Files\Haskell\erf-1.0.0.0\ghc-6.10.4\HSerf-1.0.0.0.o: unknown
symbol `_erfc'
: unable to load package `erf-1.0.0.0'

Change History

Changed 4 years ago by simonmar

  • status changed from new to closed
  • difficulty set to Unknown
  • component changed from Compiler to Runtime System
  • resolution set to fixed
  • milestone set to 6.12.1

Fixed

Wed Sep 23 03:52:40 PDT 2009  Simon Marlow <marlowsd@gmail.com>
  * Add erf, erfc, erfff, erfcf (#3536)
Note: See TracTickets for help on using tickets.