This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/83286] internal compiler error: Illegal instruction


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83286

--- Comment #8 from Alex Weslowski <aweslowski at gmail dot com> ---
(In reply to Richard Biener from comment #6)
> Illegal instruction is usually coming from gmp/mpfr which might be linked
> statically into your GCC binary on mingw.

This may indeed be the case. Also happens in GCC 7.2.0, which may indicate bug
in external program. GMP/MPFR/MSYS2/Windows/other. Pasted is a similar or same
error in 7.2.0. Attached the relevant preprocessed file to this bug (even
though this bug is marked 6.4.0).



Making gp in Omingw-x86_64
make[1]: Entering directory '/pari-2.9.3/Omingw-x86_64'
/mingw64/bin/gcc -v -save-temps -c -I. -I../src64/headers  -O3 -Wall
-fno-strict-aliasing    -o trans3.o ../src64/basemath/trans3.c
Using built-in specs.
COLLECT_GCC=C:\MSYS64\mingw64\bin\gcc.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-7.2.0/configure --prefix=/mingw64
--with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32
--host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
--with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include
--libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64
--with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada
--enable-shared --enable-static --enable-libatomic --enable-threads=posix
--enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes
--disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check
--enable-lto --enable-libgomp --disable-multilib --enable-checking=release
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64
--with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64
--with-pkgversion='Rev1, Built by MSYS2 project'
--with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as
--with-gnu-ld
Thread model: posix
gcc version 7.2.0 (Rev1, Built by MSYS2 project)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-I' '.' '-I' '../src64/headers'
'-O3' '-Wall' '-fno-strict-aliasing' '-o' 'trans3.o' '-mtune=generic'
'-march=x86-64'
 C:/MSYS64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/cc1.exe -E -quiet -v
-I . -I ../src64/headers -iprefix
C:/MSYS64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/ -D_REENTRANT
../src64/basemath/trans3.c -mtune=generic -march=x86-64 -Wall
-fno-strict-aliasing -O3 -fpch-preprocess -o trans3.i
ignoring duplicate directory
"C:/MSYS64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/7.2.0/include"
ignoring nonexistent directory "C:/building/msys64/mingw64/include"
ignoring nonexistent directory "/mingw64/include"
ignoring duplicate directory
"C:/MSYS64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed"
ignoring duplicate directory
"C:/MSYS64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory
"C:/building/msys64/mingw64/x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../src64/headers
 C:/MSYS64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/include
 C:/MSYS64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../include
 C:/MSYS64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed

C:/MSYS64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-I' '.' '-I' '../src64/headers'
'-O3' '-Wall' '-fno-strict-aliasing' '-o' 'trans3.o' '-mtune=generic'
'-march=x86-64'
 C:/MSYS64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/cc1.exe
-fpreprocessed trans3.i -quiet -dumpbase trans3.c -mtune=generic -march=x86-64
-auxbase-strip trans3.o -O3 -Wall -version -fno-strict-aliasing -o trans3.s
GNU C11 (Rev1, Built by MSYS2 project) version 7.2.0 (x86_64-w64-mingw32)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C11 (Rev1, Built by MSYS2 project) version 7.2.0 (x86_64-w64-mingw32)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version
3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: cd663256441e045689e54e69adf53c13
In file included from ../src64/headers/pari.h:49:0,
                 from ../src64/basemath/trans3.c:20:
../src/kernel/none/level1.h: In function 'mpveceint1':
../src/kernel/none/level1.h:154:7: internal compiler error: Segmentation fault
   GEN z = new_chunk((size_t)x);
       ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/msys2> for instructions.
make[1]: *** [Makefile:1136: trans3.o] Error 1
make[1]: Leaving directory '/pari-2.9.3/Omingw-x86_64'
make: *** [Makefile:34: gp] Error 2

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]