English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
gcc 4.0.0 and OCaml 3.08.3
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-25 (09:17)
From: Sven Luther <sven.luther@w...>
Subject: Re: [Caml-list] gcc 4.0.0 and OCaml 3.08.3
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 :)


Sven Luther