Re: labltk native code build problem on arm. (PR#327)
Just cross posting to the debian arm list and Philip Blundell.
On Wed, Mar 28, 2001 at 10:26:25PM +0900, Jacques Garrigue wrote:
> > Hello, ...
> > While packaging ocaml 3.01 for debian, i received the following bug report
> > from the arm porters.
> > make: Entering directory `/home/luther/ocaml-3.01/otherlibs/labltk/lib'
> > ../../../boot/ocamlrun ../../../ocamlopt -I ../../../stdlib -labels -c -I
> > ../support tk.ml
> > /tmp/camlasm0.s: Assembler messages:
> > /tmp/camlasm0.s:26142: Error: Invalid constant
> > /tmp/camlasm0.s:30129: Error: Invalid constant
> > Assembler error, input left in file /tmp/camlasm0.s
> > make: *** [tk.cmx] Error 2
> > make: Leaving directory `/home/luther/ocaml-3.01/otherlibs/labltk/lib'
> > make: *** [allopt] Error 2
> I didn't even know that there was an arm native port for ocaml...
> Well, my first guess would be that there is ome limitation in the arm
> architecture on the size of immediately loaded constants. Since large
> integer constants are only generated when compiling polymorphic variants
> that would explain why the problem only appears with labltk.
> Having the actual camlasm0.s producing these errors would certainly help.
> You can produce it by adding -S to the command line, but with tk.ml it
> will be huge.