Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* OcamlMakefile weirdness
@ 2004-10-25 14:57 Florian Hars
  0 siblings, 0 replies; only message in thread
From: Florian Hars @ 2004-10-25 14:57 UTC (permalink / raw)
  To: caml-list

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-25 14:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-25 14:57 OcamlMakefile weirdness Florian Hars

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox