Compile a 32-bit version of OCaml on a 64-bit linux OS #5178
Original bug ID: 5178
I tried to compile a 32-bit version of OCaml because I suspect a performance loss with the 64-bit version.
make: Entering directory
the configure script (with above-mentioned option line) was indicating the following information:
Configuration for the bytecode compiler:
The text was updated successfully, but these errors were encountered:
Comment author: @xavierleroy
I ran into the same issue recently under Linux. Currently, some manual editing of the config/Makefile generated by configure is needed, which is not nice. At the very least, the wrong example should be removed from the INSTALL file. Even better would be to have a configure script that works in this case.
Comment author: monate
Here is the command I had to use to cross compile a 32 bits ocaml from an Ubuntu 64.
/configure -cc "gcc -m32" -as "as --32" -aspp "gcc -m32 -c" -host i386-linux -partialld "ld -r -melf_i386"
Then I have to run make world.opt twice as the first run ends up with
../ocamlcomp.sh -pack -g camlp4/Camlp4Top/Top.cmo camlp4/Camlp4Top/Rprint.cmo -o camlp4/Camlp4Top.cmo
Comment author: hectorpal
Hi. The problem still carry on on OCaml 4.00.1.
The offending recommendation is in INSTALL.
So, at least change the INSTALL.