Objective Caml 2 with RedHat 5.1

From: Paul Bristow (paul@cee.hw.ac.uk)
Date: Wed Oct 14 1998 - 17:05:24 MET DST


Date: Wed, 14 Oct 1998 16:05:24 +0100
From: Paul Bristow <paul@cee.hw.ac.uk>
To: caml-list@inria.fr
Subject: Objective Caml 2 with RedHat 5.1

Hi,
I've recently upgraded to RedHat (Linux) 5.1 and am having problems, I
was wondering if anyone else has had exeperience with RH5.1 so I can
identify whether my problems are to do with RH5.1 or with my local
setup.
First off I tried to simply 'configure' as follows:

./configure -bindir $DEPOT/dsg/local/arch.linux/bin -libdir
$DEPOT/dsg/local/arc
h.linux/lib/ocaml -mandir $DEPOT/dsg/local/man/man1 -cc gcc -x11include
/usr/X11
R6/include -x11lib /usr/X11R6/lib

This all worked fine.
Then I did make world and got:

make[1]: Entering directory
`/a/azdak/root/depot0/.primary/dsg/local/src/ocaml-2.00/byterun'
sed -n -e '/^ /s/ \([A-Z]\)/ \&\&lbl_\1/gp' \
       -e '/^}/q' instruct.h > jumptbl.h
gcc -O -fno-defer-pop -Wall -c interp.c -o interp.o
interp.c: In function `interprete':
interp.c:151: warning: `pc' might be used uninitialized in this function

interp.c:151: warning: variable `pc' might be clobbered by `longjmp' or
`vfork'
interp.c:152: warning: `sp' might be used uninitialized in this function

interp.c:152: warning: variable `sp' might be clobbered by `longjmp' or
`vfork'
interp.c:153: warning: `accu' might be used uninitialized in this
function
interp.c:153: warning: variable `accu' might be clobbered by `longjmp'
or `vfork'
interp.c:166: warning: `env' might be used uninitialized in this
function
interp.c:166: warning: variable `env' might be clobbered by `longjmp' or
`vfork'
interp.c:167: warning: `extra_args' might be used uninitialized in this
function
interp.c:167: warning: variable `extra_args' might be clobbered by
`longjmp' or `vfork'
interp.c:168: warning: `initial_external_raise' might be used
uninitialized in this function
interp.c:168: warning: variable `initial_external_raise' might be
clobbered by `longjmp' or `vfork'
interp.c:169: warning: `initial_sp_offset' might be used uninitialized
in this function
interp.c:169: warning: variable `initial_sp_offset' might be clobbered
by `longjmp' or `vfork'
interp.c:983: fixed or forbidden register was spilled.
This may be due to a compiler bug or to impossible asm
statements or clauses.
make[1]: *** [interp.o] Error 1
make[1]: Leaving directory
`/a/azdak/root/depot0/.primary/dsg/local/src/ocaml-2.00/byterun'
make: *** [coldstart] Error 2

So I checked my compiler:

gcc -v
Reading specs from /usr/lib/gcc-lib/i586-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

I suspect this is the problem. Has anyone else succesfully compiled
with egcs?

n.b. I remembered to use sh and not csh or other.

Thanks,

--
Paul C Bristow,
Dept. Computing & Elec. Eng. Heriot-Watt University, Edinburgh EH14 4AS.
Phone: (+44) 131 451 5111 ext 4179.           e-mail: paul@cee.hw.ac.uk
"Smith and Wesson, the ultimate point and click interface!"



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:16 MET