pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/gmp illegal text-relocation build error on OS X Yosemite
Hello!
When I build devel/gmp from pkgsrc 2015Q1 on OS X Yosemite, it fails
with the following error:
===
ld: illegal text-relocation to '___gmp_binvert_limb_table' in .libs/mp_minv_tab.o from '___gmpn_divexact_1' in mpn/.libs/dive_1.o for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libgmp.la] Error code 1
bmake: stopped in /home/pbulk/build/devel/gmp/work/gmp-6.0.0
1 error
bmake: stopped in /home/pbulk/build/devel/gmp/work/gmp-6.0.0
*** [all-recursive] Error code 1
bmake: stopped in /home/pbulk/build/devel/gmp/work/gmp-6.0.0
1 error
bmake: stopped in /home/pbulk/build/devel/gmp/work/gmp-6.0.0
*** [all] Error code 2
bmake: stopped in /home/pbulk/build/devel/gmp/work/gmp-6.0.0
1 error
bmake: stopped in /home/pbulk/build/devel/gmp/work/gmp-6.0.0
*** Error code 2
Stop.
bmake: stopped in /opt/pkgsrc-world/pkgsrc/devel/gmp
*** Error code 1
Stop.
bmake: stopped in /opt/pkgsrc-world/pkgsrc/devel/gmp
===
Does anyone know what's wrong and how to properly fix it?
If I disable the use of assembly loops by adding the following to
devel/gmp/Makefile, the build *succeeds* and all tests from "bmake test"
*pass*:
===
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --disable-assembly
.endif
===
FWIW, I also tried the following configure option combinations, but none
of them worked:
--with-pic
--disable-static
--disable-static --with-pic
--disable-shared
--disable-shared --with-pic
The build host is an x86_64 machine running OS X Yosemite (10.10.3;
Darwin 14.3.0). The compiler is Clang 6.0:
$ clang --version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
Thank you!
Lewis
Home |
Main Index |
Thread Index |
Old Index