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

Compile fails with gsl 2.1 #70

Closed
opoplawski opened this issue Nov 14, 2015 · 5 comments
Closed

Compile fails with gsl 2.1 #70

opoplawski opened this issue Nov 14, 2015 · 5 comments

Comments

@opoplawski
Copy link

Working on updating gsl to 2.1 in Fedora. mp fails with:

/builddir/build/BUILD/mp-35060ba2a59f2b0f0fd622ed9df678f142f846ed/src/gsl/amplgsl.c:1493:14: error: too many arguments to function 'gsl_sf_ellint_D_e'
 WRAP_CHECKED(gsl_sf_ellint_D, ARGS3_PREC)
              ^

In gsl 2 they dropped the unused third argument 'n'. Something like:

#if GSL_MAJOR_VERSION >= 2
WRAP_CHECKED(gsl_sf_ellint_D, ARGS2_PREC)
#else 
WRAP_CHECKED(gsl_sf_ellint_D, ARGS3_PREC)
#endif 

Should work.

@vitaut
Copy link
Contributor

vitaut commented Nov 17, 2015

I've committed the fix you propose in eeb32b4, but haven't updated gsl yet because it fails to compile on one of the supported platforms (Windows with MSVC). Thanks!

@vitaut
Copy link
Contributor

vitaut commented Nov 17, 2015

Implemented more fixes and updated gsl module to version 2.1 in 635f552.

@vitaut vitaut closed this as completed Nov 17, 2015
@opoplawski
Copy link
Author

We have a test failure with gsl 1.16:

[ RUN      ] GSLTest.EllInt
unknown file: Failure
C++ exception with description "invalid number of arguments in function call" thrown in the test body.
[  FAILED  ] GSLTest.EllInt (157 ms)

Works with gsl 2.1 though.

@vitaut vitaut reopened this Nov 19, 2015
vitaut added a commit that referenced this issue Nov 19, 2015
@vitaut
Copy link
Contributor

vitaut commented Nov 19, 2015

Fixed in f34afb3, thanks.

@vitaut vitaut closed this as completed Nov 19, 2015
@opoplawski
Copy link
Author

Confirmed, thanks again.

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

2 participants