This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16860] New: internal error: illegal instruction
- From: "singularitylightspeed at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Aug 2004 07:23:12 -0000
- Subject: [Bug c/16860] New: internal error: illegal instruction
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I have encountered an internal compiler error (Illegal instruction) under Linux.
Below is the output of gcc -v:
-----------------------------------------------------------------------
Reading specs from /usr/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../configure --cache-file=./config.cache
--srcdir=/ltmp/openpkg-bf/openpkg-dv4-ix86-rhl9/TMP/gcc-3.4.1/obj/..
--prefix=/openpkg --exec-prefix=/openpkg --includedir=/openpkg/include/gcc
--libexecdir=/openpkg/libexec/gcc
--with-gxx-include-dir=/openpkg/include/g++
--with-local-prefix=/openpkg/lib/gcc --enable-languages=c,c++
--enable-threads=posix --disable-maintainer-mode --disable-shared
--disable-nls --with-gnu-ld --with-ld=/openpkg/bin/ld --with-gnu-as
--with-as=/openpkg/bin/as
Thread model: posix
gcc version 3.4.1 (OpenPKG-2.1)
-----------------------------------------------------------------
The command-line to compile the test file is:
-----------------------------------------------------------------------
/usr/bin/gcc -pipe -g -O2 -I../include -I/usr/local/include/nessus -
DNESSUS_ON_SSL -I/usr/kerberos/include -DHAVE_SSL -I/usr/include/openssl -
DNESSUS_EXTENSIONS -I. -I/tmp/nessus-installer.10304/libnasl/include -
DHAVE_CONFIG_H -c md5.c -fPIC -DPIC -o .libs/md5.lo
OR:
/usr/bin/gcc -c -O2 md5.i
-----------------------------------------------------------------
I've got the following output from the compiler:
md5.c: In function MD5Update':
md5.c:102: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.openpkg.org/> for instructions.
----------------------------------------------------------------
My machine is an AMD K6-2 running RedHat Linux 9; kernel 2.6.5.
I have installed a binary precompiled version of gcc from openpkg(openpkg.org).
The file md5.c is from nessus version 2.1.1 (nessus.org).
If I use the gcc version 3.3.3 under Linux it works ok.
Note that if I use gcc 3.4.1 compiled for mingw32 it compiles the above file ok.
I have downloaded it from the mingw site, the output of gcc -v (mingw32
version) is:
-----------------------------------------------------------------------
Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.1/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --
host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --
enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-
shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x -
-enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-
synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.1 (mingw special)
-----------------------------------------------------------------------
--
Summary: internal error: illegal instruction
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: singularitylightspeed at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16860