Problem in Making GMP 4.3.2

John Dennis johndennis40 at live.co.uk
Tue Feb 9 15:49:45 CET 2010


Thanks for your response,

When I tried to make using GMP-5.0.1,

 

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/bash ../libtool --tag=CC    --mode=compile /opt/software/SUNWspro/bin/cc -xc99=all -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo fib_table | sed 's/_$//'`   -I/usr/sfw/include -I/usr/local/include  -g -fast -c -o fib_table.lo fib_table.c
libtool: compile:  /opt/software/SUNWspro/bin/cc -xc99=all -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_fib_table -I/usr/sfw/include -I/usr/local/include -g -fast -c fib_table.c  -KPIC -DPIC -o .libs/fib_table.o
cc: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=sparcvis2 which generates code that does not run on pre UltraSPARC III processors
"../gmp-impl.h", line 3358: warning:  attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3358: warning: attribute parameter "QI" is undefined
"../gmp-impl.h", line 3359: warning:  attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3359: warning: attribute parameter "SI" is undefined
"../gmp-impl.h", line 3360: warning:  attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3360: warning: attribute parameter "SI" is undefined
"../gmp-impl.h", line 3361: warning:  attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3361: warning: attribute parameter "DI" is undefined
"../gmp-impl.h", line 3362: warning:  attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3362: warning: attribute parameter "DI" is undefined
cc: Fatal error in /opt/software/SUNWspro/prod/bin/cg : Segmentation Fault
*** Error code 1
make: Fatal error: Command failed for target `fib_table.lo'
Current working directory /home/network/gmp-5.0.1/mpn
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='tests mpn mpz mpq mpf printf scanf cxx mpbsd demos tune doc'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/network/gmp-5.0.1
*** Error code 1
make: Fatal error: Command failed for target `all'

Can you help on this.

Thanks


 
> Date: Sat, 6 Feb 2010 19:19:06 +0100
> From: marc.glisse at inria.fr
> To: johndennis40 at live.co.uk
> CC: gmp-discuss at gmplib.org
> Subject: Re: Problem in Making GMP 4.3.2
> 
> On Mon, 1 Feb 2010, John Dennis wrote:
> 
> > On Solaris 10 with SUn Studio 12 , getting following error
> >
> > ld: fatal: symbol `__gmpz_abs' is multiply-defined:
> > (file .libs/assert.o type=FUNC; file mpz/.libs/abs.o type=FUNC);
> 
> The issue is that gmp-h.in contains "extern inline" instead of "inline" 
> for sunpro. gmp-5.0.1 is fixed. The gmp-4.3 branch is not.
> 
> Look through the archives of the gmp mailing lists if you want more 
> details.
> 
> -- 
> Marc Glisse
 		 	   		  
_________________________________________________________________
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/


More information about the gmp-discuss mailing list