OCamlPro/typerex — Issue #21: Failure to build
Author: gsg
Created: 2012-02-24 17:46:25+00:00
State: open

Hi. I'm trying to set typerex up for the first time, and I'm getting a build failure. I'm running Debian with emacs 23.2.1 and OCaml 3.11.2.

What I did:

Got typerex-1.0.0rc1.tar.gz from http://www.typerex.org/download.html, extracted it into a directory
ran ./configure (seemed to work)
ran make

Make failed with the following:

echo "(* Generated from ocp-typerex.ocp.template *)" >ocp-typerex.ocp
cat ocp-typerex.ocp.template | \
sed -e 's/OCP_BUILD_OCAMLC/"ocamlc"/g' | \
sed -e 's/OCP_BUILD_OCAMLOPT/"ocamlopt"/g' | \
sed -e 's/OCP_BUILD_OCAMLDEP/"ocamldep"/g' | \
sed -e 's/OCP_BUILD_OCAMLLEX/"ocamllex"/g' | \
sed -e 's/OCP_BUILD_OCAMLYACC/"ocamlyacc"/g' | \
sed -e 's/OCP_BUILD_CCOPT//g' | \
cat >>ocp-typerex.ocp
/home/ggole/othersrc/typerex-1.0.0rc1/_obuild/unixrun /home/ggole/othersrc/typerex-1.0.0rc1/boot/ocp-build.boot -init -scan -sanitize typerex-config ocplib-lang ocplib-system ocaml-config ocp-type ocp-wrapper ocp-wizard
Fatal error: unknown C primitive `caml_expm1_float'
make: *** [compile] Error 2

My guess is that I have the wrong version of something, although the docs claim that 3.11.2 is OK.