Errors building gcc 3.4.3
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 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Errors building gcc 3.4.3
Thank you for your answer... Ok, I understand, I must follow the book natively. However I HAVE TO build a kernel with the stack protector option set on, that is a must. So, when do you suggest me to apply the right patches on the right packages during the entire process? Should I apply propolice patches in Pass1 or in Pass2 ? Thank you, Francesco 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 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Errors building gcc 3.4.3
Francesco Piccirillo wrote: Thank you for your answer... Ok, I understand, I must follow the book natively. However I HAVE TO build a kernel with the stack protector option set on, that is a must. So, when do you suggest me to apply the right patches on the right packages during the entire process? Should I apply propolice patches in Pass1 or in Pass2 ? Thank you, Francesco 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 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page If you have to then you're not following the book (regardless, you don't need *any* patches in pass 1). Why do you need to ask where you apply the patches? If you're applying patches not mentioned in the book, you should know where they should go. If you need ssp, have you looked at HLFS? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Errors building gcc 3.4.3
Jeremy Huntwork wrote: Chris Staub wrote: If you have to then you're not following the book (regardless, you don't need *any* patches in pass 1). Why do you need to ask where you apply the patches? If you're applying patches not mentioned in the book, you should know where they should go. If you need ssp, have you looked at HLFS? Chris, please try to do some trimming in your replies. There's no need to include *everything* in the last two messages of the thread. We've all read it, we don't need to read it/download it again. Thanks. -- JH Oops, sorry...haven't been doing that much lately. Will try harder. :) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Errors building gcc 3.4.3
Matt Darcy wrote: I'd do final pass 3 - don't polute your toolchain, just your final system. But thats just a personal opinion. Ugh. Did you not just see the post I sent in reply to Chris? Please *try* to trim your posts. I like you guys, but I find your lack of trimming very annoying. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Errors building gcc 3.4.3
On 11/28/05, Francesco Piccirillo [EMAIL PROTECTED] wrote: Thank you for your answer... Ok, I understand, I must follow the book natively. However I HAVE TO build a kernel with the stack protector option set on, that is a must. So, when do you suggest me to apply the right patches on the right packages during the entire process? Should I apply propolice patches in Pass1 or in Pass2 ? I would suggest you to use them in chapter 6. The chapter 5 packages are going to be removed anyway. So there is little point in customizing them. More over, if you blow up something, You needn't go back to the bigenning of the beginning. You can start from the /tools (if you didn't remove it or had you archived it). -- I don't know how much of what I say is true -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page