gmp not working – libgmp.so could not read symbols: File in wrong format

November 20th, 2012

Home Forums Troubleshooting gmp not working – libgmp.so could not read symbols: File in wrong format

This topic contains 0 replies, has 1 voice, and was last updated by  greg090 1 year, 11 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #352

    greg090
    Member

    I am compiling openbricks with uClibc for an igepv2 board and it is failing when building GMP-5.0.5 below is the log i get;

    make[3]: Nothing to be done for `all’.
    make[3]: Leaving directory `/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target/mpbsd’
    Making all in tune
    make[3]: Entering directory `/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target/tune’
    make[3]: Nothing to be done for `all’.
    make[3]: Leaving directory `/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target/tune’
    make[3]: Entering directory `/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target’
    /bin/sh ./libtool –tag=CXX   –mode=link g++     -version-info 6:5:2 -L/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/toolchain/armv7-openbricks-linux-uclibceabi/sysroot/lib -L/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/toolchain/armv7-openbricks-linux-uclibceabi/sysroot/usr/lib -L/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/toolchain/armv7-openbricks-linux-uclibceabi/sysroot/usr/local/lib  -o libgmpxx.la -rpath /usr/lib dummy.lo cxx/isfuns.lo cxx/ismpf.lo cxx/ismpq.lo cxx/ismpz.lo cxx/ismpznw.lo cxx/osdoprnti.lo cxx/osfuns.lo cxx/osmpf.lo cxx/osmpq.lo cxx/osmpz.lo libgmp.la
    libtool: link: rm -fr  .libs/libgmpxx.so.4.2.5
    libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../crti.o /usr/lib/gcc/i686-redhat-linux/4.5.1/crtbeginS.o  .libs/dummy.o cxx/.libs/isfuns.o cxx/.libs/ismpf.o cxx/.libs/ismpq.o cxx/.libs/ismpz.o cxx/.libs/ismpznw.o cxx/.libs/osdoprnti.o cxx/.libs/osfuns.o cxx/.libs/osmpf.o cxx/.libs/osmpq.o cxx/.libs/osmpz.o   -Wl,-rpath -Wl,/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target/.libs -L/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/toolchain/armv7-openbricks-linux-uclibceabi/sysroot/lib -L/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/toolchain/armv7-openbricks-linux-uclibceabi/sysroot/usr/lib -L/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/toolchain/armv7-openbricks-linux-uclibceabi/sysroot/usr/local/lib ./.libs/libgmp.so -L/usr/lib/gcc/i686-redhat-linux/4.5.1 -L/usr/lib/gcc/i686-redhat-linux/4.5.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-redhat-linux/4.5.1/crtendS.o /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../crtn.o    -Wl,-soname -Wl,libgmpxx.so.4 -o .libs/libgmpxx.so.4.2.5
    ./.libs/libgmp.so: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    make[3]: *** [libgmpxx.la] Error 1
    make[3]: Leaving directory `/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target’
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target’
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/media/hdd1/BPC/openbricks_2/openbricks/build/build.igepv2.uclibc/gmp-5.0.5/objdir-target’
    make: *** [rootfs] Error 2
    Can anybody help me solve this issue.

    I cant understand why it is in the wrong format.

     

    Thanks for your help.

     

    Greg

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.