Errors building gcc 3.4.3

Matt Darcy lfs-list at projecthugo.co.uk
Mon Nov 28 07:40:44 PST 2005


Francesco Piccirillo wrote:
> Hi all,
> I've got these errors building gcc 3.4.3:
> 
> In file included from ../../gcc-3.4.3/gcc/crtstuff.c:62:
> ../../gcc-3.4.3/gcc/tsystem.h:79:19: stdio.h: No such file or directory
> ../../gcc-3.4.3/gcc/tsystem.h:82:23: sys/types.h: No such file or directory
> ../../gcc-3.4.3/gcc/tsystem.h:85:19: errno.h: No such file or directory
> ../../gcc-3.4.3/gcc/tsystem.h:92:20: string.h: No such file or directory
> ../../gcc-3.4.3/gcc/tsystem.h:93:20: stdlib.h: No such file or directory
> ../../gcc-3.4.3/gcc/tsystem.h:94:20: unistd.h: No such file or directory
> In file included from ./include/syslimits.h:7,
>                  from ./include/limits.h:11,
>                  from ../../gcc-3.4.3/gcc/tsystem.h:97,
>                  from ../../gcc-3.4.3/gcc/crtstuff.c:62:
> ./include/limits.h:122:61: limits.h: No such file or directory
> In file included from ../../gcc-3.4.3/gcc/crtstuff.c:62:
> ../../gcc-3.4.3/gcc/tsystem.h:100:18: time.h: No such file or directory
> make[2]: *** [crtbegin.o] Error 1
> make[2]: Leaving directory `/LFS/sources/gcc-build/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/LFS/sources/gcc-build/gcc'
> make: *** [bootstrap] Error 2
> 
> 
> Before this error given by 'make bootstrap' command, I've configured
> Binutils and Gcc with the option --enable-stack-protector set on,
> because I'd like to have the stack protection built in my own kernel.
> 
> Then I've patched gcc with the following patches:
> - gcc-3.4.3-linkonce-1.patch
> - gcc-3.4.3-no_fixincludes-1.patch
> - gcc-3.4.3-specs-2.patch
> - gcc-3.4-ssp-3.patch
> 
> Could anyone help me, please?
> Thanks,
> Francesco
> Then


if your doing make bootstrap I assume your doing gcc pass 1.

If so - why have you applied the linkonce patch the no_fixedincludes 
patch the specs-2 patch ?

I assume the ssp-3 patch is the stack protection patch, but the others 
should not have been applied.

Pass1 you don't apply any patches, as the book says.

Only apply patches where the book tells you to. If your not 
aware/confident of this procedure then you shouldn't really be playing 
with additional patches such as the stack protection patches, are you 
don't appear to be able to follow the book nativly, let alone customised.

Matt






More information about the lfs-support mailing list