LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LFS 6.12. GCC-4.1.2 configure error, (https://www.linuxquestions.org/questions/linux-newbie-8/lfs-6-12-gcc-4-1-2-configure-error-671529/)

wyylling 09-22-2008 04:35 AM

LFS 6.12. GCC-4.1.2 configure error,
 
LFS 6.12. GCC-4.1.2 configure error
Before this step,everything is OK
I follow such steps:
Now I'm in the (root:/sources/gcc-4.1.2)
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in


then :

mkdir -v ../gcc-build
cd ../gcc-build

../gcc-4.1.2/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++

At this point ,the error occur:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc ) works
configure:1954: gcc -o conftest conftest.c 1>&5
configure:1980: checking whether the C compiler (gcc ) is a cross-compiler
configure:1985: checking whether we are using GNU C
configure:1994: gcc -E conftest.c
configure:2013: checking whether gcc accepts -g
configure:2080: checking for gnatbind
configure:2145: checking whether compiler driver understands Ada
configure:2177: checking how to compare bootstrapped objects
configure:2281: checking for correct version of gmp.h
configure:2294: gcc -c -g -O2 conftest.c 1>&5
configure:2284:17: error: gmp.h: No such file or directory
configure: In function 'main':
configure:2288: error: 'choke' undeclared (first use in this function)
configure:2288: error: (Each undeclared identifier is reported only once
configure:2288: error: for each function it appears in.)
configure:2288: error: expected ';' before 'me'
configure: failed program was:
#line 2283 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:3319: checking for bison
configure:3319: checking for byacc
configure:3319: checking for yacc
configure:3359: checking for bison
configure:3398: checking for gm4
configure:3398: checking for gnum4
configure:3398: checking for m4
configure:3437: checking for flex
configure:3437: checking for lex
configure:3477: checking for flex
configure:3516: checking for makeinfo
configure:3569: checking for expect
configure:3610: checking for runtest
configure:3658: checking for i686-pc-linux-gnu-ar
configure:3689: checking for ar
configure:3733: checking for i686-pc-linux-gnu-as
configure:3764: checking for as
configure:3808: checking for i686-pc-linux-gnu-dlltool
configure:3839: checking for dlltool
configure:3883: checking for i686-pc-linux-gnu-ld
configure:3958: checking for i686-pc-linux-gnu-lipo
configure:3989: checking for lipo
configure:4033: checking for i686-pc-linux-gnu-nm
configure:4064: checking for nm
configure:4108: checking for i686-pc-linux-gnu-ranlib
configure:4139: checking for ranlib
configure:4178: checking for i686-pc-linux-gnu-strip
configure:4209: checking for strip
configure:4248: checking for i686-pc-linux-gnu-windres
configure:4279: checking for windres
configure:4323: checking for i686-pc-linux-gnu-objcopy
configure:4354: checking for objcopy
configure:4398: checking for i686-pc-linux-gnu-objdump
configure:4429: checking for objdump
configure:4480: checking for i686-pc-linux-gnu-ar
configure:4511: checking for ar
configure:4555: checking for i686-pc-linux-gnu-as
configure:4586: checking for as
configure:4630: checking for i686-pc-linux-gnu-cc
configure:4661: checking for cc
configure:4705: checking for i686-pc-linux-gnu-c++
configure:4780: checking for i686-pc-linux-gnu-dlltool
configure:4811: checking for dlltool
configure:4855: checking for i686-pc-linux-gnu-gcc
configure:4925: checking for i686-pc-linux-gnu-gcj
configure:4956: checking for gcj
configure:5000: checking for i686-pc-linux-gnu-gfortran
configure:5031: checking for gfortran
configure:5075: checking for i686-pc-linux-gnu-ld
configure:5106: checking for ld
configure:5150: checking for i686-pc-linux-gnu-lipo
configure:5181: checking for lipo
configure:5225: checking for i686-pc-linux-gnu-nm
configure:5256: checking for nm
configure:5300: checking for i686-pc-linux-gnu-objdump
configure:5331: checking for objdump
configure:5375: checking for i686-pc-linux-gnu-ranlib
configure:5406: checking for ranlib
configure:5445: checking for i686-pc-linux-gnu-strip
configure:5476: checking for strip
configure:5520: checking for i686-pc-linux-gnu-windres
configure:5551: checking for windres
configure:5594: checking where to find the target ar
configure:5619: checking where to find the target as
configure:5644: checking where to find the target cc
configure:5669: checking where to find the target c++
configure:5697: checking where to find the target c++ for libstdc++
configure:5725: checking where to find the target dlltool
configure:5750: checking where to find the target gcc
configure:5775: checking where to find the target gcj
configure:5803: checking where to find the target gfortran
configure:5831: checking where to find the target ld
configure:5856: checking where to find the target lipo
configure:5871: checking where to find the target nm
configure:5896: checking where to find the target objdump
configure:5921: checking where to find the target ranlib
configure:5946: checking where to find the target strip
configure:5971: checking where to find the target windres
configure:6024: checking whether to enable maintainer-specific portions of Makefiles
configure:6071: checking if symbolic links between directories work

weibullguy 09-22-2008 04:46 AM

Quote:

configure:2284:17: error: gmp.h: No such file or directory
Which is odd because you shouldn't need GMP with gcc-4.1.2 unless you're building FORTRAN.

wyylling 09-22-2008 05:52 AM

Quote:

Originally Posted by weibullguy (Post 3288042)
Which is odd because you shouldn't need GMP with gcc-4.1.2 unless you're building FORTRAN.

but I'm sure i'll not install Fortan,my configure error is all above ,could you please help me solve that? I'm involved with the problem for a long time.

