[Clfs-support] 6.3.1. Installation of GMP make install error

Alonso Graterol alonso.graterol at gmail.com
Sun Jun 24 13:41:24 PDT 2012


Hello,

I'm building CLFS Version GIT-20120610-x86_64-Multilib on a AMD Athlon
2, using LFS LiveCD 6.3 r2160.

While constructing the temporary system the gmp-5.0.5 make command
gave no errors or warnings. Nevertheless issuing the make install gave
the following error

libtool: install: /usr/bin/install -c .libs/libgmp.lai /tools/lib64/libgmp.la
libtool: install: warning: relinking `libgmpxx.la'
libtool: install: (cd /mnt/clfs/sources/gmp-5.0.5; /bin/sh
/mnt/clfs/sources/gmp-5.0.5/libtool  --tag CXX --mode=relink
x86_64-unknown-linux-gnu-g++ -m64 -O2 -pedantic -m64 -mtune=k8
-march=k8 -version-info 6:5:2 -o libgmpxx.la -rpath /tools/lib64
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: relink: x86_64-unknown-linux-gnu-g++ -m64  -fPIC -DPIC
-shared -nostdlib
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/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,/tools/lib64 -Wl,-rpath
-Wl,/usr/lib/../lib64 -L/tools/lib64 -lgmp
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++
-L/lfs-livecd/packages/gcc/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/lfs-livecd/packages/gcc/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/lfs-livecd/packages/gcc/gcc-build/./gcc -lm -lc -lgcc_s
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/crtendS.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib64/crtn.o
-m64 -O2 -m64 -mtune=k8 -march=k8   -Wl,-soname -Wl,libgmpxx.so.4 -o
.libs/libgmpxx.so.4.2.5
/tools/lib64/libm.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
libtool: install: error: relink `libgmpxx.la' with the above command
before installing it
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/mnt/clfs/sources/gmp-5.0.5'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/mnt/clfs/sources/gmp-5.0.5'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/gmp-5.0.5'
make: *** [install] Error 2



Further, the issue of make check gave this error

make[4]: Entering directory `/mnt/clfs/sources/gmp-5.0.5/tests/cxx'
x86_64-unknown-linux-gnu-g++ -m64 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I../../tests  -fexceptions  -O2 -pedantic -m64 -mtune=k8 -march=k8 -c
-o t-assign.o t-assign.cc
/bin/sh ../../libtool --tag=CXX   --mode=link
x86_64-unknown-linux-gnu-g++ -m64  -O2 -pedantic -m64 -mtune=k8
-march=k8   -o t-assign t-assign.o -L../../.libs
../../tests/libtests.la ../../libgmpxx.la ../../libgmp.la
libtool: link: x86_64-unknown-linux-gnu-g++ -m64 -O2 -pedantic -m64
-mtune=k8 -march=k8 -o .libs/t-assign t-assign.o  -L../../.libs
../../tests/.libs/libtests.a ../../.libs/libgmpxx.so
-L/lfs-livecd/packages/gcc/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/lfs-livecd/packages/gcc/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/lfs-livecd/packages/gcc/gcc-build/./gcc
/mnt/clfs/sources/gmp-5.0.5/.libs/libgmp.so
/usr/lib/../lib64/libstdc++.so -L/usr/lib/../lib64 -L/lib/../lib64 -lm
-lc -lgcc_s ../../.libs/libgmp.so -Wl,-rpath -Wl,/tools/lib64
-Wl,-rpath -Wl,/usr/lib/../lib64
/mnt/clfs/sources/gmp-5.0.5/.libs/libgmp.so: undefined reference to
`__isoc99_fscanf at GLIBC_2.7'
/mnt/clfs/sources/gmp-5.0.5/.libs/libgmp.so: undefined reference to
`memcpy at GLIBC_2.14'
/mnt/clfs/sources/gmp-5.0.5/.libs/libgmp.so: undefined reference to
`__isoc99_sscanf at GLIBC_2.7'
collect2: ld returned 1 exit status
make[4]: *** [t-assign] Error 1
make[4]: Leaving directory `/mnt/clfs/sources/gmp-5.0.5/tests/cxx'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/mnt/clfs/sources/gmp-5.0.5/tests/cxx'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/mnt/clfs/sources/gmp-5.0.5/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/gmp-5.0.5'
make: *** [check] Error 2
clfs:/mnt/clfs/sources/gmp-5.0.5$

Google pointed to a 2007 thread related to binutils where a patch was
given but that is already considered in binutils-2.22.

I have built a couple of CLFS systems before but never hit something like this.

I appreciate any guidance to solve/circumvent the problem.

Thanks,


Alonso



More information about the Clfs-support mailing list