libmpfr error in GCC compilation (LFS7.2)
Hi I'm following LFS7.2 in that I'm facing error with 5.5.1 Installation of cross GCC module
I successfully compiled Binutilities, then I untared the GCC. In GCC folder I done the following steps tar -Jxf ../mpfr-3.1.1.tar.xz mv -v mpfr-3.1.1 mpfr tar -Jxf ../gmp-5.0.5.tar.xz mv -v gmp-5.0.5 gmp tar -zxf ../mpc-1.0.tar.gz mv -v mpc-1.0 mpc This for file in \ $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h) do cp -uv $file{,.orig} sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \ -e 's@/usr@/tools@g' $file.orig > $file echo ' #undef STANDARD_STARTFILE_PREFIX_1 #undef STANDARD_STARTFILE_PREFIX_2 #define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/" #define STANDARD_STARTFILE_PREFIX_2 ""' >> $file touch $file.orig done This sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure this mkdir -v ../gcc-build cd ../gcc-build and finally this ../gcc-4.7.1/configure \ --target=$LFS_TGT \ --prefix=/tools \ --with-sysroot=$LFS \ --with-newlib \ --without-headers \ --with-local-prefix=/tools \ --with-native-system-header-dir=/tools/include \ --disable-nls \ --disable-shared \ --disable-multilib \ --disable-decimal-float \ --disable-threads \ --disable-libmudflap \ --disable-libssp \ --disable-libgomp \ --disable-libquadmath \ --enable-languages=c \ --with-mpfr-include=$(pwd)/../gcc-4.7.1/mpfr/src \ --with-mpfr-lib=$(pwd)/mpfr/src/.libs Now the final step is to compile GCC by make command, at this point of time it got compiled for 10 mins and then it was showing an error message that checking for MPFR... no configure: error: libmpfr not found or uses a different ABI (including static vs shared). make[1]: *** [configure-mpc] Error 1 make[1]: Leaving directory `/mnt/test/sources/gcc-build' make: *** [all] Error 2 You can see the whole compilation part in this link http://pastebin.com/ahMmeTk8 please help me to resolve this error.. |
Hi
If you look in the gcc-4.7.1 dir you should have a dir mpfr gmp mpc ? |
The only times I've seen this error is when the host used isn't compliant.
Can you post the output of the version-check.sh script? Please put your output inside [code] ... [/code] tags it preserves all spacing. If you don't know how: LQ - BB Code List. |
Quote:
Thank yo for replying, Yes all the three dir are located in gcc-4.7.1. |
Quote:
Sure, my verson-check output is.. Code:
bash, version 4.1.5(1)-release |
Can you post the version check output as druuna ask for
|
Quote:
|
Hi
As normal druuna is right lol you have /bin/sh -> /bin/dash it should point to /bin/sh -> /bin/bash |
Quote:
Could you please help me how to change it. |
Code:
rm /bin/sh Code:
ln -s /bin/bash /bin/sh |
Quote:
Quote:
Be careful and precise, building an LFS based system and understanding how this is done is hard enough as-is if this is your first time and have (very?) limited linux experience. Tip for when you finish chapter 5: Do make a back-up at that point (the Caution). This way you don't have to start from scratch when something goes wrong in chapter 6. |
It might be a good idea if you started from the beginning again as well
|
Hello. First post on this forum. I've been trying to work this out myself but am confused about what is doing what. I'm having the same issue, only I don't see issue with the versions of the packages on my host. Figured I'd post here as a reply instead of creating another thread on the same thing.
I'm working from SVN-20121103 version of the book - think that's 7.2? Doing LFS on VMware on an HP laptop. I had started with the livecd but scrapped that and my host is now slackware 14. In section 5.5. GCC-4.7.2 - Pass 1. make errs out with this... Code:
libtool: install: warning: remember to run `libtool --finish /tools/libexec/gcc/i686-lfs-linux-gnu/4.7.2' Here is output of my version-check.sh Code:
root@lithium:~# ./version-check.sh Thanks - Jeff |
Hi
The 3 files gmp mpfr mpc should be in surce dir Untar gcc cd into gcc dir then run commands in book From with in gcc dir |
Probably should have mentioned - I've done that - all three directories are there (renamed to gmp, mpfr, mpc) and followed all instructions in the book. I've done this a few times - wiping everything clean beforehand. Still getting this error.
It seems that libmpfr.la is being moved at some point in the process: Code:
libtool: link: warning: library `/usr/lib/libmpfr.la' was moved. Actually, a little strange because I could have sworn I searched my whole box for "libgmp.la" and could not find it, but now: Code:
lfs:/mnt/lfs/sources$ find . -name \*.la |
All times are GMT -5. The time now is 09:34 PM. |