-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add mpfr #133
Add mpfr #133
Conversation
Restarting now that gmp has been released. |
@isuruf, do you have any interest in mpfr? Would happily add you as a maintainer. |
Yes. |
Grrr |
I know, right? Was hoping it would go smoothly. 😞 |
Funny, I cannot reproduce this locally. Will take a look at the linkages here to see what is going on. Maybe something else is missing. |
8be8afc
to
962039a
Compare
@@ -0,0 +1,2 @@ | |||
cc -L$PREFIX/lib -I$PREFIX/include -lmpfr -lgmp -Wl,-rpath,$PREFIX/lib $RECIPE_DIR/test.c -o test.o |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied this tweak to fix the test on Mac.
e1aca6a
to
1cf0ff9
Compare
@@ -0,0 +1,12 @@ | |||
./configure --prefix=$PREFIX \ | |||
--with-gmp-include=$PREFIX/include \ | |||
--with-gmp-lib=$PREFIX/lib \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried specifying using --with-gmp
. However, there was a very nasty message about a mismatch between the include and library versions. So, trying this instead as this was suggested. Not expecting this will make a difference, but should rule it out anyways. Besides it always could work. 🍀
2e8bdab
to
7b1915c
Compare
Got it working on Travis-CI. See, isuruf@1e5cf19 |
@@ -0,0 +1,10 @@ | |||
#!/bin/bash | |||
|
|||
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in gmp build also we saw homebrew installed gmp interfering with conda version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we could uninstall these things from our CI, but these are real problems that could occur when building locally on a user's system. So, it isn't bad that we come up with a fix.
CI passes. Any final feedback before merging this? |
Looks good to me |
Going to go ahead and merge so that |
Requires: #132
Builds mpfr on Mac and Linux. Borrows the recipe from conda recipes. Makes some tweaks to fix in conda-forge.