On 09/26/2015 12:50 PM, Michael Shell wrote:
Wayne, OK, show us what the name of the illegal instruction using gdb's disas command: gdb g++ -c foo.cc (gdb) run (gdb) bt (gdb) disas Then we can see what CPU specific instruction is causing the trouble and where it is located. A debugging example for the unsupported (SSE3) instruction fisttpl can be seen here: https://bugs.launchpad.net/ubuntu/+source/mplayer2/+bug/974125
package gdb:/usr/src/gdb> g++ -c foo.cc In file included from foo.cc:1:0: /usr/include/c++/4.9.2/limits:1558:7: internal compiler error: Illegal instruction min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; } ^ 0x95017f crash_signal ../../gcc-4.9.2/gcc/toplev.c:337 0x7f681c1dc51f ??? /usr/src/glibc/glibc-2.21/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> package gdb:/usr/src/gdb> gdb g++ -c foo.cc GNU gdb (GDB) 7.9 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from g++...done. "/usr/src/gdb/foo.cc" is not a core dump: File format not recognized (gdb) run Starting program: /usr/bin/g++ g++: fatal error: no input files compilation terminated. [Inferior 1 (process 3001) exited with code 01] (gdb) bt No stack. (gdb) disas No frame selected. (gdb) quit package gdb:/usr/src/gdb> Wayne Sallee wa...@waynesallee.com -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page