Hi,

On Sun, Jul 16, 2006 at 12:27:27PM +0200, Jens Peter Secher wrote:
> Maybe you can help me out with the build failure of haxe on s390.
> 
> > Automatic build of haxe_20060715-1 on lxdebian.bfinv.de by sbuild/s390 85
> > [...]
> > ocamlc -c enum.mli bitSet.mli dynArray.mli extArray.mli extHashtbl.mli 
> > extList.mli extString.mli global.mli IO.mli option.mli pMap.mli std.mli 
> > uChar.mli uTF8.mli base64.mli unzip.mli refList.mli optParse.mli dllist.mli
> > ocamlopt -c enum.ml
> > sh: ocamlopt: command not found
> > Exit Code 127 - Stopped
> > Error while running ocaml install.ml -nodoc -d .. -n
> > make: *** [build-stamp] Error 1
> > ******************************************************************************
> > Build finished at 20060715-1322
> > FAILED [dpkg-buildpackage died]
> 
> According to the build log, ocaml-nox version 3.09.2-5 is being
> installed and on my i386 system the ocamlopt binary is in that very
> package:
> 
>     [EMAIL PROTECTED]:~$ apt-file search ocamlopt
>     ocaml-native-compilers: usr/bin/ocamlopt.opt
>     ocaml-nox: usr/bin/ocamlopt
>     ocaml-nox: usr/share/man/man1/ocamlopt.1.gz
>     ocaml-nox: usr/share/man/man1/ocamlopt.opt.1.gz
> 
> Same FTBFS problem happens on arm, hppa, and mips, but I am having
> trouble loging into such Debian machines after the breakin.  When
> things settle down I will try to investigate myself.

ocamlopt, the native ocaml compiler is not available on every
architecture. Where it is not available, the bytecode compiler (ocamlc)
should be used instead. All this is explained in ocaml's policy[1].

Apparently, what you need to do is to change the lines 24 and 25 of install.ml
to:

let bytecode = true
let native = false

on architectures where /usr/bin/ocamlopt cannot be found.

Freel free to ask if you need some more help on this issue.

Cheers,

Samuel.

[1] /usr/share/doc/ocaml/ocaml_packaging_policy-html/index.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to