MLstate/opalang — Issue #42: cannot build opa on 32 bit linux (fails with "Unbound module Cryptokit")
Author: martindemello
Created: 2012-02-27 04:37:46+00:00
State: open

I've installed ocaml and libraries via godi. This is the latest opa from git (commit 8e30b1e52fbb4ac77b454054e970eb942a3f5ef8). configure works fine:
-----
$ ./configure
Checking your OS... Linux
Checking your architecture... ix86
Checking ocamlopt... /home/martin/opt/godi/bin/ocamlopt.opt
Checking ocamlbuild... /home/martin/opt/godi/bin/ocamlbuild
Checking ocamldir... /home/martin/opt/godi/lib/ocaml/std-lib
Checking ocaml version... 3.12.1
Checking your ocaml setup... 3.12.1, Unix 32bit
Checking for camlp4... /home/martin/opt/godi/bin/camlp4o
Checking for perl 5... found
Checking for java... found
Checking for camlidl... Disabled
Checking for ocamlfind... /home/martin/opt/godi/bin/ocamlfind
Checking for ssl... ocamlfind:/home/martin/opt/godi/lib/ocaml/pkg-lib/ssl, OK
Checking for cryptokit... ocamlfind:/home/martin/opt/godi/lib/ocaml/site-lib/cryptokit, OK
Checking for camlzip... ocamlfind:/home/martin/opt/godi/lib/ocaml/pkg-lib/camlzip, OK
Checking for graph... +ocamlgraph, OK
Checking for ulex... ocamlfind:/home/martin/opt/godi/lib/ocaml/pkg-lib/ulex, OK

Congrats, you're all set. Installation will be done in:
/usr/local
-----

but make fails with:

make[1]: Entering directory `/home/martin/opt/opalang/_build/crypto.opp'
/home/martin/opt/godi/bin/ocamlopt.opt -I +qmltop -I ../libtools -I ../libsecurity -I ../libqmlcompil -I ../libnet -I ../libbsl -I ../libbase -I ../database -I +cryptokit -I ../appruntime -I /lib/opa/static -c cryptoMLRuntime.mli
/home/martin/opt/godi/bin/ocamlopt.opt -I +qmltop -I ../libtools -I ../libsecurity -I ../libqmlcompil -I ../libnet -I ../libbsl -I ../libbase -I ../database -I +cryptokit -I ../appruntime -I /lib/opa/static -c cryptoLoader.ml
/home/martin/opt/godi/bin/ocamlopt.opt -I +qmltop -I ../libtools -I ../libsecurity -I ../libqmlcompil -I ../libnet -I ../libbsl -I ../libbase -I ../database -I +cryptokit -I ../appruntime -I /lib/opa/static -c cryptoPlugin.ml
/home/martin/opt/godi/bin/ocamlopt.opt -I +qmltop -I ../libtools -I ../libsecurity -I ../libqmlcompil -I ../libnet -I ../libbsl -I ../libbase -I ../database -I +cryptokit -I ../appruntime -I /lib/opa/static -c cryptoMLRuntime.ml
File "plugins/crypto/bslCrypto.ml", line 27, characters 2-28:
Error: Unbound module Cryptokit
make[1]: *** [cryptoMLRuntime.cmx] Error 2
make[1]: Leaving directory `/home/martin/opt/opalang/_build/crypto.opp'
Error
building failure due to error(s) in source files