From: Florian Hars <hars@bik-gmbh.de>
To: caml-list@inria.fr
Subject: OcamlMakefile weirdness
Date: Mon, 25 Oct 2004 16:57:53 +0200 [thread overview]
Message-ID: <417D1471.9050807@bik-gmbh.de> (raw)
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.
reply other threads:[~2004-10-25 14:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=417D1471.9050807@bik-gmbh.de \
--to=hars@bik-gmbh.de \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox