IA64 & HAVE_ABI_64 question

Steve Ellcey sje at cup.hp.com
Mon May 10 22:16:14 CEST 2010


On Sat, 2010-05-08 at 15:52 +0200, Torbjorn Granlund wrote:

> If you simply do a "SRCPATH/configure" with the unmodified sources, what
> is output?  Please do not pass any CC or CFLAGS settings as configure
> arguments, and also make sure they are not set in your environment.
> 
> In general  when reporting problem like this, we need configure output.
> Please also see http://gmplib.org/manual/Reporting-Bugs.html.

Attached is the output of the configure run, this is with GMP 4.2.4
unmodified sources.  I ran configure with no options.  The compiler 
is the HP C compiler A.06.10.  config.guess returns
itanium2-hp-hpux11.23 and configfsf.guess returns ia64-hp-hpux11.23.
uname returns 'HP-UX xyz B.11.23 U ia64 2520031015 unlimited-user
license'.

I believe this configuration would result in a correct 32 bit GMP
library.  My problem is when I try to build for 64 bits and have CC set
to "/usr/bin/cc +DD64".

Steve Ellcey
sje at cup.hp.com
-------------- next part --------------
+ export PATH=/opt/ansic/bin:/usr/bin
+ unset CC
+ unset CFLAGS
+ /bin/rm -rf obj
+ mkdir obj
+ cd obj
+ ../gmp-4.2.4/configure
checking build system type... itanium2-hp-hpux11.23
checking host system type... itanium2-hp-hpux11.23
checking for a BSD-compatible install... ../gmp-4.2.4/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -milp32 -O2 ... no
checking compiler cc  ... yes
checking compiler cc   has long long... yes
checking compiler cc   +O3... yes
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking build system compiler cc... yes
checking for build system preprocessor... cc -E
checking for build system executable suffix... 
checking whether build system compiler is ANSI... yes
checking for build system compiler math library... -lm
checking for egrep... grep -E
using ABI="32"
      CC="cc"
      CFLAGS=" +O3"
      CPPFLAGS=""
      MPN_PATH=" ia64 generic"
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking whether assembler supports --noexecstack option... no
checking for ar... ar
checking for BSD-compatible nm... /usr/bin/nm -p
checking for a sed that does not truncate output... /usr/bin/sed
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking whether ln -s works... yes
checking how to recognize dependent libraries... file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1536000
checking command to parse /usr/bin/nm -p output from cc object... ok
checking for objdir... .libs
checking for ar... (cached) ar
checking for ranlib... ranlib
checking for strip... strip
checking for cc option to produce PIC... +Z
checking if cc PIC flag +Z works... yes
checking if cc static flag -Wl,-a -Wl,archive works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... hpux11.23 dld.sl
checking how to hardcode library paths into programs... relink
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking invent.h usability... no
checking invent.h presence... no
checking for invent.h... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking sys/attributes.h usability... no
checking sys/attributes.h presence... no
checking for sys/attributes.h... no
checking sys/iograph.h usability... no
checking sys/iograph.h presence... no
checking for sys/iograph.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/pstat.h usability... yes
checking sys/pstat.h presence... yes
checking for sys/pstat.h... yes
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking sys/syssgi.h usability... no
checking sys/syssgi.h presence... no
checking for sys/syssgi.h... no
checking sys/systemcfg.h usability... no
checking sys/systemcfg.h presence... no
checking for sys/systemcfg.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/resource.h... yes
checking for sys/sysctl.h... no
checking for machine/hal_sysinfo.h... no
checking whether fgetc is declared... yes
checking whether fscanf is declared... yes
checking whether optarg is declared... yes
checking whether ungetc is declared... yes
checking whether vfprintf is declared... yes
checking whether sys_errlist is declared... no
checking whether sys_nerr is declared... no
checking return type of signal handlers... void
checking for intmax_t... yes
checking for long double... yes
checking for long long... yes
checking for ptrdiff_t... yes
checking for quad_t... no
checking for uint_least32_t... yes
checking for preprocessor stringizing operator... yes
checking for working volatile... yes
checking whether <stdarg.h> exists and works... yes
checking whether gcc __attribute__ ((const)) works... yes
checking whether gcc __attribute__ ((malloc)) works... yes
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking whether gcc __attribute__ ((noreturn)) works... yes
checking for inline... __inline
configure: WARNING: gmp.h doesnt recognise compiler "__inline", inlines will be unavailable
checking for cos in -lm... yes
checking for working alloca.h... yes
checking for alloca (via gmp-impl.h)... yes
checking how to allocate temporary memory... alloca
checking whether byte ordering is bigendian... yes
checking format of `double' floating point... IEEE big endian
checking for alarm... yes
checking for attr_get... no
checking for clock... yes
checking for clock_gettime... yes
checking for cputime... no
checking for getpagesize... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for getsysinfo... no
checking for localeconv... yes
checking for memset... yes
checking for mmap... yes
checking for mprotect... yes
checking for nl_langinfo... yes
checking for obstack_vprintf... no
checking for popen... yes
checking for processor_info... no
checking for pstat_getprocessor... yes
checking for raise... yes
checking for read_real_time... no
checking for sigaction... yes
checking for sigaltstack... yes
checking for sigstack... yes
checking for syssgi... no
checking for strchr... yes
checking for strerror... yes
checking for strnlen... no
checking for strtol... yes
checking for strtoul... yes
checking for sysconf... yes
checking for sysctl... no
checking for sysctlbyname... no
checking for times... yes
checking for vsnprintf... yes
checking whether vsnprintf works... yes
checking whether sscanf needs writable input... no
checking for struct pst_processor.psp_iticksperclktick... yes
checking for suitable m4... m4
checking if m4wrap produces spurious output... yes
checking how to switch to text section... .text
checking how to switch to data section... .data
checking for assembler label suffix... :
checking for assembler global directive... .global
checking for assembler global directive attribute... 
checking if globals are prefixed by underscore... no
checking how to switch to read-only data section... 	.section .abe$2.rodata = "a", "progbits"
checking for assembler .type directive... .type	$1,@$2
checking for assembler .size directive... .size	$1,$2
checking for assembler local label prefix... .L
checking for assembler byte directive... data1
checking how to define a 32-bit word... .word
checking if .align assembly directive is logarithmic... no
checking whether assembler .align padding is good... yes
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned... yes
checking size of unsigned... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for mp_limb_t... yes
checking size of mp_limb_t... 8
checking for stack_t... yes
checking for tputs in -lncurses... no
checking for tputs in -lcurses... yes
checking for readline in -lreadline... no
checking readline detected... no
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... lex
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for ranlib... (cached) ranlib
creating config.m4
configure: creating ./config.status
config.status: creating demos/pexpr-config.h
config.status: creating demos/calc/calc-config.h
config.status: creating Makefile
config.status: creating mpbsd/Makefile
config.status: creating mpf/Makefile
config.status: creating mpn/Makefile
config.status: creating mpq/Makefile
config.status: creating mpz/Makefile
config.status: creating printf/Makefile
config.status: creating scanf/Makefile
config.status: creating cxx/Makefile
config.status: creating tests/Makefile
config.status: creating tests/devel/Makefile
config.status: creating tests/mpbsd/Makefile
config.status: creating tests/mpf/Makefile
config.status: creating tests/mpn/Makefile
config.status: creating tests/mpq/Makefile
config.status: creating tests/mpz/Makefile
config.status: creating tests/rand/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/cxx/Makefile
config.status: creating doc/Makefile
config.status: creating tune/Makefile
config.status: creating demos/Makefile
config.status: creating demos/calc/Makefile
config.status: creating demos/expr/Makefile
config.status: creating gmp.h
config.status: creating mp.h
config.status: creating config.h
config.status: linking ../gmp-4.2.4/mpn/generic/add.c to mpn/add.c
config.status: linking ../gmp-4.2.4/mpn/generic/add_1.c to mpn/add_1.c
config.status: linking ../gmp-4.2.4/mpn/ia64/add_n.asm to mpn/add_n.asm
config.status: linking ../gmp-4.2.4/mpn/generic/sub.c to mpn/sub.c
config.status: linking ../gmp-4.2.4/mpn/generic/sub_1.c to mpn/sub_1.c
config.status: linking ../gmp-4.2.4/mpn/ia64/sub_n.asm to mpn/sub_n.asm
config.status: linking ../gmp-4.2.4/mpn/ia64/mul_1.asm to mpn/mul_1.asm
config.status: linking ../gmp-4.2.4/mpn/ia64/addmul_1.asm to mpn/addmul_1.asm
config.status: linking ../gmp-4.2.4/mpn/ia64/submul_1.c to mpn/submul_1.c
config.status: linking ../gmp-4.2.4/mpn/ia64/lorrshift.asm to mpn/lshift.asm
config.status: linking ../gmp-4.2.4/mpn/ia64/lorrshift.asm to mpn/rshift.asm
config.status: linking ../gmp-4.2.4/mpn/generic/dive_1.c to mpn/dive_1.c
config.status: linking ../gmp-4.2.4/mpn/generic/diveby3.c to mpn/diveby3.c
config.status: linking ../gmp-4.2.4/mpn/generic/divis.c to mpn/divis.c
config.status: linking ../gmp-4.2.4/mpn/generic/divrem.c to mpn/divrem.c
config.status: linking ../gmp-4.2.4/mpn/generic/divrem_1.c to mpn/divrem_1.c
config.status: linking ../gmp-4.2.4/mpn/generic/divrem_2.c to mpn/divrem_2.c
config.status: linking ../gmp-4.2.4/mpn/generic/fib2_ui.c to mpn/fib2_ui.c
config.status: linking ../gmp-4.2.4/mpn/generic/mod_1.c to mpn/mod_1.c
config.status: linking ../gmp-4.2.4/mpn/generic/mod_34lsub1.c to mpn/mod_34lsub1.c
config.status: linking ../gmp-4.2.4/mpn/ia64/mode1o.asm to mpn/mode1o.asm
config.status: linking ../gmp-4.2.4/mpn/generic/pre_divrem_1.c to mpn/pre_divrem_1.c
config.status: linking ../gmp-4.2.4/mpn/generic/pre_mod_1.c to mpn/pre_mod_1.c
config.status: linking ../gmp-4.2.4/mpn/generic/dump.c to mpn/dump.c
config.status: linking ../gmp-4.2.4/mpn/generic/mul.c to mpn/mul.c
config.status: linking ../gmp-4.2.4/mpn/generic/mul_fft.c to mpn/mul_fft.c
config.status: linking ../gmp-4.2.4/mpn/generic/mul_n.c to mpn/mul_n.c
config.status: linking ../gmp-4.2.4/mpn/generic/mul_basecase.c to mpn/mul_basecase.c
config.status: linking ../gmp-4.2.4/mpn/generic/sqr_basecase.c to mpn/sqr_basecase.c
config.status: linking ../gmp-4.2.4/mpn/generic/random.c to mpn/random.c
config.status: linking ../gmp-4.2.4/mpn/generic/random2.c to mpn/random2.c
config.status: linking ../gmp-4.2.4/mpn/generic/pow_1.c to mpn/pow_1.c
config.status: linking ../gmp-4.2.4/mpn/generic/rootrem.c to mpn/rootrem.c
config.status: linking ../gmp-4.2.4/mpn/generic/sqrtrem.c to mpn/sqrtrem.c
config.status: linking ../gmp-4.2.4/mpn/generic/get_str.c to mpn/get_str.c
config.status: linking ../gmp-4.2.4/mpn/generic/set_str.c to mpn/set_str.c
config.status: linking ../gmp-4.2.4/mpn/generic/scan0.c to mpn/scan0.c
config.status: linking ../gmp-4.2.4/mpn/generic/scan1.c to mpn/scan1.c
config.status: linking ../gmp-4.2.4/mpn/ia64/popcount.asm to mpn/popcount.asm
config.status: linking ../gmp-4.2.4/mpn/generic/popham.c to mpn/hamdist.c
config.status: linking ../gmp-4.2.4/mpn/generic/cmp.c to mpn/cmp.c
config.status: linking ../gmp-4.2.4/mpn/generic/perfsqr.c to mpn/perfsqr.c
config.status: linking ../gmp-4.2.4/mpn/generic/bdivmod.c to mpn/bdivmod.c
config.status: linking ../gmp-4.2.4/mpn/ia64/gcd_1.asm to mpn/gcd_1.asm
config.status: linking ../gmp-4.2.4/mpn/generic/gcd.c to mpn/gcd.c
config.status: linking ../gmp-4.2.4/mpn/generic/gcdext.c to mpn/gcdext.c
config.status: linking ../gmp-4.2.4/mpn/generic/tdiv_qr.c to mpn/tdiv_qr.c
config.status: linking ../gmp-4.2.4/mpn/generic/dc_divrem_n.c to mpn/dc_divrem_n.c
config.status: linking ../gmp-4.2.4/mpn/generic/sb_divrem_mn.c to mpn/sb_divrem_mn.c
config.status: linking ../gmp-4.2.4/mpn/generic/jacbase.c to mpn/jacbase.c
config.status: linking ../gmp-4.2.4/mpn/generic/get_d.c to mpn/get_d.c
config.status: linking ../gmp-4.2.4/mpn/generic/mullow_n.c to mpn/mullow_n.c
config.status: linking ../gmp-4.2.4/mpn/generic/mullow_basecase.c to mpn/mullow_basecase.c
config.status: linking ../gmp-4.2.4/mpn/ia64/copyi.asm to mpn/copyi.asm
config.status: linking ../gmp-4.2.4/mpn/ia64/copyd.asm to mpn/copyd.asm
config.status: linking ../gmp-4.2.4/mpn/ia64/invert_limb.asm to mpn/invert_limb.asm
config.status: linking ../gmp-4.2.4/mpn/generic/addsub_n.c to mpn/addsub_n.c
config.status: linking ../gmp-4.2.4/mpn/ia64/gmp-mparam.h to gmp-mparam.h


More information about the gmp-discuss mailing list