gcc make bootstrap error

diesel001 at netvigator.com diesel001 at netvigator.com
Fri Aug 29 21:07:55 PDT 2008

> From: onder at xcoders.net
> Date: 2008/08/28 Thu AM 04:20:30 HKT
> To: lfs-support at linuxfromscratch.org
> Subject: gcc make bootstrap error
> Hi all,
> I tried to install LFS 6 times.
> Always built error same point:
> pes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition
> -Wmissing-format-attribute     -DHAVE_CONFIG_H -I. -I.
> -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/.
> -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include  
>   ../../gcc-4.1.2/gcc/tree-ssa-pre.c -o tree-ssa-pre.o
> ../../gcc-4.1.2/gcc/tree-ssa-pre.c: In function 'execute_pre':
> ../../gcc-4.1.2/gcc/tree-ssa-pre.c:2688: internal compiler error:
> Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> make[2]: *** [tree-ssa-pre.o] Error 1
> make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make: *** [bootstrap] Error 2
> I read Faq, it say : segmentation fault is hardware error but always same
> point.
> Help please, sorry my english
> not hardware problem?
What directory are you building the Chapter 5 packages in? When the book said that all packages in Chapter 5 will be built in the $LFS/tools directory I mistakenly copied the tar files into the $LFS/tools directory and unpackaged them there before building them. This gave me the same segmentation fault every time when building GCC in Chapter 6. The packages should be unpackaged in the $LFS/sources directory and the command lines run from the unpacked directory then they are automatically built in $LFS/tools. This stopped my segmentation fault.

Hope this helps


More information about the lfs-support mailing list