https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82162
Bug ID: 82162 Summary: Internal compiler error in Raspbian Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gogol.logog at hotmail dot it Target Milestone: --- Created attachment 42144 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42144&action=edit Precompiled source Compiling on Raspbain Jessie (Raspberry Pi 2) fails with "internal compiler error: Segmentation fault". On a Debian 32bit works just fine, and also on Kali 64bit. gcc -v -save-temps all-your-options source-file: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 4.9.2 (Raspbian 4.9.2-10) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-march=armv6' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1 -E -quiet -v -imultilib . -imultiarch arm-linux-gnueabihf input_matrix.c -march=armv6 -mfloat-abi=hard -mfpu=vfp -mtls-dialect=gnu -fpch-preprocess -o input_matrix.i ignoring nonexistent directory "/usr/local/include/arm-linux-gnueabihf" ignoring nonexistent directory "/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/arm-linux-gnueabihf/4.9/include /usr/local/include /usr/lib/gcc/arm-linux-gnueabihf/4.9/include-fixed /usr/include/arm-linux-gnueabihf /usr/include End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-march=armv6' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1 -fpreprocessed input_matrix.i -quiet -dumpbase input_matrix.c -march=armv6 -mfloat-abi=hard -mfpu=vfp -mtls-dialect=gnu -auxbase input_matrix -version -o input_matrix.s GNU C (Raspbian 4.9.2-10) version 4.9.2 (arm-linux-gnueabihf) compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=96 --param ggc-min-heapsize=124279 GNU C (Raspbian 4.9.2-10) version 4.9.2 (arm-linux-gnueabihf) compiled by GNU C version 4.9.2, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=96 --param ggc-min-heapsize=124279 Compiler executable checksum: 91c450f0e3805f97e63eb93bcfb4f682 In file included from useful.h:3:0, from input_matrix.c:4: useful.c: In function ‘chunked_fgets’: useful.c:7:8: internal compiler error: Segmentation fault char** chunked_fgets(FILE *istream, char** buf) { ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccGPgdZs.out file, please attach this to your bugreport.