Description of problem: build failed with ppc64le arch Version-Release number of selected component (if applicable): gmp-5.1.3.2.fc21.ppc64le How reproducible: rpmbuild --target ppc64le Actual results: /bin/ld: mpn/.libs/add_n.o: ABI version 1 is not compatible with ABI version 2 output /bin/ld: failed to merge target specific data of file mpn/.libs/add_n.o /bin/ld: mpn/.libs/sub_n.o: ABI version 1 is not compatible with ABI version 2 output Additional info: ppc64le must run in abiv2 and gmp needs patches to support it. I got following ppc64le patches from suse: gmp-support-powerpc64le-linux.patch gmp-ppc64le-mod.patch https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/gmp note that I did not find a relative upstream bug.
Created attachment 882366 [details] gmp headers patches This patch is not to be added in the gmp.spec file as gmp.h and gmp-mparam.h are not embedded in the gmp-5.1.3.tar.bz2 file.
(This comments is relative to comment1) I have got errors about gmp when I built php package for ppc64le arch. Actual results: In file included from /builddir/build/BUILD/php-5.5.11/ext/gmp/php_gmp.h:24:0, from /builddir/build/BUILD/php-5.5.11/ext/gmp/gmp.c:25: /usr/include/gmp.h:43:23: fatal error: gmp-ppc64.h: No such file or directory #include "gmp-ppc64.h" ^ compilation terminated. This is because I missed some patches for ppc64le arch on gmp.h and gmp-mparam.h headers in the gmp package that make /usr/include/gmp/gmp* files not correct. Please consider gmp-ppc64le-header.patch attached file.
Created attachment 886530 [details] gmp patch for ppc64le
Created attachment 886531 [details] trivial patch for ppc64le and gmp-6, already upstream
Note with gmp-6, we only need changes to the header files and a trivial, already upstream (https://gmplib.org/repo/gmp/rev/4a6d258b467f) patch added to the spec. I've included the upstream patch and changes needed to the headers and spec Also, you can see that the changes built fine on the ppcle koji at -> http://ppc-le.koji.fedoraproject.org/koji/taskinfo?taskID=4538
Hi Frantisek, Is there a target date to have the above patches integrated in fedora ? This bug make the botan and softhsm packages to fail http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1901668 http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1901983
Comment on attachment 886531 [details] trivial patch for ppc64le and gmp-6, already upstream this patch has been committed in fedora db: http://pkgs.fedoraproject.org/cgit/gmp.git/commit/?id=296a7a71b43e74be561d0f5a5ee69e02e1c903c9
Created attachment 917034 [details] gmp-6-ppc64le-enable.v2.patch update the previous gmp-6-ppc64le-enable.patch as gmp-6-ppc64le-enable.v2.patch because gmp.spec has been changed in the meantime. patch to be applied in fedora gdm tree: === fedpkg clone gmp cd gmp git apply gmp-6-ppc64le-enable.v2.patch ===
(In reply to Michel Normand from comment #6) > Hi Frantisek, > Is there a target date to have the above patches integrated in fedora ? > This bug make the botan and softhsm packages to fail > http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1901668 > http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1901983 another package that failed for same reason is seed: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1939426
(In reply to Michel Normand from comment #8) > Created attachment 917034 [details] > gmp-6-ppc64le-enable.v2.patch committed in fedora db as http://pkgs.fedoraproject.org/cgit/gmp.git/commit/?h=f21&id=e271a2d08aad23079e12499014c350650a2f2abf