Bug#231775: FTBFS m68k: missing Build-Depends ocaml-native-compilers
On Sun, Feb 08, 2004 at 09:51:40PM +0100, Goswin von Brederlow wrote:
> Package: numerix-doc
> Version: numerix: FTBFS m68k: missing Build-Depends ocaml-native-compilers
> Severity: important
> Justification: fails to build from source
>
> Hi,
>
> numerix fails to build on m68k with the following error:
>
> sh: line 1: /usr/bin/ocamlopt: No such file or directory
Ok, this is a normal problem.
> ocamlopt is only available on archs with ocaml-native-compilers (although
Yes, the ocaml-native-compilers contain the ocamlopt compiled compiler
suite, not ocamlopt.
> its then in the ocaml.deb it seems). I suggest you add a Build-Depends for
> ocaml-native-compilers to ensure the presence of ocamlopt.
Nope, it is only needed to properly test for the presence of ocamlopt.
This can be seen for example in the camlzip package, which does :
# Add here commands to compile the package.
$(MAKE)
if [ -x /usr/bin/ocamlopt ]; then \
$(MAKE) allopt; \
fi
And then, the install target only installs the stuff that is needed.
Medwards, will you fix this bug in SVN, i will be happy to make the
upload then.
> Further the build seems to fail before that but errors get ignored:
>
> -----------------------------------------------------------------------
> mv numerix.cma lib/ocaml
> mv libmlnumx.a dllmlnumx.so lib/common
> I lib/ocaml -c lib/ocaml/numerix.ml
Strange, seems like part of a ocaml compile line or something.
> make[1]: I: Command not found
> make[1]: [lib/ocaml/numerix.cmx] Error 127 (ignored)
> I lib/ocaml -c lib/ocaml/numcount.ml
> make[1]: I: Command not found
> make[1]: [lib/ocaml/numcount.cmx] Error 127 (ignored)
> I lib/ocaml -c lib/ocaml/numcmp.ml
> make[1]: I: Command not found
> make[1]: [lib/ocaml/numcmp.cmx] Error 127 (ignored)
> ocamlmklib -o numerix -oc mlnumx -I lib/ocaml numerix.cmx numcount.cmx numcmp.cm
> x -cclib -Llib/common -lgmp -cclib -lnums
> sh: line 1: /usr/bin/ocamlopt: No such file or directory
> make[1]: *** [lib/ocaml/numerix.cmxa] Error 2
> make[1]: Leaving directory `/build/buildd/numerix-0.19'
> make: *** [build-stamp] Error 2
> --------------------------------------------------------------------
>
> You might want to check that out too before uploading a new version.
> Maybe you can build a bytecode version for m68k.
numerix is a library, so it need to build both the native and bytecode
version when there is a native code compiler, and only the bytecode
version when there is not.
Friendly,
Sven Luther
Reply to: