Whilst building the 'procps' package, using a 4.3.0 (ARM) cross-compiler the compiler segment faulted.
arm-3d-linux-gnueabi-gcc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/sysinfo.c -o proc/sysinfo.o proc/sysinfo.c: In function get_pid_digits proc/sysinfo.c:896: internal compiler error: Segmentation fault The woraround is not use any optimisation in this file at all as all of -O, -O2, -O3 cause the segment fault. The 'procps' package was the latest release http://procps.sourceforge.net/ procps-3.2.7.tar.gz The procps package builds within it's own src tree make CC=arm-3d-linux-gnueabi-gcc #------------------------ arm-3d-linux-gnueabi-gcc -v -save-temps -Wall -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -DSHARED=1 -fpic proc/sysinfo.c -o proc/sysinfo.o # ------------------------------ Using built-in specs. Target: arm-3d-linux-gnueabi Configured with: /homes/system/s5_eabi_tools/gcc-4.3.0/gcc-4.3.0/configure --prefix=/opt/s5toolsl21/lx_eabi --with-mpfr=/opt/s5toolsl21/native_utils/mpfr --with-gmp=/opt/s5toolsl21/native_utils/gmp --with-gnu-as --with-gnu-ld --with-as=/opt/s5toolsl21/lx_eabi/bin/arm-3d-linux-gnueabi-as --with-ld=/opt/s5toolsl21/lx_eabi/bin/arm-3d-linux-gnueabi-ld --srcdir=/homes/system/s5_eabi_tools/gcc-4.3.0/gcc-4.3.0 --with-sysroot=/opt/s5toolsl21/syslx_eabi --target=arm-3d-linux-gnueabi --with-cpu=arm926ej-s --enable-languages=c,c++ --without-newlib Thread model: posix gcc version 4.3.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-D_GNU_SOURCE' '-I' 'proc' '-I/usr/include/ncurses' '-fno-common' '-ffast-math' '-W' '-Wall' '-Wshadow' '-Wcast-align' '-Wredundant-decls' '-Wbad-function-cast' '-Wcast-qual' '-Wwrite-strings' '-Waggregate-return' '-Wstrict-prototypes' '-Wmissing-prototypes' '-O2' '-s' '-Wdeclaration-after-statement' '-Wpadded' '-Wstrict-aliasing' '-fweb' '-frename-registers' '-fomit-frame-pointer' '-fno-inline-functions' '-DSHARED=1' '-fpic' '-o' 'proc/sysinfo.o' '-mcpu=arm926ej-s' /opt/s5toolsl21/lx_eabi/libexec/gcc/arm-3d-linux-gnueabi/4.3.0/cc1 -E -quiet -v -I proc -I/usr/include/ncurses -D_GNU_SOURCE -DSHARED=1 proc/sysinfo.c -mcpu=arm926ej-s -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fno-common -ffast-math -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -fpic -O2 -fpch-preprocess -o sysinfo.i ignoring nonexistent directory "/opt/s5toolsl21/syslx_eabi/usr/local/include" #include "..." search starts here: #include <...> search starts here: proc /usr/include/ncurses /opt/s5toolsl21/lx_eabi/lib/gcc/arm-3d-linux-gnueabi/4.3.0/include /opt/s5toolsl21/lx_eabi/lib/gcc/arm-3d-linux-gnueabi/4.3.0/include-fixed /opt/s5toolsl21/lx_eabi/lib/gcc/arm-3d-linux-gnueabi/4.3.0/../../../../arm-3d-linux-gnueabi/include /opt/s5toolsl21/syslx_eabi/usr/include End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-D_GNU_SOURCE' '-I' 'proc' '-I/usr/include/ncurses' '-fno-common' '-ffast-math' '-W' '-Wall' '-Wshadow' '-Wcast-align' '-Wredundant-decls' '-Wbad-function-cast' '-Wcast-qual' '-Wwrite-strings' '-Waggregate-return' '-Wstrict-prototypes' '-Wmissing-prototypes' '-O2' '-s' '-Wdeclaration-after-statement' '-Wpadded' '-Wstrict-aliasing' '-fweb' '-frename-registers' '-fomit-frame-pointer' '-fno-inline-functions' '-DSHARED=1' '-fpic' '-o' 'proc/sysinfo.o' '-mcpu=arm926ej-s' /opt/s5toolsl21/lx_eabi/libexec/gcc/arm-3d-linux-gnueabi/4.3.0/cc1 -fpreprocessed sysinfo.i -quiet -dumpbase sysinfo.c -mcpu=arm926ej-s -auxbase-strip proc/sysinfo.o -O2 -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -version -fno-common -ffast-math -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions -fpic -o sysinfo.s GNU C (GCC) version 4.3.0 (arm-3d-linux-gnueabi) compiled by GNU C version 4.3.0, GMP version 4.2.2, MPFR version 2.3.0. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 7c3f80f5d14a419f1f92cb195c805d22 proc/sysinfo.c: In function �et_pid_digits� proc/sysinfo.c:896: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: arm-*-linux-gnueabi-gcc (4.3.0) segment fault during build of procps-3.2.7 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: john dot spelis at 3dlabs dot com GCC build triplet: i686-pc-linux GCC host triplet: i686-pc-linux GCC target triplet: arm-*-linux-gnueabi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36209