Make Check Fails

Rajeev Kumar RKumar at intellidyn.com
Tue Nov 10 20:40:04 CET 2009


As per you suggestion 
#export LD_OPTIONS='-R/usr/local/lib'

But make check fails see below
#/usr/local/bin/make check   fails

Sorry to bother you again

Thanks
Rajeev

make[4]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
/usr/local/bin/make  check-TESTS
make[4]: Entering directory `/home/rajeev/gmp-4.3.1/tests'
ld.so.1: t-bswap: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-bswap
ld.so.1: t-constants: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-constants
ld.so.1: t-count_zeros: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-count_zeros
ld.so.1: t-gmpmax: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-gmpmax
ld.so.1: t-hightomask: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-hightomask
ld.so.1: t-modlinv: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-modlinv
ld.so.1: t-popc: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-popc
ld.so.1: t-parity: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-parity
ld.so.1: t-sub: fatal: /usr/local/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32
FAIL: t-sub
====================================
9 of 9 tests failed
Please report to gmp-bugs at gmplib.org
====================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/rajeev/gmp-4.3.1'
make: *** [check] Error 2
bash-2.03#  

-----Original Message-----
From: irf610 at gmail.com [mailto:irf610 at gmail.com] On Behalf Of Jonathan Blanchard
Sent: Monday, November 09, 2009 11:56 AM
To: Rajeev Kumar
Cc: gmp-bugs at gmplib.org
Subject: Re: Make Check Fails

On Mon, Nov 9, 2009 at 12:39 PM, Rajeev Kumar <RKumar at intellidyn.com> wrote:
> Hi:
> Installing  gmp-4.3.1 on Solaris 8 SPARC Getting the following errors 
> while running make check Was wondering if you could assist otherwise 
> will try to install older version Thanks
>
> Rajeev
>
> make[4]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
> /usr/local/bin/make  check-TESTS
> make[4]: Entering directory `/home/rajeev/gmp-4.3.1/tests'
> ld.so.1: t-bswap: fatal: libgcc_s.so.1: open failed: No such file or 
> directory
> FAIL: t-bswap
> ld.so.1: t-constants: fatal: libgcc_s.so.1: open failed: No such file 
> or directory
> FAIL: t-constants
> ld.so.1: t-count_zeros: fatal: libgcc_s.so.1: open failed: No such 
> file or directory
> FAIL: t-count_zeros
> ld.so.1: t-gmpmax: fatal: libgcc_s.so.1: open failed: No such file or 
> directory
> FAIL: t-gmpmax
> ld.so.1: t-hightomask: fatal: libgcc_s.so.1: open failed: No such file 
> or directory
> FAIL: t-hightomask
> ld.so.1: t-modlinv: fatal: libgcc_s.so.1: open failed: No such file or 
> directory
> FAIL: t-modlinv
> ld.so.1: t-popc: fatal: libgcc_s.so.1: open failed: No such file or 
> directory
> FAIL: t-popc
> ld.so.1: t-parity: fatal: libgcc_s.so.1: open failed: No such file or 
> directory
> FAIL: t-parity
> ld.so.1: t-sub: fatal: libgcc_s.so.1: open failed: No such file or 
> directory
> FAIL: t-sub
> ====================================
> 9 of 9 tests failed
> Please report to gmp-bugs at gmplib.org
> ====================================
> make[4]: *** [check-TESTS] Error 1
> make[4]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
> make[3]: *** [check-am] Error 2
> make[3]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
> make[2]: *** [check-recursive] Error 1
> make[2]: Leaving directory `/home/rajeev/gmp-4.3.1/tests'
> make[1]: *** [check-recursive] Error 1
> make[1]: Leaving directory `/home/rajeev/gmp-4.3.1'
> make: *** [check] Error 2
>
> _______________________________________________
> gmp-bugs mailing list
> gmp-bugs at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-bugs
>

Which version and distribution of GCC are you using? It looks like the gcc runtime libs cannot be found by your executable. To fix this problem you need to add a runtime search path to the created libraries.

The recommended way of doing this on Solaris is by defining LD_OPTIONS like this before building GMP :

LD_OPTIONS='-R/path/to/gcc/lib'

If you need more info please reply with the exact gcc you are using.

Jonathan Blanchard


More information about the gmp-bugs mailing list