Thanks for replying. I am really glad someone has replied. My Gcc tar ball is gcc-4.5.1.tar.bz2, i used 'tar -jxf gcc-4.5.1.tar.bz2', to extract it.And, I have made sure that mpc, gmp, mpfr are extracted in the gcc-4.5.1 source folder and not in gcc-build folder. If it was messed up it would show up at configure time, but configure was successful. I am getting this error while executing 'make' I used the host system requirement script provided in LFS book, and it turned out OK. bash version-check.sh bash, version 4.1.7(1)-release /bin/sh -> /bin/bash Binutils: (GNU Binutils; openSUSE 11.3) 2.20.0.20100122-6 bison (GNU Bison) 2.4.1 /usr/bin/yacc -> /usr/bin/yacc bzip2, Version 1.0.5, 10-Dec-2007. Coreutils: 7.1 diff (GNU diffutils) 2.8.7-cvs find (GNU findutils) 4.4.2 GNU Awk 3.1.6 /usr/bin/awk -> /bin/gawk gcc (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292] GNU C Library stable release version 2.11.2 (20100531) GNU grep 2.5.4 gzip 1.3.13 Linux version 2.6.34-12-default (ge...@buildhost) (gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux) ) #1 SMP 2010-06-29 02:39:08 +0200 m4 (GNU M4) 1.4.13 GNU Make 3.81 GNU patch 2.6.1.81-5b68 Perl version='5.12.1'; GNU sed version 4.1.5 tar (GNU tar) 1.23 Texinfo: makeinfo (GNU texinfo) 4.13 Compilation OK
--- On Tue, 16/11/10, Bruce Dubbs <bruce.du...@gmail.com> wrote: From: Bruce Dubbs <bruce.du...@gmail.com> Subject: Re: 5.5 GCC-4.5.1 - Pass 1 - c99 mode compilation error - openSUSE (host) To: gnu2007-...@yahoo.co.in, "LFS Support List" <lfs-support@linuxfromscratch.org> Date: Tuesday, 16 November, 2010, 3:24 AM gnu2007-...@yahoo.co.in wrote: > I am still stuck at this chapter, I tried by adding -std=c99 while > configure; and also, by adding to the makefile using vi. But, its not > getting fixed.Can anyone please suggest any way to fix this?. It's not clear that you followed the directions: tar -xf gcc.tarball cd gcc-4.5.1 untar mfpr, mv... untar gmp, mv... untar mpc, mv... mkdir -v ../gcc-build cd ../gcc-build ... Also double check vii. Host System Requirements -- Bruce --- On > Sun, 14/11/10, gnu2007-...@yahoo.co.in <gnu2007-...@yahoo.co.in> > wrote: > > From: gnu2007-...@yahoo.co.in <gnu2007-...@yahoo.co.in> Subject: 5.5 > GCC-4.5.1 - Pass 1 - c99 mode compilation error - openSUSE (host) To: > lfs-support@linuxfromscratch.org Date: Sunday, 14 November, 2010, > 7:26 PM > > Can anyone please suggest any fix for the following compilation > error. I am at the 5.5 GCC-4.5.1 Pass 1 section of LFS book. Host is > openSUSE 11.3 gcc -DHAVE_CONFIG_H -I. -I../../gcc-4.5.1/mpc -DNDEBUG > -Wall -Wextra -Wno-deprecated-declarations -Wmissing-prototypes > -Wdeclaration-after-statement -Wshadow -Wpointer-arith > -Wstrict-prototypes -Wcast-qual -Wwrite-strings -g -O2 -MT > src_mpc-main.o -MD -MP -MF .deps/src_mpc-main.Tpo -c -o > src_mpc-main.o `test -f 'src/main.c' || echo > '../../gcc-4.5.1/mpc/'`src/main.c ../../gcc-4.5.1/mpc/src/main.c: In > function 'find_command': ../../gcc-4.5.1/mpc/src/main.c:199:2: error: > 'for' loop initial declarations are only allowed in C99 mode > ../../gcc-4.5.1/mpc/src/main.c:199:2: note: use option -std=c99 or > -std=gnu99 to compile your code make[3]: *** [src_mpc-main.o] Error 1 > make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/mpc' make[2]: > *** [all] Error 2 make[2]: Leaving directory > `/mnt/lfs/sources/gcc-build/mpc' make[1]: *** [all-mpc] Error 2 make[1]: > Leaving directory `/mnt/lfs/sources/gcc-build' make: *** > [all] Error 2 > > > -----Inline Attachment Follows----- > >
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page