PARI/GP Bug report logs - #1239
./Configure issue with GMP ABI selection on HPux 11iv3(B.11.31) ia64

Package: pari; Maintainer for pari is Aurel Page <aurel.page@normalesup.org>; Source for pari is src:pari.

Reported by: Bill.Glessner@cwu.EDU

Date: Wed, 7 Sep 2011 20:18:02 UTC

Severity: normal

Done: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: allomber@math.u-bordeaux.fr
Subject: Bug#1239: ./Configure issue with GMP ABI selection on HPux 11iv3(B.11.31) ia64
Reply-To: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>, 1239@pari.math.u-bordeaux.fr
Resent-From: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
Resent-To: bug-submit-list@pari.math.u-bordeaux.fr
Resent-CC: Karim.Belabas@math.u-bordeaux.fr
Resent-Date: Sun, 11 Sep 2011 19:18:02 UTC
Resent-Message-ID: <handler.1239.B1239.131576798312596@pari.math.u-bordeaux.fr>
Resent-Sender: allomber@math.u-bordeaux.fr
X-PARI/GP-PR-Message: report 1239
X-PARI/GP-PR-Package: pari
X-PARI/GP-PR-Keywords: 
Received: via spool by 1239-submit@pari.math.u-bordeaux.fr id=B1239.131576798312596
          (code B ref 1239); Sun, 11 Sep 2011 19:18:02 UTC
Received: (at 1239) by pari.math.u-bordeaux.fr; 11 Sep 2011 19:06:23 +0000
Received: from smtp1-g21.free.fr ([212.27.42.1])
	by pari.math.u-bordeaux1.fr with esmtp (Exim 4.69)
	(envelope-from <Bill.Allombert@math.u-bordeaux1.fr>)
	id 1R2pMF-0003H7-7W
	for 1239@pari.math.u-bordeaux.fr; Sun, 11 Sep 2011 21:06:23 +0200
Received: from yellowpig (unknown [IPv6:2a01:e35:2f45:9a0:223:14ff:fe3e:4490])
	by smtp1-g21.free.fr (Postfix) with ESMTP id D5B7394001B;
	Sun, 11 Sep 2011 21:06:18 +0200 (CEST)
Received: from bill by yellowpig with local (Exim 4.72)
	(envelope-from <Bill.Allombert@math.u-bordeaux1.fr>)
	id 1R2pM9-0008ER-4u; Sun, 11 Sep 2011 21:06:17 +0200
Date: Sun, 11 Sep 2011 21:06:17 +0200
From: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
To: Bill.Glessner@cwu.EDU, 1239@pari.math.u-bordeaux.fr
Message-ID: <20110911190617.GF14770@yellowpig>
References: <01O5RTXU80V68WVZPC@cluster.cwu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <01O5RTXU80V68WVZPC@cluster.cwu.edu>
User-Agent: Mutt/1.5.20 (2009-06-14)
On Wed, Sep 07, 2011 at 01:10:05PM -0700, Bill.Glessner@cwu.EDU wrote:
> 
> Package: pari
> Version: 2.5.0
> 
> On HP Itanium Server rx4640 running HPux 11iv3, running ./Configure produces
> 
> ./Configure --prefix=/usr/local/PARI \
> --with-gmp --with-readline --with-ncurses-lib=/usr/local/lib
> 
> Configuring pari-2.5.0 (STABLE)
> Checking echo to see how to suppress newlines...
> ...using \c
> Looking for some tools first ...
> ...ld is /usr/bin/ld
> ...zcat is /usr/local/bin/zcat
> ...gzip is /usr/local/bin/gzip
> ...ranlib is /usr/local/GNU/bin/ranlib
> ...perl is /usr/bin/perl
> GNU compiler version 4.5.3 (GCC)
> Given the previous choices, sizeof(long) is 4 chars.
> The internal word representation of a double is l[0], l[1].
> ==========================================================================
> Building for: Itanium running hpux (portable C/GMP kernel) 32-bit version
> ==========================================================================
> C compiler is          gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
>   -fPIC
> Executable linker is   gcc  -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
>    -Wl,-E
> Dynamic Lib linker is  gcc  -shared  $(CFLAGS) $(DLCFLAGS) -Wl,-b
> Looking in C lib for some symbols...
> ...Found exp2.
> ...Found log2.
> ...Found strftime.
> ...Found getrusage.
> ...Found sigaction.
> ...Found TIOCGWINSZ.
> ...Found getrlimit.
> ...Found stat.
> ...Found vsnprintf.
> ...Found waitpid.
> ...Found setsid.
> ...Found getenv.
> ...Found isatty.
> ...Found alarm.
> ...Found dlopen.
> Checking for optional libraries and headers...
> ...Found libgmp in /usr/local/GNU/lib
> ...Found gmp header in /usr/local/GNU/include
> ### Your GMP library ABI is unsupported.
> ### Building without GNU MP support
> ...Found libX11 in /usr/lib/X11R6
> ...Found X11 header files in /usr/include/X11R6/X11
> Hi-Res Graphics: X11
> ...Found libreadline in /usr/local/GNU/lib
> ...Found readline header in /usr/local/GNU/include/readline
> ...Found history header in /usr/local/GNU/include/readline
> ...Found libncurses in /usr/local/GNU/lib
> ...Library ncurses needed by readline
> Using GNU readline, version 6.2
> Installation prefix ? [/usr/local/GNU/PARI]
> ...for architecture-independent files (share-prefix) ? [/usr/local/GNU/PARI/shar
> e]
> Installation directories for:
> ...executables (gp, gphelp) ? [/usr/local/GNU/PARI/bin]
> ...libraries (libpari) ? [/usr/local/GNU/PARI/lib]
> ...include files ? [/usr/local/GNU/PARI/include]
> ...manual pages ? [/usr/local/GNU/PARI/share/man/man1]
> ...other system-dependent data ? [/usr/local/GNU/PARI/lib/pari]
> ...other system-independent data ? [/usr/local/GNU/PARI/share/pari]
> Default is dynamic executable and shared library
> ==========================================================================
> Extracting examples/Makefile.hpux-ia64
> Extracting Ohpux-ia64/Makefile
> Extracting Makefile
> Extracting Ohpux-ia64/paricfg.h
> Extracting Ohpux-ia64/../Odos/paricfg.h
> Extracting scripts and macros
> ...in doc
> ...in misc
> ==========================================================================
> Shall we try to build pari 2.5.0 (released) now (y/n)? [n]
> Ok. Type "make install" when you are ready
> Bye !
> 
> Since I didn't specifically set the ABI environment variable before
> building the GMP library for supporting the gcc 4.5.3 local install, I
> believe the GMP library was created with its default ABI of 32 for HPux IA64.


Hello Bill.

My understanding is the opposite: 
GMP choose the ABI with the best performance, which is ABI=64.
(Fundamentally GMP assume that people are building GMP program that are not linked
with any other libraries).

The log shows clearly that PARI is configured for the default 32bit ABI.

> Does the message 
> "### Your GMP library ABI is unsupported." 
> mean that if I build a GMP library environment with ABI = 64, PARI/GP's
> ./Configure will be able to use that to create a PARI/GP with GMP support?

This means that you should build GMP with ABI=32, or PARI with the 64bit ABI.

If you want the best performance, choose the later. However this will require you
to have 64bit version of the other libraries used by PARI.

Cheers,
Bill.



Send a report that this bug log contains spam.


Bill Allombert <allomber@math.u-bordeaux.fr>. Last modified: Sat Aug 26 17:16:46 2023; Machine Name: pari

PARI/GP Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.