Hello I've run into a problem with ocamlbuild and -pack. It will build bytecode packages, but not native ones. E.g., I have 2 files: $ cat a.ml : type t = int $ cat lib.mlpack: A Then the bytecode package works $ ocamlbuild -classic-display lib.byte /sw/bin/ocamldep.opt -modules a.ml > a.ml.depends /sw/bin/ocamlc.opt -c -o a.cmo a.ml /sw/bin/ocamlc.opt -pack a.cmo -o lib.cmo /sw/bin/ocamlc.opt lib.cmo -o lib.byte but not the native code ~/tmp/tmp2 $ ocamlbuild -classic-display lib.native /sw/bin/ocamlopt.opt -c -o a.cmx a.ml touch lib.mli ; if /sw/bin/ocamlopt.opt -pack a.cmx -o lib.cmx ; then rm -f lib.mli ; else rm -f lib.mli ; exit 1; fi + touch lib.mli ; if /sw/bin/ocamlopt.opt -pack a.cmx -o lib.cmx ; then rm -f lib.mli ; else rm -f lib.mli ; exit 1; fi File a.cmx was not compiled with the `-for-pack Lib' option Command exited with code 1. What am I doing wrong? Thanks for your time, Sean