Solaris 10 issue installing libraries

Solaris 10 sparc - currently trying to install gpg, first trying to install the pre-requisite libraries. Facing errors installing some of the libraries, same error being faced with each.

The configure command passes successfully for each but when running make command errors such as below are experienced, this particular error was seen when running make for libgcrypt-1.5.0 but experience it with other libraries also.

Can anyone help or advise on what possible steps next to find and correct cause of the issue ?

I have attached the full output from the make command also.

libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libgcrypt.so.11 -o .libs/libgcrypt.so.11.7.0  .libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .libs/libgcrypt_la-module.o .libs/libgcrypt_la-fips.o .libs/libgcrypt_la-hmac256.o .libs/libgcrypt_la-ath.o  -Wl,-z -Wl,allextract ../cipher/.libs/libcipher.a ../random/.libs/librandom.a ../mpi/.libs/libmpi.a ../compat/.libs/libcompat.a -Wl,-z -Wl,defaultextract  -R/usr/local/lib -R/usr/local/lib -L/usr/local/lib /usr/local/lib/libgpg-error.so -lsocket -lc   
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-add1-asm.o): symbol <unknown>: offset 0xfe66b015 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-add1-asm.o): symbol <unknown>: offset 0xfe66b01b is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-add1-asm.o): symbol <unknown>: offset 0xfe66b01f is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-add1-asm.o): symbol <unknown>: offset 0xfe66b023 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-lshift-asm.o): symbol <unknown>: offset 0xfe66b533 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-lshift-asm.o): symbol <unknown>: offset 0xfe66b539 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-lshift-asm.o): symbol <unknown>: offset 0xfe66b53d is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-lshift-asm.o): symbol <unknown>: offset 0xfe66b541 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-rshift-asm.o): symbol <unknown>: offset 0xfe66b58e is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(udiv-asm.o): symbol <unknown>: offset 0xfe66b5e9 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(udiv-asm.o): symbol <unknown>: offset 0xfe66b5ef is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(udiv-asm.o): symbol <unknown>: offset 0xfe66b5f3 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(udiv-asm.o): symbol <unknown>: offset 0xfe66b5f7 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-add1-asm.o): symbol <unknown>: offset 0xfe6b54e5 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-lshift-asm.o): symbol <unknown>: offset 0xfe6b6505 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-rshift-asm.o): symbol <unknown>: offset 0xfe6b6576 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(udiv-asm.o): symbol <unknown>: offset 0xfe6b65dd is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-add1-asm.o): symbol <unknown>: offset 0xfe6c16de is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-lshift-asm.o): symbol <unknown>: offset 0xfe6c177e is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(mpih-rshift-asm.o): symbol <unknown>: offset 0xfe6c179e is non-aligned
ld: fatal: relocation error: R_SPARC_32: file ../mpi/.libs/libmpi.a(udiv-asm.o): symbol <unknown>: offset 0xfe6c17be is non-aligned
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libgcrypt.la'
Current working directory /var/spool/pkg/libgcrypt-1.5.0/src
*** 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='compat mpi cipher random src doc tests'; 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 /var/spool/pkg/libgcrypt-1.5.0
*** Error code 1
make: Fatal error: Command failed for target `all'


Hi,

I suspect that the issue here is that whilst you're using the GNU C compiler gcc , you're using the native Sun linker ld rather than GNU ld . If you make sure that the GNU linker is in your path before the native Solaris linker (or if you specifically point your Makefile or configure script at the GNU linker rather than the Sun one), that should hopefully solve the problem. That's my guess, anyway, based on the errors you're getting.