🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Eric D. Hendrickson Sun, 27 Jan 1991 15:19
GCC breaks when compiling gnuchess 3.1 (gnuchess.c)
#6016
Author: Eric D. Hendrickson
Date: Sun, 27 Jan 1991 15:19
61 lines
3346 bytes
Hello, I just picked up a copy of gnuchess 3.1 from prep, and tried to
compile it (without changing anything but the directory paths in the
Makefile).  I got the following identical (fatal) errors from gcc 1.39 
and gcc 1.37.1.   (and gcc 1.38)

Here is the gcc 1.39 trial...
======================================================================
[1]edh@ux ~/src/gnuchess 80% make
        gcc -W -O -finline-functions -fstrength-reduce -DHASHFILE=\"/home/staff/
edh/bin/lib/gnu/gnuchess.hash\" -DBOOK=\"/home/staff/edh/bin/lib/gnu/gnuchess.bo
ok\" -c gnuchess.c
gnuchess.c: In function ScorePosition:
gnuchess.c:3120: The following insn was not recognizable:
(insn/i 1670 1669 1671 (set (reg:HI 741)
       (plus:SI (reg:SI 742)
           (const_int 10))) -1 (insn_list 1669 (nil))
   (expr_list:REG_DEAD (reg:SI 742)
       (nil)))
gcc: Program cc1 got fatal signal 6.
*** Error code 1

Stop.
[1]edh@ux ~/src/gnuchess 81% which gcc
/usr/local/gnu/bin/gcc
[1]edh@ux ~/src/gnuchess 82% gcc -v
gcc version 1.39
[1]edh@ux ~/src/gnuchess 83%
======================================================================
And here is the 1.37.1 trial...
======================================================================
[1]edh@ux ~/src/gnuchess 84% make
        /usr/local/bin/gcc -W -O -finline-functions -fstrength-reduce -DHASHFILE
=\"/home/staff/edh/bin/lib/gnu/gnuchess.hash\" -DBOOK=\"/home/staff/edh/bin/lib/
gnu/gnuchess.book\" -c gnuchess.c
gnuchess.c: In function ScorePosition:
gnuchess.c:3120: The following insn was not recognizable:
(insn/i 1667 1666 1668 (set (reg:HI 738)
       (plus:SI (reg:SI 739)
           (const_int 10))) -1 (insn_list 1666 (nil))
   (expr_list:REG_DEAD (reg:SI 739)
       (nil)))
/usr/local/bin/gcc: Program cc1 got fatal signal 6.
*** Error code 1

Stop.
[1]edh@ux ~/src/gnuchess 85% /usr/local/bin/gcc -v
gcc version 1.37.1
[1]edh@ux ~/src/gnuchess 86%
======================================================================
This is on an Encore Multimax 520 (ns32532) running Umax 4.3.  Both
versions of gcc were installed (I also tried gcc 1.38, same deal)
stand-alone, as the gnu ld and gas are not installed on this machine.  
"fixincludes" was run.

thanks,
		Eric Hendrickson
-- 
/----------"Oh carrots are divine, you get a dozen for dime, its maaaagic."--
|Eric (the "Mentat-Philosopher") Hendrickson	  Academic Computing Services
|edh@ux.acs.umn.edu	   The game is afoot!	      University of Minnesota
\-"What does 'masochist' and 'amnesia' mean?   Beats me, I don't remember."--
Re: GCC breaks when compiling gnuchess 3.1 (gnuchess.c)
#6017
Author: Eric D. Hendrickson
Date: Sun, 27 Jan 1991 15:50
55 lines
3429 bytes
Here's a bit more info, from gdb and from a copy of gcc 1.35 that is still
laying around.
		--eric

[1]edh@ux ~/src/gnuchess 103% gdb /usr/local/gnu/libexec/gcc-cc1 core
GDB 3.1.2, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /usr/local/gnu/libexec/gcc-cc1...done.
Core file is from "gcc-cc1".
Program terminated with signal 6, IOT trap.
Type "help" for a list of commands.
(gdb) where
#0  0x7221d in kill ()
#1  0xffff8eb4 in ?? ()
#2  0xffff8ed0 in ?? ()
#3  0x146 in gcc_compiled. () (c-parse.tab.c line 121)
#4  0x2020202 in ?? ()
(gdb)

I looked at c-parse.tab.c, I can't see anything wrong with it, but then I
don't know what to look for.

Here is the output from gcc 1.35, which so far seems to have worked, but...

        /usr/gnu/bin/gcc -W -O -finline-functions -fstrength-reduce -DHASHFILE=\
"/home/staff/edh/bin/lib/gnu/gnuchess.hash\" -DBOOK=\"/home/staff/edh/bin/lib/gn
u/gnuchess.book\" -c gnuchess.c
gnuchess.c: In function GenMoves:
gnuchess.c:1656: warning: function too large to be inline
gnuchess.c: In function KingScan:
gnuchess.c:2579: warning: function too large to be inline
gnuchess.c: In function PawnValue:
gnuchess.c:2706: warning: function too large to be inline
gnuchess.c: In function BishopValue:
gnuchess.c:2865: warning: function too large to be inline
gnuchess.c: In function RookValue:
gnuchess.c:2898: warning: function too large to be inline
        /usr/gnu/bin/gcc -W -O -finline-functions -fstrength-reduce -c uxdsp.c
        /usr/gnu/bin/gcc -W -O -finline-functions -fstrength-reduce -o gnuchess
gnuchess.o uxdsp.o -lcurses -ltermcap
        /usr/gnu/bin/gcc -W -O -finline-functions -fstrength-reduce -DCHESSTOOL
-c nondsp.c
        /usr/gnu/bin/gcc -W -O -finline-functions -fstrength-reduce -o gnuchessr
 gnuchess.o nondsp.o
        /usr/gnu/bin/gcc -W -O -finline-functions -fstrength-reduce -c nuxdsp.c
        /usr/gnu/bin/gcc -W -O -finline-functions -fstrength-reduce -o gnuchessn
 gnuchess.o nuxdsp.o -lcurses -ltermcap
[1]edh@ux ~/src/gnuchess 117%
-- 
/----------"Oh carrots are divine, you get a dozen for dime, its maaaagic."--
|Eric (the "Mentat-Philosopher") Hendrickson	  Academic Computing Services
|edh@ux.acs.umn.edu	   The game is afoot!	      University of Minnesota
\-"What does 'masochist' and 'amnesia' mean?   Beats me, I don't remember."--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads