[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gmp-bugs
Subject:    Reporting a BUG, while cross compiling GMP-5.0.1
From:       jx8mw21 () hotmail ! com (JX8 MW)
Date:       2010-10-08 1:58:47
Message-ID: COL116-W15FB506020089872DD7F73FC500 () phx ! gbl
[Download RAW message or body]





Hi.

Sorry for bothering you.

I am cross compiling the gmp-5.01, I using the following commands. 


$ ./configure --build=pentium4-pc-linux-gnu --host=mips-linux-uclibc --enable-cxx
$ make
$ make install

After doing that I use the make check command, and I am getting the following errors. \
No matter this error I was able to cross compile my source code but once the \
executable binary are on my target device and try to run it, a message that i need \
the libgmpxx.so.4 appears, so I uploaded the libgmpxx.so.4 that were created by cross \
compiling the GMP-5.0.1 (on the folder /usr/local/lib), but a message appears that \
saids that libgmpxx.so.4' is not an ELF executable for MIPS. So bottom line I need \
the library libgmpxx.so.4 for MIPS, could you tell me if this library does not work \
for this error, and/or how can I solve this error?   



root at ubuntu:/opt/gmp-5.0.1# make check
make  check-recursive
make[1]: Entering directory `/opt/gmp-5.0.1'
Making check in tests
make[2]: Entering directory `/opt/gmp-5.0.1/tests'
Making check in .
make[3]: Entering directory `/opt/gmp-5.0.1/tests'
make  libtests.la t-bswap t-constants t-count_zeros t-gmpmax t-hightomask t-modlinv \
t-popc t-parity t-sub make[4]: Entering directory `/opt/gmp-5.0.1/tests'
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o \
                memory.lo memory.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c memory.c  -fPIC -DPIC -o .libs/memory.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c memory.c -o memory.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o misc.lo \
                misc.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c misc.c  -fPIC -DPIC -o .libs/misc.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c misc.c -o misc.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o \
                refmpf.lo refmpf.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpf.c  -fPIC -DPIC -o .libs/refmpf.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpf.c -o refmpf.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o \
                refmpn.lo refmpn.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpn.c  -fPIC -DPIC -o .libs/refmpn.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpn.c -o refmpn.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o \
                refmpq.lo refmpq.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpq.c  -fPIC -DPIC -o .libs/refmpq.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpq.c -o refmpq.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o \
                refmpz.lo refmpz.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpz.c  -fPIC -DPIC -o .libs/refmpz.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c refmpz.c -o refmpz.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o \
                spinner.lo spinner.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c spinner.c  -fPIC -DPIC -o .libs/spinner.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c spinner.c -o spinner.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c -o \
                trace.lo trace.c
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c trace.c  -fPIC -DPIC -o .libs/trace.o
libtool: compile:  mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -O2 \
                -pedantic -mabi=32 -c trace.c -o trace.o >/dev/null 2>&1
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
-pedantic -mabi=32   -o libtests.la  memory.lo misc.lo refmpf.lo refmpn.lo refmpq.lo \
                refmpz.lo spinner.lo trace.lo  ../libgmp.la 
libtool: link: mips-linux-uclibc-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 
libtool: link: mips-linux-uclibc-ranlib .libs/libtests.a
libtool: link: ( cd ".libs" && rm -f "libtests.la" && ln -s "../libtests.la" \
"libtests.la" ) mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    -O2 \
                -pedantic -mabi=32 -c t-bswap.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-bswap t-bswap.o libtests.la ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-bswap t-bswap.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so \
../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    \
                -O2 -pedantic -mabi=32 -c t-constants.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-constants t-constants.o libtests.la \
                ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-constants t-constants.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so \
../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    \
                -O2 -pedantic -mabi=32 -c t-count_zeros.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-count_zeros t-count_zeros.o libtests.la \
                ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-count_zeros t-count_zeros.o  ./.libs/libtests.a \
/opt/gmp-5.0.1/.libs/libgmp.so ../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 \
                -DHAVE_CONFIG_H -I. -I.. -I..    -O2 -pedantic -mabi=32 -c t-gmpmax.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-gmpmax t-gmpmax.o libtests.la ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-gmpmax t-gmpmax.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so \
../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    \
                -O2 -pedantic -mabi=32 -c t-hightomask.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-hightomask t-hightomask.o libtests.la \
                ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-hightomask t-hightomask.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so \
../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    \
                -O2 -pedantic -mabi=32 -c t-modlinv.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-modlinv t-modlinv.o libtests.la \
                ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-modlinv t-modlinv.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so \
../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    \
                -O2 -pedantic -mabi=32 -c t-popc.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-popc t-popc.o libtests.la ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-popc t-popc.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so \
../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    \
                -O2 -pedantic -mabi=32 -c t-parity.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-parity t-parity.o libtests.la ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o \
.libs/t-parity t-parity.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so \
../.libs/libgmp.so mips-linux-uclibc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I..    \
                -O2 -pedantic -mabi=32 -c t-sub.c
/bin/bash ../libtool --tag=CC   --mode=link mips-linux-uclibc-gcc -std=gnu99  -O2 \
                -pedantic -mabi=32   -o t-sub t-sub.o libtests.la ../libgmp.la 
libtool: link: mips-linux-uclibc-gcc -std=gnu99 -O2 -pedantic -mabi=32 -o .libs/t-sub \
t-sub.o  ./.libs/libtests.a /opt/gmp-5.0.1/.libs/libgmp.so ../.libs/libgmp.so \
make[4]: Leaving directory `/opt/gmp-5.0.1/tests' make  check-TESTS
make[4]: Entering directory `/opt/gmp-5.0.1/tests'
./t-bswap: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-bswap: cannot execute binary \
                file
./t-bswap: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-bswap: Success
FAIL: t-bswap
./t-constants: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-constants: cannot execute \
                binary file
./t-constants: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-constants: Success
FAIL: t-constants
./t-count_zeros: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-count_zeros: cannot \
                execute binary file
./t-count_zeros: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-count_zeros: Success
FAIL: t-count_zeros
./t-gmpmax: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-gmpmax: cannot execute binary \
                file
./t-gmpmax: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-gmpmax: Success
FAIL: t-gmpmax
./t-hightomask: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-hightomask: cannot execute \
                binary file
./t-hightomask: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-hightomask: Success
FAIL: t-hightomask
./t-modlinv: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-modlinv: cannot execute binary \
                file
./t-modlinv: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-modlinv: Success
FAIL: t-modlinv
./t-popc: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-popc: cannot execute binary file
./t-popc: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-popc: Success
FAIL: t-popc
./t-parity: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-parity: cannot execute binary \
                file
./t-parity: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-parity: Success
FAIL: t-parity
./t-sub: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-sub: cannot execute binary file
./t-sub: line 136: /opt/gmp-5.0.1/tests/.libs/lt-t-sub: Success
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 `/opt/gmp-5.0.1/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/opt/gmp-5.0.1/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/opt/gmp-5.0.1/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/opt/gmp-5.0.1'
make: *** [check] Error 2
root at ubuntu:/opt/gmp-5.0.1# 
 		 	   		  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic