<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/6b8b6486de181a32ff80a0d9ff3f965c"
  from="Sven Luther &lt;sven.luther@w...&gt;"
  author="Sven Luther"
  date="2005-05-25T09:17:17"
  subject="Re: [Caml-list] gcc 4.0.0 and OCaml 3.08.3"
  prev="2005/05/a8f5c477160bb3cc4aa068162914bbbf"
  next="2005/05/1bf5c026db2f809e0c5de3be7859547d"
  prev-in-thread="2005/05/8bbe2feab9ab14bbc29257c42b6f987a"
  prev-thread="2005/05/4cf1bf6228392aa9ff3757ed24cc7182"
  next-thread="2005/05/c5385095b48c488bf80d7ab7cbe6f014"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="gcc 4.0.0 and OCaml 3.08.3">
<msg 
  url="2005/05/8bbe2feab9ab14bbc29257c42b6f987a"
  from="Bill Smith &lt;sesquized@s...&gt;"
  author="Bill Smith"
  date="2005-05-22T13:53:49"
  subject="gcc 4.0.0 and OCaml 3.08.3">
<msg 
  url="2005/05/6b8b6486de181a32ff80a0d9ff3f965c"
  from="Sven Luther &lt;sven.luther@w...&gt;"
  author="Sven Luther"
  date="2005-05-25T09:17:17"
  subject="Re: [Caml-list] gcc 4.0.0 and OCaml 3.08.3">
</msg>
</msg>
</thread>

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

</contents>

</message>