wyylling 09-22-2008 06:44 AM

LFS 6.11. Binutils-2.17 configure
 
when I do followed this:

../binutils-2.17/configure --prefix=/usr \
--enable-shared


some error occurs:(it's my config.log)
configure:611: checking host system type
configure:632: checking target system type
configure:650: checking build system type
configure:705: checking for a BSD compatible install
configure:758: checking whether ln works
configure:782: checking whether ln -s works
configure:1867: checking for gcc
configure:1980: checking whether the C compiler (gcc ) works
configure:1996: gcc -o conftest conftest.c 1>&5
configure:2022: checking whether the C compiler (gcc ) is a cross-compiler
configure:2027: checking whether we are using GNU C
configure:2036: gcc -E conftest.c
configure:2055: checking whether gcc accepts -g
configure:2122: checking for gnatbind
configure:2187: checking whether compiler driver understands Ada
configure:2219: checking how to compare bootstrapped objects
configure:2317: checking for correct version of gmp.h
configure:2330: gcc -c -g -O2 conftest.c 1>&5
configure:2320:17: error: gmp.h: No such file or directory
configure: In function 'main':
configure:2324: error: 'choke' undeclared (first use in this function)
configure:2324: error: (Each undeclared identifier is reported only once
configure:2324: error: for each function it appears in.)
configure:2324: error: expected ';' before 'me'
configure: failed program was:
#line 2319 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:3407: checking for bison
configure:3407: checking for byacc
configure:3407: checking for yacc
configure:3447: checking for bison
configure:3486: checking for gm4
configure:3486: checking for gnum4
configure:3486: checking for m4
configure:3525: checking for flex
configure:3525: checking for lex
configure:3565: checking for flex
configure:3604: checking for makeinfo
configure:3657: checking for expect
configure:3698: checking for runtest
configure:3746: checking for i686-pc-linux-gnu-ar
configure:3777: checking for ar
configure:3821: checking for i686-pc-linux-gnu-as
configure:3852: checking for as
configure:3896: checking for i686-pc-linux-gnu-dlltool
configure:3927: checking for dlltool
configure:3971: checking for i686-pc-linux-gnu-ld
configure:4046: checking for i686-pc-linux-gnu-lipo
configure:4077: checking for lipo
configure:4121: checking for i686-pc-linux-gnu-nm
configure:4152: checking for nm
configure:4196: checking for i686-pc-linux-gnu-ranlib
configure:4227: checking for ranlib
configure:4266: checking for i686-pc-linux-gnu-strip
configure:4297: checking for strip
configure:4336: checking for i686-pc-linux-gnu-windres
configure:4367: checking for windres
configure:4411: checking for i686-pc-linux-gnu-objcopy
configure:4442: checking for objcopy
configure:4486: checking for i686-pc-linux-gnu-objdump
configure:4517: checking for objdump
configure:4598: checking for i686-pc-linux-gnu-cc
configure:4629: checking for cc
configure:4689: checking for i686-pc-linux-gnu-c++
configure:4780: checking for i686-pc-linux-gnu-gcc
configure:4866: checking for i686-pc-linux-gnu-gcj
configure:4897: checking for gcj
configure:4957: checking for i686-pc-linux-gnu-gfortran
configure:4988: checking for gfortran
configure:5113: checking for ar
configure:5167: checking for i686-pc-linux-gnu-ar
configure:5198: checking for ar
configure:5266: checking for as
configure:5320: checking for i686-pc-linux-gnu-as
configure:5351: checking for as
configure:5419: checking for dlltool
configure:5473: checking for i686-pc-linux-gnu-dlltool
configure:5504: checking for dlltool
configure:5572: checking for ld
configure:5626: checking for i686-pc-linux-gnu-ld
configure:5657: checking for ld
configure:5725: checking for lipo
configure:5779: checking for i686-pc-linux-gnu-lipo
configure:5810: checking for lipo
configure:5878: checking for nm
configure:5932: checking for i686-pc-linux-gnu-nm
configure:5963: checking for nm
configure:6031: checking for objdump
configure:6085: checking for i686-pc-linux-gnu-objdump
configure:6116: checking for objdump
configure:6184: checking for ranlib
configure:6238: checking for i686-pc-linux-gnu-ranlib
configure:6269: checking for ranlib
configure:6337: checking for strip
configure:6391: checking for i686-pc-linux-gnu-strip
configure:6422: checking for strip
configure:6490: checking for windres
configure:6544: checking for i686-pc-linux-gnu-windres
configure:6575: checking for windres
configure:6623: checking where to find the target ar
configure:6656: checking where to find the target as
configure:6689: checking where to find the target cc
configure:6722: checking where to find the target c++
configure:6758: checking where to find the target c++ for libstdc++
configure:6794: checking where to find the target dlltool
configure:6827: checking where to find the target gcc
configure:6860: checking where to find the target gcj
configure:6896: checking where to find the target gfortran
configure:6932: checking where to find the target ld
configure:6965: checking where to find the target lipo
configure:6988: checking where to find the target nm
configure:7021: checking where to find the target objdump
configure:7054: checking where to find the target ranlib
configure:7087: checking where to find the target strip
configure:7120: checking where to find the target windres
configure:7181: checking whether to enable maintainer-specific portions of Makefiles

weibullguy 09-22-2008 07:54 AM

I've never seen this problem myself. You could install gmp and mpfr before building gcc --> http://www.linuxfromscratch.org/hint...during_lfs.txt, but that's a work around. Something's not right and I'd suspect someone on the mailing list or IRC will have seen this problem before.

wyylling 09-22-2008 10:47 PM

thanks weibullguy ,you are so kind,thanks again


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