Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

racket does not support MPFR on ubuntu 18.10 #20

Closed
bozherbie opened this issue Jan 3, 2019 · 4 comments
Closed

racket does not support MPFR on ubuntu 18.10 #20

bozherbie opened this issue Jan 3, 2019 · 4 comments

Comments

@bozherbie
Copy link

Hello,

In ubuntu 18.10, I dit not manage to get MPFR support in racket:
With the default racket package:

 racket 
Welcome to Racket v6.12.
> (require math/bigfloat)
> (bf 1)
; mpfr_set_nan: implementation not found; arguments: #<_mpfr> [,bt for context]
>  (exit)

With this ppa : https://launchpad.net/~plt/+archive/ubuntu/racket

racket 
racket 
Welcome to Racket v7.1.
> (require math/bigfloat)
> (bf 1)
; mpfr_set_nan: implementation not found; arguments: #<_mpfr> [,bt for context]
> (exit)

Note that ibmpfr6 seems to be installed:

Sorting... Done
Full Text Search... Done
libmpfr6/cosmic,now 4.0.1-1 amd64 [installed,automatic]
  multiple precision floating-point computation

I discovered this bug while trying to get herbie working on my computer: herbie-fp/herbie#211

@samth samth transferred this issue from racket/racket Jan 3, 2019
@samth
Copy link
Sponsor Member

samth commented Jan 3, 2019

I moved this to the racket/math repository. I think something needs to be added here: https://github.com/racket/math/blob/master/math-lib/math/private/bigfloat/mpfr.rkt#L68-L74, perhaps the version 4.0.1 but I'm not sure.

@pavpanchekha
Copy link
Collaborator

I've had the same issue reported to me by other users of Herbie, all on 18.10, in case it helps.

@pavpanchekha
Copy link
Collaborator

MPFR released a new version on 31 December 2018, and I hear the Ubuntu repository has been updated as well. @bozherbie, could you check whether a package update fixes this issue?

@billzorn
Copy link

billzorn commented Jun 4, 2019

I just had this same issue on Ubuntu 18.04.2; it was fixed by installing libmpfr-dev. libmpfr6 was already installed, but that seemed to be insufficient without the headers.

@mflatt mflatt closed this as completed in 832fccd Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants