Unable to run "make check" on Solaris 10

View: New views
4 Messages — Rating Filter:   Alert me  

Unable to run "make check" on Solaris 10

by Tim Cook - PAE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My build environment is:
        Solaris 10 10/08, Intel platform
        GCC 3.4.3

./configure ABI=32

Despite multiple variations of setting LD_LIBRARY_PATH, LDFLAGS and
LD_OPTIONS to provide access to libgmp.so.3 (including putting the .libs
directory where libgmp has just been built in LD_LIBRARY_PATH), "make
check" consistently fails when attempting to run any of the test
binaries, like this:

make  check-TESTS
ld.so.1: t-bswap: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 25532 Killed                  ${dir}$tst

Now, one workaround did work, which was to set LD_LIBRARY_PATH_32 to the
appropriate directories.  This indicates that the build/test framework
is discarding or resetting LD_LIBRARY_PATH.

It is not appropriate to require users/testers of libgmp.so to set any
environment variable in order for things to work, so IMHO this is a bug.

Regards,
Tim


--
Tim Cook
Performance and Applications Engineering
Menlo Park, CA USA
<> Sun Microsystems

_______________________________________________
gmp-bugs mailing list
gmp-bugs@...
http://gmplib.org/mailman/listinfo/gmp-bugs

Re: Unable to run "make check" on Solaris 10

by Tim Cook - PAE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My apologies - I intended to add 2 logfiles, which are now attached:

- make.plain.1.out.gz
        Output of the "make" step
- make_check.plain.1.out
        Output of the "make check" step

Regards,
Tim

Tim Cook - PAE wrote:

> My build environment is:
>     Solaris 10 10/08, Intel platform
>     GCC 3.4.3
>
> ./configure ABI=32
>
> Despite multiple variations of setting LD_LIBRARY_PATH, LDFLAGS and
> LD_OPTIONS to provide access to libgmp.so.3 (including putting the .libs
> directory where libgmp has just been built in LD_LIBRARY_PATH), "make
> check" consistently fails when attempting to run any of the test
> binaries, like this:
>
> make  check-TESTS
> ld.so.1: t-bswap: fatal: libgmp.so.3: open failed: No such file or
> directory
> bash: line 4: 25532 Killed                  ${dir}$tst
>
> Now, one workaround did work, which was to set LD_LIBRARY_PATH_32 to the
> appropriate directories.  This indicates that the build/test framework
> is discarding or resetting LD_LIBRARY_PATH.
>
> It is not appropriate to require users/testers of libgmp.so to set any
> environment variable in order for things to work, so IMHO this is a bug.
>
> Regards,
> Tim
>
>


lrwxrwxrwx   1 tc35445  staff         15 Mar  8 11:48 /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so.3 -> libgmp.so.3.4.4
--- Running "make check" in build.i386
make  check-recursive
Making check in tests
Making check in .
make  libtests.la t-bswap t-constants  t-count_zeros t-gmpmax t-hightomask  t-modlinv t-popc t-parity  t-sub
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o memory.lo memory.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c memory.c  -fPIC -DPIC -o .libs/memory.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c memory.c -o memory.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o misc.lo misc.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c misc.c  -fPIC -DPIC -o .libs/misc.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c misc.c -o misc.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o refmpf.lo refmpf.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpf.c  -fPIC -DPIC -o .libs/refmpf.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpf.c -o refmpf.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o refmpn.lo refmpn.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpn.c  -fPIC -DPIC -o .libs/refmpn.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpn.c -o refmpn.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o refmpq.lo refmpq.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpq.c  -fPIC -DPIC -o .libs/refmpq.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpq.c -o refmpq.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o refmpz.lo refmpz.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpz.c  -fPIC -DPIC -o .libs/refmpz.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c refmpz.c -o refmpz.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o spinner.lo spinner.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c spinner.c  -fPIC -DPIC -o .libs/spinner.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c spinner.c -o spinner.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o trace.lo trace.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c trace.c  -fPIC -DPIC -o .libs/trace.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c trace.c -o trace.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8  `test -f 'x86call.asm' || echo './'`x86call.asm
 ../mpn/m4-ccas --m4=m4 gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 x86call.asm  -fPIC -DPIC -o .libs/x86call.o
m4  -DHAVE_CONFIG_H -DPIC x86call.asm >tmp-x86call.s
 gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 tmp-x86call.s -fPIC -DPIC -o .libs/x86call.o
 ../mpn/m4-ccas --m4=m4 gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 x86call.asm -o x86call.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c -o x86check.lo x86check.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c x86check.c  -fPIC -DPIC -o .libs/x86check.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c x86check.c -o x86check.o >/dev/null 2>&1
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o libtests.la   memory.lo misc.lo refmpf.lo refmpn.lo  refmpq.lo refmpz.lo spinner.lo trace.lo x86call.lo x86check.lo ../libgmp.la
ar cq .libs/libtests.a .libs/memory.o .libs/misc.o .libs/refmpf.o .libs/refmpn.o .libs/refmpq.o .libs/refmpz.o .libs/spinner.o .libs/trace.o .libs/x86call.o .libs/x86check.o
ranlib .libs/libtests.a
creating libtests.la
(cd .libs && rm -f libtests.la && ln -s ../libtests.la libtests.la)
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-bswap.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-bswap  t-bswap.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-bswap t-bswap.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-bswap
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-constants.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-constants  t-constants.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-constants t-constants.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-constants
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-count_zeros.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-count_zeros  t-count_zeros.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-count_zeros t-count_zeros.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-count_zeros
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-gmpmax.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-gmpmax  t-gmpmax.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-gmpmax t-gmpmax.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-gmpmax
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-hightomask.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-hightomask  t-hightomask.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-hightomask t-hightomask.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-hightomask
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-modlinv.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-modlinv  t-modlinv.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-modlinv t-modlinv.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-modlinv
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-popc.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-popc  t-popc.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-popc t-popc.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-popc
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-parity.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-parity  t-parity.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-parity t-parity.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-parity
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..     -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -c t-sub.c
/bin/bash ../libtool --mode=link gcc  -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8    -o t-sub  t-sub.o libtests.la ../libgmp.la
gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o .libs/t-sub t-sub.o  ./.libs/libtests.a /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so ../.libs/libgmp.so  -R/usr/local/lib
ld: warning: file ../.libs/libgmp.so: linked to /export/build/gmp-4.2.4/build.i386/.libs/libgmp.so: attempted multiple inclusion of file
creating t-sub
make  check-TESTS
ld.so.1: t-bswap: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12825 Killed                  ${dir}$tst
FAIL: t-bswap
ld.so.1: t-constants: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12845 Killed                  ${dir}$tst
FAIL: t-constants
ld.so.1: t-count_zeros: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12865 Killed                  ${dir}$tst
FAIL: t-count_zeros
ld.so.1: t-gmpmax: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12885 Killed                  ${dir}$tst
FAIL: t-gmpmax
ld.so.1: t-hightomask: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12905 Killed                  ${dir}$tst
FAIL: t-hightomask
ld.so.1: t-modlinv: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12925 Killed                  ${dir}$tst
FAIL: t-modlinv
ld.so.1: t-popc: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12945 Killed                  ${dir}$tst
FAIL: t-popc
ld.so.1: t-parity: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12965 Killed                  ${dir}$tst
FAIL: t-parity
ld.so.1: t-sub: fatal: libgmp.so.3: open failed: No such file or directory
bash: line 4: 12985 Killed                  ${dir}$tst
FAIL: t-sub
==================================
9 of 9 tests failed
Please report to gmp-bugs@...
==================================
*** Error code 1
The following command caused the error:
failed=0; all=0; xfail=0; xpass=0; skip=0; \
srcdir=.; export srcdir; \
list='t-bswap t-constants  t-count_zeros t-gmpmax t-hightomask  t-modlinv t-popc t-parity  t-sub'; \
if test -n "$list"; then \
  for tst in $list; do \
    if test -f ./$tst; then dir=./; \
    elif test -f $tst; then dir=; \
    else dir="./"; fi; \
    if  ${dir}$tst; then \
      all=`expr $all + 1`; \
      case "  " in \
      *" $tst "*) \
        xpass=`expr $xpass + 1`; \
        failed=`expr $failed + 1`; \
        echo "XPASS: $tst"; \
      ;; \
      *) \
        echo "PASS: $tst"; \
      ;; \
      esac; \
    elif test $? -ne 77; then \
      all=`expr $all + 1`; \
      case "  " in \
      *" $tst "*) \
        xfail=`expr $xfail + 1`; \
        echo "XFAIL: $tst"; \
      ;; \
      *) \
        failed=`expr $failed + 1`; \
        echo "FAIL: $tst"; \
      ;; \
      esac; \
    else \
      skip=`expr $skip + 1`; \
      echo "SKIP: $tst"; \
    fi; \
  done; \
  if test "$failed" -eq 0; then \
    if test "$xfail" -eq 0; then \
      banner="All $all tests passed"; \
    else \
      banner="All $all tests behaved as expected ($xfail expected failures)"; \
    fi; \
  else \
    if test "$xpass" -eq 0; then \
      banner="$failed of $all tests failed"; \
    else \
      banner="$failed of $all tests did not behave as expected ($xpass unexpected passes)"; \
    fi; \
  fi; \
  dashes="$banner"; \
  skipped=""; \
  if test "$skip" -ne 0; then \
    skipped="($skip tests were not run)"; \
    test `echo "$skipped" | wc -c` -gt `echo "$banner" | wc -c` && \
      dashes="$skipped"; \
  fi; \
  report=""; \
  if test "$failed" -ne 0 && test -n "gmp-bugs@..."; then \
    report="Please report to gmp-bugs@..."; \
    test `echo "$report" | wc -c` -gt `echo "$banner" | wc -c` && \
      dashes="$report"; \
  fi; \
  dashes=`echo "$dashes" | sed s/./=/g`; \
  echo "$dashes"; \
  echo "$banner"; \
  test -n "$skipped" && echo "$skipped"; \
  test -n "$report" && echo "$report"; \
  echo "$dashes"; \
  test "$failed" -eq 0; \
else :; fi
make: Fatal error: Command failed for target `check-TESTS'
Current working directory /export/build/gmp-4.2.4/build.i386/tests
*** Error code 1
make: Fatal error: Command failed for target `check-am'
Current working directory /export/build/gmp-4.2.4/build.i386/tests
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo check-recursive | sed s/-recursive//`; \
list='. devel mpn mpz mpq mpf rand misc cxx mpbsd'; 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 `check-recursive'
Current working directory /export/build/gmp-4.2.4/build.i386/tests
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo check-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; \
  (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 `check-recursive'
Current working directory /export/build/gmp-4.2.4/build.i386
*** Error code 1
make: Fatal error: Command failed for target `check'
--- Return status = 1

_______________________________________________
gmp-bugs mailing list
gmp-bugs@...
http://gmplib.org/mailman/listinfo/gmp-bugs

make.plain.1.out.gz (22K) Download Attachment

Parent Message unknown Re: Unable to run "make check" on Solaris 10

by Dennis Clarke-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> My apologies - I intended to add 2 logfiles, which are now attached:
>
> - make.plain.1.out.gz
> Output of the "make" step
> - make_check.plain.1.out
> Output of the "make check" step

Tim, I have been working on older legacy systems because, as you know,
Blastwave supports people still on Solaris 8 and even sun4m in some really
edge cases. I was able to get libgmp to build and pass all tests on
Solaris 8 with Sun Studio 8 on sun4m.

The exact same code with Studio 11 on Solaris 8 UltraSparc will not
compile with the same environment variables.  Studio 12 is no better.

bizarre but true.

Not sure how you managed to not resolve the location of libgmp however,
what does elfdump foo | grep RPATH say ?  What I have, and this is correct
for the Blastwave world, is this :
$ elfdump lib/sparcv8/libgmp.so.3.4.4 | /usr/xpg4/bin/grep -E "RPATH|RUNPATH"
       [3]  RUNPATH          0x60ea          
/opt/csw/lib/$ISALIST:/opt/csw/lib
       [4]  RPATH            0x60ea          
/opt/csw/lib/$ISALIST:/opt/csw/lib

However the C++ compiler mangled my $ISALIST :

$ elfdump lib/sparcv8/libgmpxx.so.4.0.4 | /usr/xpg4/bin/grep -E
"RPATH|RUNPATH"
       [5]  RUNPATH          0x97b            
/opt/csw/lib:/opt/csw/lib/SALIST:/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib/stlport4:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib
       [6]  RPATH            0x97b            
/opt/csw/lib:/opt/csw/lib/SALIST:/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib/stlport4:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib

Strangely my $ISALIST was mangled. This looks to be due to a compiler bug
and when I look in the output lib sure enough I see that my RPATH:RUNPATH
has been mangled by the compiler some how.

Starting at offset 0x000100d :

000100d  53  55  4e
         S   U   N
0001010  57  70  72  69  76  61  74  65  5f  31  2e  31  00  6c  69  62
         W   p   r   i   v   a   t   e   _   1   .   1  \0   l   i   b
0001020  67  6d  70  2e  73  6f  2e  33  00  6c  69  62  67  6d  70  78
         g   m   p   .   s   o   .   3  \0   l   i   b   g   m   p   x
0001030  78  2e  73  6f  2e  34  00  2f  6f  70  74  2f  63  73  77  2f
         x   .   s   o   .   4  \0   /   o   p   t   /   c   s   w   /
0001040  6c  69  62  3a  2f  6f  70  74  2f  63  73  77  2f  6c  69  62
         l   i   b   :   /   o   p   t   /   c   s   w   /   l   i   b
0001050  2f  53  41  4c  49  53  54  3a  2f  6f  70  74  2f  53  55  4e
         /   S   A   L   I   S   T   :   /   o   p   t   /   S   U   N
0001060  57  73  70  72  6f  2f  6c  69  62  2f  72  77  37  3a  2f  6f
         W   s   p   r   o   /   l   i   b   /   r   w   7   :   /   o
0001070  70  74  2f  53  55  4e  57  73  70  72  6f  2f  6c  69  62  2f
         p   t   /   S   U   N   W   s   p   r   o   /   l   i   b   /
0001080  73  74  6c  70  6f  72  74  34  3a  2f  6f  70  74  2f  53  55
         s   t   l   p   o   r   t   4   :   /   o   p   t   /   S   U
0001090  4e  57  73  70  72  6f  2f  6c  69  62  3a  2f  75  73  72  2f
         N   W   s   p   r   o   /   l   i   b   :   /   u   s   r   /
00010a0  63  63  73  2f  6c  69  62  3a  2f  75  73  72  2f  6c  69  62
         c   c   s   /   l   i   b   :   /   u   s   r   /   l   i   b
00010b0  00

I have been fighting with both compilers and libgmp for at least a week
now and it is often unclear if I am seeing a bug in the gmp code or in the
Studio compilers.

How are you compiling libgmp? With Studio 12? Are you using the STLport
implementation of the standard library?

Dennis Clarke
http://www.blastwave.org/


_______________________________________________
gmp-bugs mailing list
gmp-bugs@...
http://gmplib.org/mailman/listinfo/gmp-bugs

Re: Unable to run "make check" on Solaris 10

by Tim Cook - PAE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dennis,

Well, I actually am aiming for including $ORIGIN in the RPATH, so that
the library I build will first look in the same directory for any
dependencies.

In order to do this, I set LD_OPTIONS for the make step, for example:

     export LD_OPTIONS='-R $ORIGIN:/usr/sfw/lib'

I do not have the patience or knowledge to get this value (including the
unexpanded dollar sign) through all the autoconf stuff, but fortunately
LD_OPTIONS is neither seen or (re)set by any of the autoconf, configure
or make steps.  It is just picked up by ld.

Now, if I want to run the "make check" step, I revert to not having
LD_OPTIONS set, but then I found the bare vanilla "configure; make; make
check" did not do enough to help the test executable find libgmp.so
within the build tree.

Here is what I get for one of the test executables:

     potts-cl ) pwd
     /export/build/gmp-4.2.4/build.i386/tests/mpq/.libs
     potts-cl ) elfdump -d t-cmp | grep PATH
            [4]  RUNPATH           0x8c2               /usr/local/lib
            [5]  RPATH             0x8c2               /usr/local/lib
     potts-cl ) ldd t-cmp
             libgmp.so.3 =>   (file not found)
             libc.so.1 =>     /lib/libc.so.1
             libm.so.2 =>     /lib/libm.so.2

Regards,
Tim

Dennis Clarke wrote:

>> My apologies - I intended to add 2 logfiles, which are now attached:
>>
>> - make.plain.1.out.gz
>> Output of the "make" step
>> - make_check.plain.1.out
>> Output of the "make check" step
>
> Tim, I have been working on older legacy systems because, as you know,
> Blastwave supports people still on Solaris 8 and even sun4m in some really
> edge cases. I was able to get libgmp to build and pass all tests on
> Solaris 8 with Sun Studio 8 on sun4m.
>
> The exact same code with Studio 11 on Solaris 8 UltraSparc will not
> compile with the same environment variables.  Studio 12 is no better.
>
> bizarre but true.
>
> Not sure how you managed to not resolve the location of libgmp however,
> what does elfdump foo | grep RPATH say ?  What I have, and this is correct
> for the Blastwave world, is this :
> $ elfdump lib/sparcv8/libgmp.so.3.4.4 | /usr/xpg4/bin/grep -E "RPATH|RUNPATH"
>        [3]  RUNPATH          0x60ea          
> /opt/csw/lib/$ISALIST:/opt/csw/lib
>        [4]  RPATH            0x60ea          
> /opt/csw/lib/$ISALIST:/opt/csw/lib
>
> However the C++ compiler mangled my $ISALIST :
>
> $ elfdump lib/sparcv8/libgmpxx.so.4.0.4 | /usr/xpg4/bin/grep -E
> "RPATH|RUNPATH"
>        [5]  RUNPATH          0x97b            
> /opt/csw/lib:/opt/csw/lib/SALIST:/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib/stlport4:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib
>        [6]  RPATH            0x97b            
> /opt/csw/lib:/opt/csw/lib/SALIST:/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib/stlport4:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib
>
> Strangely my $ISALIST was mangled. This looks to be due to a compiler bug
> and when I look in the output lib sure enough I see that my RPATH:RUNPATH
> has been mangled by the compiler some how.
>
> Starting at offset 0x000100d :
>
> 000100d  53  55  4e
>          S   U   N
> 0001010  57  70  72  69  76  61  74  65  5f  31  2e  31  00  6c  69  62
>          W   p   r   i   v   a   t   e   _   1   .   1  \0   l   i   b
> 0001020  67  6d  70  2e  73  6f  2e  33  00  6c  69  62  67  6d  70  78
>          g   m   p   .   s   o   .   3  \0   l   i   b   g   m   p   x
> 0001030  78  2e  73  6f  2e  34  00  2f  6f  70  74  2f  63  73  77  2f
>          x   .   s   o   .   4  \0   /   o   p   t   /   c   s   w   /
> 0001040  6c  69  62  3a  2f  6f  70  74  2f  63  73  77  2f  6c  69  62
>          l   i   b   :   /   o   p   t   /   c   s   w   /   l   i   b
> 0001050  2f  53  41  4c  49  53  54  3a  2f  6f  70  74  2f  53  55  4e
>          /   S   A   L   I   S   T   :   /   o   p   t   /   S   U   N
> 0001060  57  73  70  72  6f  2f  6c  69  62  2f  72  77  37  3a  2f  6f
>          W   s   p   r   o   /   l   i   b   /   r   w   7   :   /   o
> 0001070  70  74  2f  53  55  4e  57  73  70  72  6f  2f  6c  69  62  2f
>          p   t   /   S   U   N   W   s   p   r   o   /   l   i   b   /
> 0001080  73  74  6c  70  6f  72  74  34  3a  2f  6f  70  74  2f  53  55
>          s   t   l   p   o   r   t   4   :   /   o   p   t   /   S   U
> 0001090  4e  57  73  70  72  6f  2f  6c  69  62  3a  2f  75  73  72  2f
>          N   W   s   p   r   o   /   l   i   b   :   /   u   s   r   /
> 00010a0  63  63  73  2f  6c  69  62  3a  2f  75  73  72  2f  6c  69  62
>          c   c   s   /   l   i   b   :   /   u   s   r   /   l   i   b
> 00010b0  00
>
> I have been fighting with both compilers and libgmp for at least a week
> now and it is often unclear if I am seeing a bug in the gmp code or in the
> Studio compilers.
>
> How are you compiling libgmp? With Studio 12? Are you using the STLport
> implementation of the standard library?
>
> Dennis Clarke
> http://www.blastwave.org/
>
>

--
Tim Cook
Performance and Applications Engineering
Menlo Park, CA USA
<> Sun Microsystems
Ph:     +1 650 257 4709
Ext: 69841
_______________________________________________
gmp-bugs mailing list
gmp-bugs@...
http://gmplib.org/mailman/listinfo/gmp-bugs