Keep getting Segmentation faults and Makefile all: Error 2 when running and building GCC-4.5.3
by Noodulz from LinuxQuestions.org on (#523W5)
I finished implementing all the build and prepare and bootfiles in going through all of HLFS. When I run the script to execute and run through all the build and prepare files and just installing everything from source, it takes about 20 minutes and it manages to get through the prepare files without failure, but when it starts running from the build files (section 6 files), it doesn't get further than when running the gcc and always shows the same error like this:
Code:/tools/x86_64-unknown-linux-gnu/bin/ar rc libgcov.a $objects
/bin/sh: line 7: 12022 Segmentation fault (core dumped) /tools/x86_64-unknown-linux-gnu/bin/ar rc libgcc.a $objects
make[2]: *** [Makefile:749: libgcc.a] Error 139
make[2]: *** Waiting for unfinished jobs....
/bin/sh: line 7: 12031 Segmentation fault (core dumped) /tools/x86_64-unknown-linux-gnu/bin/ar rc libgcov.a $objects
make[2]: *** [Makefile:749: libgcov.a] Error 139
make[2]: Leaving directory '/tmp/gcc/build/x86_64-unknown-linux-gnu/libgcc'
make[1]: *** [Makefile:13468: all-target-libgcc] Error 2
make[1]: Leaving directory '/tmp/gcc/build'
make: *** [Makefile:864: all] Error 2I've tried changing the tarball of Texinfo, changing the naming conventions of the prepare and build files, looked into disabling linked tests (as I was told on another forum to disable it) but it still pulls up the same error and stops building right at gcc. I'm thinking it could be because of a compatibility issue somewhere where there's a 64 bit file or tarball being built or the environment I'm building in (I'm building in all 32 bit as of right now). Any way to resolve this? I'm also currently building in Debian: Buster if that helps.


Code:/tools/x86_64-unknown-linux-gnu/bin/ar rc libgcov.a $objects
/bin/sh: line 7: 12022 Segmentation fault (core dumped) /tools/x86_64-unknown-linux-gnu/bin/ar rc libgcc.a $objects
make[2]: *** [Makefile:749: libgcc.a] Error 139
make[2]: *** Waiting for unfinished jobs....
/bin/sh: line 7: 12031 Segmentation fault (core dumped) /tools/x86_64-unknown-linux-gnu/bin/ar rc libgcov.a $objects
make[2]: *** [Makefile:749: libgcov.a] Error 139
make[2]: Leaving directory '/tmp/gcc/build/x86_64-unknown-linux-gnu/libgcc'
make[1]: *** [Makefile:13468: all-target-libgcc] Error 2
make[1]: Leaving directory '/tmp/gcc/build'
make: *** [Makefile:864: all] Error 2I've tried changing the tarball of Texinfo, changing the naming conventions of the prepare and build files, looked into disabling linked tests (as I was told on another forum to disable it) but it still pulls up the same error and stops building right at gcc. I'm thinking it could be because of a compatibility issue somewhere where there's a 64 bit file or tarball being built or the environment I'm building in (I'm building in all 32 bit as of right now). Any way to resolve this? I'm also currently building in Debian: Buster if that helps.