compiling gmp on a sparc

oscar axmon oscar_guitar at hotmail.com
Wed Dec 1 15:53:01 CET 2004


Hello everybody,

I hope someone here can help me. Im trying to compile gmp on a sparc machine 
but make fails.

./configure

checking build system type... ultrasparc2-sun-solaris2.7
checking host system type... ultrasparc2-sun-solaris2.7
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking compiler gcc -g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9 ... no
checking compiler cc -fast -fns=no -fsimple=1 -xarch=v9 ... no
checking compiler gcc -g -O2 -Wa,-xarch=v8plus ... yes
checking compiler gcc -g -O2 -Wa,-xarch=v8plus  -mcpu=ultrasparc... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
using ABI="32"
      CC="gcc"
      CFLAGS="-g -O2 -Wa,-xarch=v8plus -mcpu=ultrasparc"
      CPPFLAGS=""
      MPN_PATH=" sparc32/v9 sparc32/v8 sparc32 generic"
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for string.h... yes
checking for ar... ar
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 393217
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.7 ld.so
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 for fcntl.h... yes
checking for locale.h... yes
checking for sys/mman.h... yes
checking for sys/param.h... yes
checking for sys/processor.h... yes
checking for sys/resource.h... yes
checking for sys/sysctl.h... no
checking for sys/syssgi.h... no
checking for sys/systemcfg.h... no
checking for sys/time.h... yes
checking for sys/times.h... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
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 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... 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... yes
checking for main 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 clock... yes
checking for clock_gettime... no
checking for cputime... no
checking for getpagesize... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for localeconv... yes
checking for memset... yes
checking for mmap... yes
checking for mprotect... yes
checking for obstack_vprintf... no
checking for popen... yes
checking for processor_info... 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 strnlen... no
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 suitable m4... m4
checking if m4wrap produces spurious output... no
checking how to switch to text section... .text
checking how to switch to data section... .data
checking what assembly label suffix to use... :
checking how to export a symbol... .globl
checking if globals are prefixed by underscore... no
checking how to switch to read-only data section... 	.section	".rodata"
checking if the export directive needs an attribute...
checking for assembler .type directive... .type	$1,#$2
checking for assembler .size directive... .size	$1,$2
checking what prefix to use for a local label... .L
checking how to define a 32-bit word... .long
checking if .align assembly directive is logarithmic... no
checking for stack_t... yes
checking for readline in -lreadline... 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
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 demos/expr/expr-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 mpfr/Makefile
config.status: creating mpfr/tests/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: config.h is unchanged
config.status: linking ./mpn/sparc32/udiv_fp.asm to mpn/udiv_fp.asm
config.status: linking ./mpn/generic/add.c to mpn/add.c
config.status: linking ./mpn/generic/add_1.c to mpn/add_1.c
config.status: linking ./mpn/sparc32/v9/add_n.asm to mpn/add_n.asm
config.status: linking ./mpn/generic/sub.c to mpn/sub.c
config.status: linking ./mpn/generic/sub_1.c to mpn/sub_1.c
config.status: linking ./mpn/sparc32/v9/sub_n.asm to mpn/sub_n.asm
config.status: linking ./mpn/sparc32/v9/mul_1.asm to mpn/mul_1.asm
config.status: linking ./mpn/sparc32/v9/addmul_1.asm to mpn/addmul_1.asm
config.status: linking ./mpn/sparc32/v9/submul_1.asm to mpn/submul_1.asm
config.status: linking ./mpn/sparc32/lshift.asm to mpn/lshift.asm
config.status: linking ./mpn/sparc32/rshift.asm to mpn/rshift.asm
config.status: linking ./mpn/generic/dive_1.c to mpn/dive_1.c
config.status: linking ./mpn/generic/diveby3.c to mpn/diveby3.c
config.status: linking ./mpn/generic/divis.c to mpn/divis.c
config.status: linking ./mpn/generic/divrem.c to mpn/divrem.c
config.status: linking ./mpn/generic/divrem_1.c to mpn/divrem_1.c
config.status: linking ./mpn/generic/divrem_2.c to mpn/divrem_2.c
config.status: linking ./mpn/generic/fib2_ui.c to mpn/fib2_ui.c
config.status: linking ./mpn/generic/mod_1.c to mpn/mod_1.c
config.status: linking ./mpn/generic/mod_34lsub1.c to mpn/mod_34lsub1.c
config.status: linking ./mpn/generic/mode1o.c to mpn/mode1o.c
config.status: linking ./mpn/generic/pre_divrem_1.c to mpn/pre_divrem_1.c
config.status: linking ./mpn/generic/pre_mod_1.c to mpn/pre_mod_1.c
config.status: linking ./mpn/generic/dump.c to mpn/dump.c
config.status: linking ./mpn/generic/mul.c to mpn/mul.c
config.status: linking ./mpn/generic/mul_fft.c to mpn/mul_fft.c
config.status: linking ./mpn/generic/mul_n.c to mpn/mul_n.c
config.status: linking ./mpn/generic/mul_basecase.c to mpn/mul_basecase.c
config.status: linking ./mpn/generic/sqr_basecase.c to mpn/sqr_basecase.c
config.status: linking ./mpn/generic/random.c to mpn/random.c
config.status: linking ./mpn/generic/random2.c to mpn/random2.c
config.status: linking ./mpn/generic/pow_1.c to mpn/pow_1.c
config.status: linking ./mpn/generic/rootrem.c to mpn/rootrem.c
config.status: linking ./mpn/generic/sqrtrem.c to mpn/sqrtrem.c
config.status: linking ./mpn/generic/get_str.c to mpn/get_str.c
config.status: linking ./mpn/generic/set_str.c to mpn/set_str.c
config.status: linking ./mpn/generic/scan0.c to mpn/scan0.c
config.status: linking ./mpn/generic/scan1.c to mpn/scan1.c
config.status: linking ./mpn/generic/popcount.c to mpn/popcount.c
config.status: linking ./mpn/generic/hamdist.c to mpn/hamdist.c
config.status: linking ./mpn/generic/cmp.c to mpn/cmp.c
config.status: linking ./mpn/generic/perfsqr.c to mpn/perfsqr.c
config.status: linking ./mpn/generic/bdivmod.c to mpn/bdivmod.c
config.status: linking ./mpn/generic/gcd_1.c to mpn/gcd_1.c
config.status: linking ./mpn/generic/gcd.c to mpn/gcd.c
config.status: linking ./mpn/generic/gcdext.c to mpn/gcdext.c
config.status: linking ./mpn/generic/tdiv_qr.c to mpn/tdiv_qr.c
config.status: linking ./mpn/generic/dc_divrem_n.c to mpn/dc_divrem_n.c
config.status: linking ./mpn/generic/sb_divrem_mn.c to mpn/sb_divrem_mn.c
config.status: linking ./mpn/generic/jacbase.c to mpn/jacbase.c
config.status: linking ./mpn/sparc32/v9/sqr_diagonal.asm to 
mpn/sqr_diagonal.asm
config.status: linking ./mpn/sparc32/v9/gmp-mparam.h to gmp-mparam.h

