pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] devel/gmp: illegal text-relocation on OS X Yosemite



"J. Lewis Muir" <jlmuir%imca-cat.org@localhost> writes:

> Disabling assembly loops by adding the "--disable-assembly" configure
> option allows it to build.  A patch against pkgsrc-2015Q2 to do this on
> Darwin is below.  Would a developer be willing to review this patch and
> commit?
>
> Index: Makefile
> ===================================================================
> RCS file: /cvsroot/pkgsrc/devel/gmp/Makefile,v
> retrieving revision 1.77
> diff -u -r1.77 Makefile
> --- Makefile	30 Mar 2015 18:48:08 -0000	1.77
> +++ Makefile	10 Jul 2015 20:45:46 -0000
> @@ -74,6 +74,15 @@
>  .  endif
>  .endif
>  
> +# On OS X Yosemite (10.10.3 with Xcode 6.3 and 10.10.4 with Xcode 6.4), the
> +# build for version 6.0.0a fails with the linker complaining about an 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").
> +# Disabling assembly loops makes it build successfully.
> +.if ${OPSYS} == "Darwin"
> +CONFIGURE_ARGS+=	--disable-assembly
> +.endif
> +
>  pre-configure:
>  	cd ${WRKSRC} && type autoconf && autoconf


I wonder if this should be adjusted to be on 10.10 only, or if we should
just simplify all OS X because one is flaky.

Can someone else with a 10.10 system try this?  I would like to
understand if this is a general 10.10 issue vs something odd with
jlmuir@'s system.  I certainly have seen mysterious non-repeatable
issues on macs before...

Attachment: pgpaiCVwTRwWD.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index