https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77512
Bug ID: 77512 Summary: gcc compilation stops with Arithmetic Exception Product: gcc Version: 6.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: michael at mijobe dot org Target Milestone: --- Created attachment 39579 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39579&action=edit temporary compiler files I am trying to install gcc-6.2.0 on Sparc Solaris 10 In stage 2 I get the following error: $HOME/gcc-6.2.0-build/./prev-gcc/xg++ -B$HOME/gcc-6.2.0-build/./prev-gcc/ -B$HOME/gcc-6.2.0-bin/sparc-sun-solaris2.10/bin/ -nostdinc++ -B$HOME/gcc-6.2.0-build/prev-sparc-sun-solaris2.10/libstdc++-v3/src/.libs -B$HOME/gcc-6.2.0-build/prev-sparc-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -I$HOME/gcc-6.2.0-build/prev-sparc-sun-solaris2.10/libstdc++-v3/include/sparc-sun-solaris2.10 -I$HOME/gcc-6.2.0-build/prev-sparc-sun-solaris2.10/libstdc++-v3/include -I$HOME/gcc-6.2.0/libstdc++-v3/libsupc++ -L$HOME/gcc-6.2.0-build/prev-sparc-sun-solaris2.10/libstdc++-v3/src/.libs -L$HOME/gcc-6.2.0-build/prev-sparc-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -fno-PIE -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-6.2.0/gcc -I../../gcc-6.2.0/gcc/. -I../../gcc-6.2.0/gcc/../include -I./../intl -I../../gcc-6.2.0/gcc/../libcpp/include -I$HOME/gcc-6.2.0-build/./gmp -I$HOME/gcc-6.2.0/gmp -I$HOME/gcc-6.2.0-build/./mpfr -I$HOME/gcc-6.2.0/mpfr -I$HOME/gcc-6.2.0/mpc/src -I../../gcc-6.2.0/gcc/../libdecnumber -I../../gcc-6.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-6.2.0/gcc/../libbacktrace -I$HOME/gcc-6.2.0-build/./isl/include -I$HOME/gcc-6.2.0/isl/include -o haifa-sched.o -MT haifa-sched.o -MMD -MP -MF ./.deps/haifa-sched.TPo ../../gcc-6.2.0/gcc/haifa-sched.c In file included from ../../gcc-6.2.0/gcc/haifa-sched.c:141:0: ../../gcc-6.2.0/gcc/haifa-sched.c: In function 'int dep_cost_1(dep_t, dw_t)': ../../gcc-6.2.0/gcc/sched-int.h:252:31: internal compiler error: Arithmetische Ausnahme #define DEP_COST(D) ((D)->cost) ^ ../../gcc-6.2.0/gcc/haifa-sched.c:1438:12: note: in expansion of macro 'DEP_COST' return DEP_COST (link); ^~~~~~~~ First stage was compiled using gcc 4.0.3 Prerequisits are dowload using contrib/download_prerequisites GNU binutils-2.27 are used configuration was done with: ../gcc-6.2.0/configure --prefix=$HOME/gcc-6.2.0-bin --target=sparc-sun-solaris2.10 --with-gnu-as --with-gnu-ld --disable-libgcj --enable-languages=c,c++