[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #10 from Hans Buchmann --- Thank you. Hans Buchmann
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 Richard Biener changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #9 from Richard Biener --- So you compiled gmp for a different CPU. IIRC it auto-detects that based on the host you compile on unless you use --enable-fat. Please refer to the GMP installation instructions for details. Not a GCC bug.
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #8 from Hans Buchmann --- Created attachment 46054 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46054&action=edit /proc/cpuinfo Sincerely Hans Buchmann
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #7 from Andrew Pinski --- https://www.felixcloutier.com/x86/blsr Says BMI1 is required. Can you provide the output of /proc/cpuinfo on the host?
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #6 from Hans Buchmann --- Created attachment 46048 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46048&action=edit Disassemly
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #5 from Richard Biener --- Not very helpful - you need follow the fork to the actual compiler binary. The easiest way to do this is to run the compiler with -v appended and the cut&paste the line where it executes the cc1plus binary and run that inside the debugger. It should look somewhat like /usr/lib64/gcc/x86_64-suse-linux/4.8/cc1plus -quiet -v -D_GNU_SOURCE t.c -quiet -dumpbase t.c -mtune=generic -march=x86-64 -auxbase t -version -o /tmp/ccbh6DsK.s and you then do > gdb --args usr/lib64/gcc/x86_64-suse-linux/4.8/cc1plus -quiet -v > -D_GNU_SOURCE t.c -quiet -dumpbase t.c -mtune=generic -march=x86-64 -auxbase > t -version -o /tmp/ccbh6DsK.s ... (gdb) run ... Illegal Instruction (gdb) disassemble cut&paste the context around the PC marker ==>
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #4 from Hans Buchmann --- Created attachment 46045 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46045&action=edit The gbd output With the help of our sysadmin Peter Schlachter we managed the following output, hopefully helpful for you. Sincerely Hans Buchmann
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #3 from Richard Biener --- It looks like GMP selects a CPU path that is not supported. Can you run the compile within gdb to get at the faultin assembly instruction?
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 --- Comment #2 from Hans Buchmann --- Source from: MPFR Version 4.0.1 from https://www.mpfr.org made with: TC=where to install ${MPFR_SRC}/configure \ --prefix=${TC} \ --with-gmp=${TC} # ${MAKE} ${MAKE} install A fake link: libmpfr.so.6 -> /usr/lib64/libmpfr.so.4.1.1 to the original works perfectly Sincerely Hans Buchmann
[Bug c++/89858] crash with libmpfr.so.6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89858 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2019-03-27 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- > bug.cc:6:1: internal compiler error: Illegal instruction > - Surprisingly the crash occurs only with libmpfr.so.6 How did you compile MPFR or how did you get MPFR?