LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   lfs : gcc make problem :error: libmpfr not found or uses a different ABI (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-gcc-make-problem-error-libmpfr-not-found-or-uses-a-different-abi-4175422188/)

k84834 08-15-2012 07:39 AM

lfs : gcc make problem :error: libmpfr not found or uses a different ABI
 
hi
I follow the lfs book instruction step by step and I now are in 5.5. GCC-4.6.2 - Pass 1 point .
I encounter with below error when running make command :


make[4]: Leaving directory `/mnt/lfs/sources/gcc-build/mpfr/src'
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/mpfr/src'
Making all in tests
make[3]: Entering directory `/mnt/lfs/sources/gcc-build/mpfr/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/mpfr/tests'
Making all in tune
make[3]: Entering directory `/mnt/lfs/sources/gcc-build/mpfr/tune'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/mpfr/tune'
make[3]: Entering directory `/mnt/lfs/sources/gcc-build/mpfr'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/mpfr'
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/mpfr'
mkdir -p -- ./mpc
Configuring in ./mpc
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gmp.h... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/fgrep
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 805306365
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for ld option to reload object files... -r
checking for i686-pc-linux-gnu-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (ld) supports shared libraries... /mnt/lfs/sources/gcc-4.6.2/mpc/configure: line 8413: : supported targets:.* elf: command not found
no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) no
checking complex.h usability... yes
checking complex.h presence... no
configure: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: complex.h: proceeding with the compiler's result
checking for complex.h... yes
checking locale.h usability... yes
checking locale.h presence... no
configure: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: locale.h: proceeding with the compiler's result
checking for locale.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... no
configure: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: limits.h: proceeding with the compiler's result
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... no
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for creal in -lm... yes
checking for __gmpz_init in -lgmp... yes
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI.
make[1]: *** [configure-mpc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
lfs@UBUNTU-32bit:/mnt/lfs/sources/gcc-build$

the result of running version-check.sh in my system is :

root@UBUNTU-32bit:~# bash version-check.sh
bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
version-check.sh: line 7: bison: command not found
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
version-check.sh: line 15: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-23-generic-pae (buildd@palmer) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012
version-check.sh: line 24: m4: command not found
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 30: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.1.0alpha
gcc compilation OK
root@UBUNTU-32bit:~#

how can I fix this error ?

spiky0011 08-15-2012 07:46 AM

Hi

As you are using ubuntu I see from your version-check that there are a issues
Code:

root@UBUNTU-32bit:~# bash version-check.sh
bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
version-check.sh: line 7: bison: command not found
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
version-check.sh: line 15: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-23-generic-pae (buildd@palmer) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012
version-check.sh: line 24: m4: command not found
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 30: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.1.0alpha
gcc compilation OK

The red issues need to be fixed 1st

k84834 08-18-2012 03:16 AM

for fixing these issues , must I install these packages : bison , gawk , m4 , makeinfo ?????

druuna 08-18-2012 03:24 AM

You seem to be using Ubuntu as host, have a look here: http://www.linuxquestions.org/questi...u-12-04-34902/ (the Preparing Ubuntu part).

spiky0011 08-18-2012 03:25 AM

Hi

Yes and also bin/sh should point to bash not dash

k84834 08-18-2012 03:39 AM

thank you druuna and spiky0011 :)


All times are GMT -5. The time now is 03:23 PM.