Version française
Home     About     Download     Resources     Contact us    
Browse thread
OcamlMakefile weirdness
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <hars@b...>
Subject: OcamlMakefile weirdness
If I have a trailing space in the
RESULT = log2sql
line in my Makefile, I get the rather unhelpful error message:

$ LANG=C make nc
/usr/share/ocaml-tools/OCamlMakefile:901: warning: overriding commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:897: warning: ignoring old commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:900: target `log2sql' given more than once in the same rule.
/usr/share/ocaml-tools/OCamlMakefile:1048: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1034: warning: ignoring old commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1064: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1048: warning: ignoring old commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1070: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1064: warning: ignoring old commands for target `doc/log2sql'
make[1]: Entering directory `..../log2sql'
/usr/share/ocaml-tools/OCamlMakefile:897: warning: overriding commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:848: warning: ignoring old commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:901: warning: overriding commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:897: warning: ignoring old commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:900: target `log2sql' given more than once in the same rule.
/usr/share/ocaml-tools/OCamlMakefile:1048: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1034: warning: ignoring old commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1064: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1048: warning: ignoring old commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1070: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1064: warning: ignoring old commands for target `doc/log2sql'
making ._d/log2sql.d from log2sql.ml
make[1]: Leaving directory `..../log2sql'
make[1]: Entering directory `..../log2sql'
/usr/share/ocaml-tools/OCamlMakefile:897: warning: overriding commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:848: warning: ignoring old commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:901: warning: overriding commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:897: warning: ignoring old commands for target `log2sql'
/usr/share/ocaml-tools/OCamlMakefile:900: target `log2sql' given more than once in the same rule.
/usr/share/ocaml-tools/OCamlMakefile:1048: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1034: warning: ignoring old commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1064: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1048: warning: ignoring old commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1070: warning: overriding commands for target `doc/log2sql'
/usr/share/ocaml-tools/OCamlMakefile:1064: warning: ignoring old commands for target `doc/log2sql'
ocamlopt -c -I ../parselog/ -I /usr/lib/ocaml/3.08/pcre -I /usr/lib/ocaml/3.08/postgres .... log2sql.ml
ocamlopt -a     -I ../parselog/ -I /usr/lib/ocaml/3.08/pcre -I /usr/lib/ocaml/3.08/postgres .... -ccopt -L../parselog/ -ccopt -L/usr/lib/ocaml/3.08/pcre -ccopt -L/usr/lib/ocaml/3.08/postgres .... 
pcre.cmxa unix.cmxa postgres.cmxa .... parselog.cmxa   \
                          -o log2sql log2sql.cmx
/usr/lib/ocaml/3.08/pcre/pcre.cmxa is not a compilation unit description.
make[1]: *** [log2sql] Error 2
make[1]: Leaving directory `..../log2sql'
make: *** [native-code] Error 2

The ocamlopt -a is a wee bit strange here...

Version is $Id: OCamlMakefile,v 1.67 2004/08/19 14:11:49 mottl Exp $
from the debian package
ii  ocaml-tools          2004.08.22-1         Various tools for ocaml programmers

Yours, Florian.