public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/14221] New: ansi.h:128: internal compiler error: Illegal instruction
@ 2004-02-20  3:08 v dot haisman at sh dot cvut dot cz
  2004-02-20  3:09 ` [Bug bootstrap/14221] " v dot haisman at sh dot cvut dot cz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-02-20  3:08 UTC (permalink / raw)
  To: gcc-bugs

Bootstrap dies:

./xgcc -B./ -B/home/4/wilx/i386-unknown-freebsd4.9/bin/ -isystem
/home/4/wilx/i386-unknown-freebsd4.9/include -isystem
/home/4/wilx/i386-unknown-freebsd4.9/sys-include
-L/home/4/wilx/tmp/gcc34/objdir/gcc/../ld -O2 -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -I. -I. -I../../srcdir/gcc -I../../srcdir/gcc/.
-I../../srcdir/gcc/../include   -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time  \
   -c ../../srcdir/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from ./include/stddef.h:57,
                 from ../../srcdir/gcc/tsystem.h:44,
                 from ../../srcdir/gcc/crtstuff.c:62:
./include/machine/ansi.h:128: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/4/wilx/tmp/gcc34/objdir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/home/4/wilx/tmp/gcc34/objdir/gcc'
make: *** [bootstrap] Error 2

This is the configuration:
wilx@logout:::~/tmp/gcc34/objdir/gcc> ../srcdir/configure --disable-nls
--enable-version-specific-runtime-libs --enable-dwarf2 --with-cpu=pentium3
--with-arch=pentium3 --with-system-zlib --disable-shared --prefix=/home/4/wilx
--enable-languages=c,c++,objc --disable-sjlj-exceptions
--enable-shared=libstdc++ --with-gc=zone

-- 
           Summary: ansi.h:128: internal compiler error: Illegal instruction
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
                    cvut dot cz
 GCC build triplet: i386-unknown-freebsd4.9
  GCC host triplet: i386-unknown-freebsd4.9
GCC target triplet: i386-unknown-freebsd4.9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14221


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/14221] ansi.h:128: internal compiler error: Illegal instruction
  2004-02-20  3:08 [Bug bootstrap/14221] New: ansi.h:128: internal compiler error: Illegal instruction v dot haisman at sh dot cvut dot cz
@ 2004-02-20  3:09 ` v dot haisman at sh dot cvut dot cz
  2004-02-28 23:10 ` [Bug bootstrap/14221] Compiler from stage1 ICE on system header: " neroden at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-02-20  3:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From v dot haisman at sh dot cvut dot cz  2004-02-20 03:09 -------
Created an attachment (id=5774)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5774&action=view)
preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14221


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/14221] Compiler from stage1 ICE on system header: Illegal instruction
  2004-02-20  3:08 [Bug bootstrap/14221] New: ansi.h:128: internal compiler error: Illegal instruction v dot haisman at sh dot cvut dot cz
  2004-02-20  3:09 ` [Bug bootstrap/14221] " v dot haisman at sh dot cvut dot cz
@ 2004-02-28 23:10 ` neroden at gcc dot gnu dot org
  2004-02-29  1:43 ` v dot haisman at sh dot cvut dot cz
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: neroden at gcc dot gnu dot org @ 2004-02-28 23:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From neroden at gcc dot gnu dot org  2004-02-28 23:10 -------
Apparently the compiler built in stage1 is ICEing on this code: 
 
# 127 "./include/machine/ansi.h" 3 4 
typedef int __attribute__((__mode__(__DI__))) __int64_t; 
typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; 
# 139 "./include/machine/ansi.h" 3 4 
 
Which seems.... odd. 
 
Unless... just to verify, submitter, are you bootstrapping on a machine which 
is actually a Pentium 3?  If not, then the stage1 compiler, having been built 
with Pentium 3 opcodes, would be perfectly likely to die with illegal 
instructions. 
 
Otherwise, we have to track down why illegal instructions are being compiled 
into the stage1 compiler. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ansi.h:128: internal        |Compiler from stage1 ICE on
                   |compiler error: Illegal     |system header: Illegal
                   |instruction                 |instruction


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14221


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/14221] Compiler from stage1 ICE on system header: Illegal instruction
  2004-02-20  3:08 [Bug bootstrap/14221] New: ansi.h:128: internal compiler error: Illegal instruction v dot haisman at sh dot cvut dot cz
  2004-02-20  3:09 ` [Bug bootstrap/14221] " v dot haisman at sh dot cvut dot cz
  2004-02-28 23:10 ` [Bug bootstrap/14221] Compiler from stage1 ICE on system header: " neroden at gcc dot gnu dot org
@ 2004-02-29  1:43 ` v dot haisman at sh dot cvut dot cz
  2004-03-02  0:55 ` v dot haisman at sh dot cvut dot cz
  2004-03-02  1:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-02-29  1:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From v dot haisman at sh dot cvut dot cz  2004-02-29 01:43 -------
This is output of CPUID utility:

Vendor ID: "GenuineIntel"; CPUID level 2

Intel-specific functions:
Version 000006b1:
Type 0 - Original OEM
Family 6 - Pentium Pro
Model 11 -
Stepping 1
Reserved 0

Brand index: 3 [Intel Pentium III Xeon processor]
Extended brand string: "Intel(R) Celeron(TM) CPU                1000MHz"

Feature flags 0383f9ff:
FPU    Floating Point Unit
VME    Virtual 8086 Mode Enhancements
DE     Debugging Extensions
PSE    Page Size Extensions
TSC    Time Stamp Counter
MSR    Model Specific Registers
PAE    Physical Address Extension
MCE    Machine Check Exception
CX8    COMPXCHG8B Instruction
SEP    Fast System Call
MTRR   Memory Type Range Registers
PGE    PTE Global Flag
MCA    Machine Check Architecture
CMOV   Conditional Move and Compare Instructions
FGPAT  Page Attribute Table
PSE-36 36-bit Page Size Extension
MMX    MMX instruction set
FXSR   Fast FP/MMX Streaming SIMD Extensions save/restore
SSE    Streaming SIMD Extensions instruction set


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14221


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/14221] Compiler from stage1 ICE on system header: Illegal instruction
  2004-02-20  3:08 [Bug bootstrap/14221] New: ansi.h:128: internal compiler error: Illegal instruction v dot haisman at sh dot cvut dot cz
                   ` (2 preceding siblings ...)
  2004-02-29  1:43 ` v dot haisman at sh dot cvut dot cz
@ 2004-03-02  0:55 ` v dot haisman at sh dot cvut dot cz
  2004-03-02  1:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-03-02  0:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From v dot haisman at sh dot cvut dot cz  2004-03-02 00:54 -------

(gdb) run -fpreprocessed crtstuff.i -quiet -dumpbase crtstuff.c -march=pentium3
-auxbase-strip crtbegin.o -g0 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -version -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time -o crtstuff.s
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/4/wilx/tmp/gcc34/objdir/gcc/cc1 -fpreprocessed
crtstuff.i -quiet -dumpbase crtstuff.c -march=pentium3 -auxbase-strip crtbegin.o
-g0 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -version -finhibit-size-directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -o crtstuff.s
Breakpoint 2 at 0x80494dc
Breakpoint 3 at 0x80491fc
Breakpoint 2 at 0x28501c5d
Breakpoint 3 at 0x285013ec
GNU C version 3.4.0 20040301 (prerelease) (i386-unknown-freebsd4.9)
        compiled by GNU C version 3.4.0 20040301 (prerelease).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32395

Program received signal SIGILL, Illegal instruction.
ggc_collect_1 (zone=0x8413a20, need_marking=true) at
../../srcdir/gcc/ggc-zone.c:1072
1072          float min_expand = allocated_last_gc * PARAM_VALUE
(GGC_MIN_EXPAND) / 100;
(gdb) info line ../../srcdir/gcc/ggc-zone.c:1072
Line 1072 of "../../srcdir/gcc/ggc-zone.c" starts at address 0x828dd79
<ggc_collect_1+57>
   and ends at 0x828dd81 <ggc_collect_1+65>.
(gdb) disassemble  0x828dd79 0x828dd81
Dump of assembler code from 0x828dd79 to 0x828dd81:
0x0828dd79 <ggc_collect_1+57>:  cvtsi2ss 0x184(%ecx),%xmm0
End of assembler dump.


It seems that this is the instructions that causes the SIGILL. What is strange
is that it should work. This instruction is part of P3 instruction set and
according to the CPUID utility output the CPU is P3. 
...
I think it must be some huge misinterpretation of facts on my side because
anything that uses vector extensions and is compiled with -msse gives me SIGILL.
I can bootstrap with just --with-arch=i686 fine.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14221


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/14221] Compiler from stage1 ICE on system header: Illegal instruction
  2004-02-20  3:08 [Bug bootstrap/14221] New: ansi.h:128: internal compiler error: Illegal instruction v dot haisman at sh dot cvut dot cz
                   ` (3 preceding siblings ...)
  2004-03-02  0:55 ` v dot haisman at sh dot cvut dot cz
@ 2004-03-02  1:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-02  1:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-02 01:30 -------
So closing then.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14221


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-03-02  1:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20  3:08 [Bug bootstrap/14221] New: ansi.h:128: internal compiler error: Illegal instruction v dot haisman at sh dot cvut dot cz
2004-02-20  3:09 ` [Bug bootstrap/14221] " v dot haisman at sh dot cvut dot cz
2004-02-28 23:10 ` [Bug bootstrap/14221] Compiler from stage1 ICE on system header: " neroden at gcc dot gnu dot org
2004-02-29  1:43 ` v dot haisman at sh dot cvut dot cz
2004-03-02  0:55 ` v dot haisman at sh dot cvut dot cz
2004-03-02  1:30 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).