Compile errors on Solaris 10/SPARC

Ido Dubrawsky idubraws at siliconsec.com
Mon Nov 21 22:39:11 CET 2005


I'm trying to compile GMP 4.1.4 under Solaris 10 SPARC with the following 
configuration:

SunOS elrond 5.10 Generic sun4u sparc SUNW,Ultra-5_10
320MB memory
GCC : gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
9GB disk

I applied the patch mentioned here

http://gmplib.org/list-archives/gmp-bugs/2005-September/000237.html

in order to get it to compile under Solaris 10 and I'm using the following
configure command:

configure ABI=64

and that's it.  Everything appears to compile just fine until the very end when
I get the following errors as it tries to create the shared library 
.libs/libgmp.so.3.3.3.  I'd appreciate any help or suggestions as to how to get
the compilation to complete and succeed

The errors are :

ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/add_n.o: symbol <unknown>: offset 0xffffffff67e7186d is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/add_n.o: symbol <unknown>: offset 0xffffffff67e71873 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/add_n.o: symbol <unknown>: offset 0xffffffff67e71877 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/add_n.o: symbol <unknown>: offset 0xffffffff67e7187f is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/sub_n.o: symbol <unknown>: offset 0xffffffff67e71bcb is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/sub_n.o: symbol <unknown>: offset 0xffffffff67e71bd1 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/sub_n.o: symbol <unknown>: offset 0xffffffff67e71bd5 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/sub_n.o: symbol <unknown>: offset 0xffffffff67e71bdd is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/mul_1.o: symbol <unknown>: offset 0xffffffff67e71c29 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/mul_1.o: symbol <unknown>: offset 0xffffffff67e71c2f is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/mul_1.o: symbol <unknown>: offset 0xffffffff67e71c33 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/mul_1.o: symbol <unknown>: offset 0xffffffff67e71c3b is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/addmul_1.o: symbol <unknown>: offset 0xffffffff67e71c87 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/addmul_1.o: symbol <unknown>: offset 0xffffffff67e71c8d is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/addmul_1.o: symbol <unknown>: offset 0xffffffff67e71c91 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/addmul_1.o: symbol <unknown>: offset 0xffffffff67e71c99 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/submul_1.o: symbol <unknown>: offset 0xffffffff67e71cee is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/submul_1.o: symbol <unknown>: offset 0xffffffff67e71cf2 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/submul_1.o: symbol <unknown>: offset 0xffffffff67e71cfa is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/lshift.o: symbol <unknown>: offset 0xffffffff67e71d49 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/lshift.o: symbol <unknown>: offset 0xffffffff67e71d4f is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/lshift.o: symbol <unknown>: offset 0xffffffff67e71d53 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/lshift.o: symbol <unknown>: offset 0xffffffff67e71d5b is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/rshift.o: symbol <unknown>: offset 0xffffffff67e71dae is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/rshift.o: symbol <unknown>: offset 0xffffffff67e71db2 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/rshift.o: symbol <unknown>: offset 0xffffffff67e71dba is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/copyi.o: symbol <unknown>: offset 0xffffffff67e7dba1 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/copyi.o: symbol <unknown>: offset 0xffffffff67e7dba7 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/copyi.o: symbol <unknown>: offset 0xffffffff67e7dbab is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/copyi.o: symbol <unknown>: offset 0xffffffff67e7dbb3 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/copyd.o: symbol <unknown>: offset 0xffffffff67e7dbff is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/copyd.o: symbol <unknown>: offset 0xffffffff67e7dc05 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/copyd.o: symbol <unknown>: offset 0xffffffff67e7dc09 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/copyd.o: symbol <unknown>: offset 0xffffffff67e7dc11 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/sqr_diagonal.o: symbol <unknown>: offset 0xffffffff67e7dc5d is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/sqr_diagonal.o: symbol <unknown>: offset 0xffffffff67e7dc63 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/sqr_diagonal.o: symbol <unknown>: offset 0xffffffff67e7dc67 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/sqr_diagonal.o: symbol <unknown>: offset 0xffffffff67e7dc6f is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/add_n.o: symbol <unknown>: offset 0xffffffff67eaf276 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/sub_n.o: symbol <unknown>: offset 0xffffffff67eaf509 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/mul_1.o: symbol <unknown>: offset 0xffffffff67eaf5ce is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/addmul_1.o: symbol <unknown>: offset 0xffffffff67eaf7ba is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/submul_1.o: symbol <unknown>: offset 0xffffffff67eaf9bf is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/lshift.o: symbol <unknown>: offset 0xffffffff67eafa0e is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/copyd.o: symbol <unknown>: offset 0xffffffff67ec0905 is non-aligned
ld: fatal: relocation error: R_SPARC_64: file mpn/.libs/sqr_diagonal.o: symbol <unknown>: offset 0xffffffff67ec096c is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/add_n.o: symbol <unknown>: offset 0xffffffff67ed6336 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/sub_n.o: symbol <unknown>: offset 0xffffffff67ed63c6 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/mul_1.o: symbol <unknown>: offset 0xffffffff67ed63f6 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/addmul_1.o: symbol <unknown>: offset 0xffffffff67ed6426 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/submul_1.o: symbol <unknown>: offset 0xffffffff67ed6456 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/lshift.o: symbol <unknown>: offset 0xffffffff67ed6486 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/rshift.o: symbol <unknown>: offset 0xffffffff67ed64b6 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/copyi.o: symbol <unknown>: offset 0xffffffff67ed6c36 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/copyd.o: symbol <unknown>: offset 0xffffffff67ed6c66 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file mpn/.libs/sqr_diagonal.o: symbol <unknown>: offset 0xffffffff67ed6c96 is non-aligned
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libgmp.la'
Current working directory /export/home/idubraws/gmp-4.1.4
*** Error code 1
The following command caused the error:
set fnord ; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='tests mpn mpz mpq mpf printf scanf cxx mpbsd  demos tune'; 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; \
  (cd $subdir && make  $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
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 /export/home/idubraws/gmp-4.1.4
*** Error code 1
make: Fatal error: Command failed for target `all'

-- 
===============================================================================
Ido Dubrawsky, CISSP                    E-mail: idubraws at siliconsec.com
Network Security Architect		Web:	http://www.silicon-security.com
Silicon Security, Inc.
Silver Spring, MD. 20902
(301) 593-3609 (office)
(301) 593-3610 (fax)
===============================================================================


More information about the gmp-bugs mailing list