caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* gcc 4.0.0 and OCaml 3.08.3
@ 2005-05-22 13:53 Bill Smith
  2005-05-25  9:11 ` [Caml-list] " Sven Luther
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Smith @ 2005-05-22 13:53 UTC (permalink / raw)
  To: caml-list

I've been having trouble with the "make world" phase of compiling OCaml 
3.08.3 with gcc 4.0.0.

I'm using Linux 2.4.26 on an AMD Athlon XP.

There error I get is:

/gcc-4.0.0/bin/gcc -O2 -O -I../../byterun -D_FILE_OFFSET_BITS=64 
-D_REENTRANT -fPIC -DBNG_ARCH_ia32 -DBNG_ASM_LEVEL=2   -c -o bng.o bng.c
In file included from bng.c:21:
bng_ia32.c: In function 'bng_ia32_mult_add_digit':
bng_ia32.c:111: error: can't find a register in class 'GENERAL_REGS' while 
reloading 'asm'
make[1]: *** [bng.o] Error 1

To deal with the problem I've just fallen back to gcc 3.4.3 which compiles 
ocaml 3.08.3 successfully.

Bill Smith


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

* Re: [Caml-list] gcc 4.0.0 and OCaml 3.08.3
  2005-05-22 13:53 gcc 4.0.0 and OCaml 3.08.3 Bill Smith
@ 2005-05-25  9:11 ` Sven Luther
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Luther @ 2005-05-25  9:11 UTC (permalink / raw)
  To: Bill Smith; +Cc: caml-list

On Sun, May 22, 2005 at 08:53:33AM -0500, Bill Smith wrote:
> I've been having trouble with the "make world" phase of compiling OCaml 
> 3.08.3 with gcc 4.0.0.
> 
> I'm using Linux 2.4.26 on an AMD Athlon XP.
> 
> There error I get is:
> 
> /gcc-4.0.0/bin/gcc -O2 -O -I../../byterun -D_FILE_OFFSET_BITS=64 
> -D_REENTRANT -fPIC -DBNG_ARCH_ia32 -DBNG_ASM_LEVEL=2   -c -o bng.o bng.c
> In file included from bng.c:21:
> bng_ia32.c: In function 'bng_ia32_mult_add_digit':
> bng_ia32.c:111: error: can't find a register in class 'GENERAL_REGS' while 
> reloading 'asm'
> make[1]: *** [bng.o] Error 1
> 
> To deal with the problem I've just fallen back to gcc 3.4.3 which compiles 
> ocaml 3.08.3 successfully.

We (debian/ubuntu ocaml maintainers), filled a bug report in the debian BTS
about this exact same problem a week or two ago, didn't check for any reply
there thoguh.

Notice that this only affects ia32, but not powerpc, amd64 or ia64, so maybe
it is best to just ditch those legacy hardware :)

Friendly,

Sven Luther


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

end of thread, other threads:[~2005-05-25  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-22 13:53 gcc 4.0.0 and OCaml 3.08.3 Bill Smith
2005-05-25  9:11 ` [Caml-list] " Sven Luther

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 NNTP newsgroup(s).