From: Jens-Ulrik Petersen <petersen@kurims.kyoto-u.ac.jp>
To: Paul Bristow <paul@cee.hw.ac.uk>
Cc: caml-list@inria.fr
Subject: Re: building ocaml-2.00 with egcs
Date: 16 Oct 1998 09:54:05 +0900 [thread overview]
Message-ID: <lbg1cpnx76.fsf@boron.kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: Paul Bristow's message of "Wed, 14 Oct 1998 16:05:24 +0100"
>>>>> "PB" == Paul Bristow <paul@cee.hw.ac.uk> writes:
PB> Then I did make world and got:
PB> make[1]: Entering directory
PB> `/a/azdak/root/depot0/.primary/dsg/local/src/ocaml-2.00/byterun'
PB> gcc -O -fno-defer-pop -Wall -c interp.c -o interp.o
[:]
PB> interp.c:983: fixed or forbidden register was spilled. This
PB> may be due to a compiler bug or to impossible asm statements
PB> or clauses. make[1]: *** [interp.o] Error 1 make[1]: Leaving
PB> directory
PB> `/a/azdak/root/depot0/.primary/dsg/local/src/ocaml-2.00/byterun'
PB> make: *** [coldstart] Error 2
PB> gcc -v Reading specs from
PB> /usr/lib/gcc-lib/i586-linux/egcs-2.90.29/specs gcc version
PB> egcs-2.90.29 980515 (egcs-1.0.3 release)
PB> I suspect this is the problem. Has anyone else succesfully
PB> compiled with egcs?
I could compile 2.00 with the gcc-2.7.2.3-4.2 package of Debian 2.0.
But I successfully built it with Debian egcs-2.90.28-0.1:
% egcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.90.28/specs
gcc version egcs-2.90.28 980423 (egcs-1.0.3 prerelease)
after applying the following patch posted here earlier:
Index: interp.c
===================================================================
RCS file: /net/pauillac/caml/repository/csl/byterun/interp.c,v
retrieving revision 1.46
diff -c -r1.46 interp.c
*** interp.c 1998/06/23 16:47:02 1.46
--- interp.c 1998/09/04 09:45:39
***************
*** 124,130 ****
#ifdef __i386__
#define PC_REG asm("%esi")
#define SP_REG asm("%edi")
! #define ACCU_REG asm("%ebx")
#endif
#if defined(PPC) || defined(_POWER) || defined(_IBMR2)
#define PC_REG asm("26")
--- 124,130 ----
#ifdef __i386__
#define PC_REG asm("%esi")
#define SP_REG asm("%edi")
! #define ACCU_REG
#endif
#if defined(PPC) || defined(_POWER) || defined(_IBMR2)
#define PC_REG asm("26")
--
Jens-Ulrik Holger Petersen <http://www.kurims.kyoto-u.ac.jp/~petersen/>
Research Institute for Mathematical Sciences, Kyoto University
next prev parent reply other threads:[~1998-10-16 11:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-14 15:05 Objective Caml 2 with RedHat 5.1 Paul Bristow
1998-10-15 17:17 ` Xavier Leroy
1998-10-16 0:05 ` David Monniaux
1998-10-16 0:54 ` Jens-Ulrik Petersen [this message]
1998-10-16 23:33 ` building ocaml-2.00 with gcc-2.7.2.3 Jens-Ulrik Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lbg1cpnx76.fsf@boron.kurims.kyoto-u.ac.jp \
--to=petersen@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=paul@cee.hw.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox