https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80923
Bug ID: 80923 Summary: RTEMS SH ICE building gcc-7.1.0 on FreeBSD 11.0 Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: chrisj at rtems dot org Target Milestone: --- FreeBSD version is 11.0-RELEASE-p9. Configure line is: ../gcc-7.1.0/configure --prefix=/build/rtems/tools/4.12-7.1 --bindir=/build/rtems/tools/4.12-7.1/bin --exec_prefix=/build/rtems/tools/4.12-7.1 --includedir=/build/rtems/tools/4.12-7.1/include --libdir=/build/rtems/tools/4.12-7.1/lib --libexecdir=/build/rtems/tools/4.12-7.1/libexec --mandir=/build/rtems/tools/4.12-7.1/share/man --infodir=/build/rtems/tools/4.12-7.1/share/info --datadir=/build/rtems/tools/4.12-7.1/share --build=x86_64-freebsd11.0 --host=x86_64-freebsd11.0 --target=sh-rtems4.12 --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --disable-lto --enable-newlib-io-c99-formats --enable-newlib-iconv --enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 --enable-threads --disable-plugin --enable-languages=c,c++ The error is: /opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/sh-rtems4.12-gcc-7.1.0-newlib-2.5.0.20170323-x86_64-freebsd11.0-1/build/./gcc/xgcc -B/opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/sh-rtems4.12-gcc-7.1.0-newlib-2.5.0.20170323-x86_64-freebsd11.0-1/build/./gcc/ -nostdinc -B/opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/sh-rtems4.12-gcc-7.1.0-newlib-2.5.0.20170323-x86_64-freebsd11.0-1/build/sh-rtems4.12/newlib/ -isystem /opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/sh-rtems4.12-gcc-7.1.0-newlib-2.5.0.20170323-x86_64-freebsd11.0-1/build/sh-rtems4.12/newlib/targ-include -isystem /opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/sh-rtems4.12-gcc-7.1.0-newlib-2.5.0.20170323-x86_64-freebsd11.0-1/gcc-7.1.0/newlib/libc/include -B/build/rtems/tools/4.12-7.1/sh-rtems4.12/bin/ -B/build/rtems/tools/4.12-7.1/sh-rtems4.12/lib/ -isystem /build/rtems/tools/4.12-7.1/sh-rtems4.12/include -isystem /build/rtems/tools/4.12-7.1/sh-rtems4.12/sys-include -g -O2 -m2 -O2 -I../../../../gcc-7.1.0/libgcc/../newlib/libc/sys/rtems/include -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../gcc-7.1.0/libgcc -I../../../../gcc-7.1.0/libgcc/. -I../../../../gcc-7.1.0/libgcc/../gcc -I../../../../gcc-7.1.0/libgcc/../include -DHAVE_CC_TLS -o _fixdfdi.o -MT _fixdfdi.o -MD -MP -MF _fixdfdi.dep -DL_fixdfdi -c ../../../../gcc-7.1.0/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS ../../../../gcc-7.1.0/libgcc/unwind-dw2.c: In function 'execute_stack_op': ../../../../gcc-7.1.0/libgcc/unwind-dw2.c:840:10: internal compiler error: Segmentation fault result = (_Unwind_Sword) second / (_Unwind_Sword) first; ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. I have not provided prepossessed source because it is a libgcc file. I have no idea which component to select.