Patch to enable build on s390x

Mike Frysinger vapier at gentoo.org
Fri Sep 16 23:14:50 CEST 2011


On Thursday, September 15, 2011 03:32:16 Marc Glisse wrote:
> On Wed, 14 Sep 2011, Mike Frysinger wrote:
> > On Tue, Aug 30, 2011 at 22:02, Steve M. Robbins wrote:
> >> I'd like to draw your attention to Andreas' patch
> >> for building GMP on the 64-bit S390 (s390x):
> >> http://article.gmane.org/gmane.comp.lib.gmp.general/2611
> >> 
> >> I just built 5.0.2 for Debian -- including this patch -- and, as
> >> reported, all tests pass on both s390 and s390x.
> >> 
> >> Would you consider adding this to the next release?
> > 
> > diff people over the years have pointed out the patch and asked for
> > inclusion, but seems that people with commit access have yet to notice
> > so that it actually happens :(
> 
> The patch doesn't seem quite right. Apart from BYTES_PER_MP_LIMB, the rest
> should be handled automatically, no? On the other hand, it is missing all
> the tuning info (see the same file in other directories). But if you
> aren't adding any asm file, I am not sure creating a directory is
> necessary. Note also that the patch references a discussion where noone
> answered Torbjorn's question:
> http://gmplib.org/list-archives/gmp-bugs/2008-December/001229.html

the patch pretty much shows you what config.guess would show ... the target is 
"s390x-*" instead of "s390-*".

but see attached build logs.  people should be able to glean anything about 
the build they want from these.

> Does the build work with --disable-assembly?

no ... fails for same reason.  see 2nd set of build logs.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-s390x-build.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 48654 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20110916/99601234/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-s390x-disable-asm-build.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 48719 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20110916/99601234/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20110916/99601234/attachment-0005.bin>


More information about the gmp-bugs mailing list