make

make  all-recursive
Making all in tests
Making all in .
Making all in devel
Making all in mpn
Making all in mpz
Making all in mpq
Making all in mpf
Making all in rand
Making all in misc
Making all in cxx
Making all in mpbsd
Making all in mpn
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  
-D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo mp_bases | sed 's/_$//'`    -g 
-O2 -Wa,-xarch=v8plus -mcpu=ultrasparc -c -o mp_bases.lo `test -f mp_bases.c 
|| echo './'`mp_bases.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. 
-DOPERATION_mp_bases -g -O2 -Wa,-xarch=v8plus -mcpu=ultrasparc -c mp_bases.c 
  -fPIC -DPIC -o .libs/mp_bases.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. 
-DOPERATION_mp_bases -g -O2 -Wa,-xarch=v8plus -mcpu=ultrasparc -c mp_bases.c 
-o mp_bases.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" gcc -c 
-DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo 
udiv_fp | sed 's/_$//'`     -g -O2 -Wa,-xarch=v8plus -mcpu=ultrasparc `test 
-f udiv_fp.asm || echo './'`udiv_fp.asm
../mpn/m4-ccas --m4=m4 gcc -c -DHAVE_CONFIG_H -I. -I. -I.. 
-D__GMP_WITHIN_GMP -I.. -DOPERATION_udiv_fp -g -O2 -Wa,-xarch=v8plus 
-mcpu=ultrasparc udiv_fp.asm  -fPIC -DPIC -o .libs/udiv_fp.o
*** Error code 1
*** Error code 1
*** Error code 1

Does anybody know any configure-settings to work around this?

Regards

Oscar Axmon

_________________________________________________________________
Chatta med vänner på nätet, pröva MSN Messenger http://messenger.msn.se



More information about the gmp-discuss mailing list