Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

mpfr failed to build on 10.7.5 #17756

Closed
MartinHjelm opened this issue Feb 11, 2013 · 4 comments
Closed

mpfr failed to build on 10.7.5 #17756

MartinHjelm opened this issue Feb 11, 2013 · 4 comments

Comments

@MartinHjelm
Copy link

https://gist.github.com/MartinHjelm/4753946

Seems like there's something wrong in the current patch for mpfr.

==> Patching
patching file PATCHES
patching file VERSION
patching file src/get_d64.c
patching file src/mpfr.h
patching file src/version.c
patching file tests/tget_set_d64.c
patching file PATCHES
patching file VERSION
patching file src/mpfr.h
patching file src/strtofr.c
patching file src/version.c
patching file tests/tstrtofr.c
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 1203 with fuzz 1.
==> ./configure --prefix=/usr/local/Cellar/mpfr/3.1.1-p2 --build=x86_64-apple-darwin
==> make
ld: illegal text-relocation to ___gmp_binvert_limb_table in /usr/local/lib/libgmp.a(mp_minv_tab.o) from ___gmpn_divexact_1 in /usr/local/lib/libgmp.a(dive_1.o) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libmpfr.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

@adamv
Copy link
Contributor

adamv commented Feb 11, 2013

The mpfr .a and .la files already in /usr/local will likely cause problems (if this was compiling.)

@MartinHjelm
Copy link
Author

It doesn't compile. How do you mean I have no mpfr files in usr/local. (A bit of a newbie on this)

@MartinHjelm
Copy link
Author

It seems if I clean out the /usr/local/lib and reinstalling everything mpfr actually builds. However there is a linking problem

Warning: Could not link mpfr. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link mpfr'

Linking is fixed using the forced overwrite which deletes the following files

/usr/local/include/mpfr.h
/usr/local/include/mpf2mpfr.h
/usr/local/share/doc/mpfr
/usr/local/lib/libmpfr.dylib
/usr/local/lib/libmpfr.a
/usr/local/lib/libmpfr.4.dylib

@MartinHjelm
Copy link
Author

Closing this since it seems problem can be resolved by cleaning out the /usr/local/lib and reinstalling.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants