ocaml/ocamlbuild
Gabriel Scherer 5ca901cfa6 ocamlbuild: only show backtrace in verbose mode
Building foo.cmo in an empty directory (so with in particular no
foo.ml) currently returns the following output:

> Solver failed:
>   Ocamlbuild cannot find or build foo.ml.  A file with such a name
>   would usually be a source file.  I suspect you have given a wrong
>   target name to Ocamlbuild.
> Backtrace:
>   - Failed to build the target foo.cmo
>       - Building foo.cmo:
>           - Failed to build all of these:
>               - Building foo.ml:
>                   - Failed to build all of these:
>                       - Building foo.mly
>                       - Building foo.mll
>               - Building foo.mli:
>                   - Building foo.mly
>               - Building foo.mlpack
>               - Building foo.mli:
>                   - Building foo.mly
> Compilation unsuccessful after building 0 targets (0 cached) in 00:00:00.

While the "Solver failed" part is nice and reasonably easy to
understand, users report that the "Backtrace" part is confusing
(it talks about files they don't know about) -- and it can be so large
that the explanation above is completely hidden.

This patch disables backtrace-printing by default; it is now only
shown when some "-verbose N" (N starting at 1) argument is passed.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14732 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-03 21:21:58 +00:00
..
examples fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
man PR#6166: document -ocamldoc option of ocamlbuild 2013-09-09 08:52:42 +00:00
misc fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
test Update reference file for the ocamlbuild tests - still need some more work 2012-12-22 01:34:23 +00:00
testsuite PR#6184: ocamlbuild: `ocamlfind ocamldep` does not support -predicate 2014-03-20 16:05:23 +00:00
.depend refine ocamlbuild/.depend for `make -jN` to work again 2014-04-12 06:56:49 +00:00
AUTHORS Add the ocamlbuild directory 2007-02-07 08:59:16 +00:00
ChangeLog clean up TABs and whitespace 2012-07-30 18:04:46 +00:00
FAQ [ocamlbuild] See ChangeLog 2007-03-01 14:40:11 +00:00
Makefile merge branch "safe-string" 2014-04-29 11:56:17 +00:00
Makefile.noboot merge branch "safe-string" 2014-04-29 11:56:17 +00:00
TODO ocamlbuild,TODO: one thing done 2010-02-03 13:11:21 +00:00
_tags Fix PR#5461 2012-01-17 21:57:54 +00:00
bool.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
bool.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
command.ml PR#5547: Enable the "-use-ocamlfind" option by default 2013-07-27 00:02:13 +00:00
command.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
configuration.ml ocamlbuild: report location in Tags.acknowledge warnings 2013-09-15 11:36:58 +00:00
configuration.mli ocamlbuild: detect tags in _tags not used by any flag declaration (typos?) 2013-09-15 11:36:43 +00:00
digest_cache.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
digest_cache.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
discard_printf.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
discard_printf.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
display.ml merge branch "safe-string" 2014-04-29 11:56:17 +00:00
display.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
exit_codes.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
exit_codes.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
fda.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
fda.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
findlib.ml PR#5212: Fix: ocamlbuild does not warn for bad input 2013-01-01 04:53:51 +00:00
findlib.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
flags.ml ocamlbuild: rename 'mark_as_used' into 'mark_flag_used' and expose in PLUGIN 2013-09-15 11:36:52 +00:00
flags.mli ocamlbuild: rename 'mark_as_used' into 'mark_flag_used' and expose in PLUGIN 2013-09-15 11:36:52 +00:00
glob.ml turn more (or) into (||) to please the new warning 2013-05-28 12:16:10 +00:00
glob.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
glob_ast.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
glob_ast.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
glob_lexer.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
glob_lexer.mll fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
hooks.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
hooks.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
hygiene.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
hygiene.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
lexers.mli ocamlbuild: use Loc.print_loc for lexing errors 2013-09-15 11:36:56 +00:00
lexers.mll ocamlbuild: use Loc.print_loc for lexing errors 2013-09-15 11:36:56 +00:00
loc.ml ocamlbuild: a short location printing implementation 2013-09-15 11:36:47 +00:00
loc.mli ocamlbuild: a short location printing implementation 2013-09-15 11:36:47 +00:00
log.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
log.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
main.ml ocamlbuild: only show backtrace in verbose mode 2014-05-03 21:21:58 +00:00
main.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
my_std.ml merge branch "safe-string" 2014-04-29 11:56:17 +00:00
my_std.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
my_unix.ml merge branch "safe-string" 2014-04-29 11:56:17 +00:00
my_unix.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocaml_arch.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocaml_arch.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocaml_compiler.ml [PR#6059, patch by Anil Madhavapeddy] add -output-obj rules and targets to ocamlbuild for byte and native code 2013-06-30 08:34:42 +00:00
ocaml_compiler.mli [PR#6059, patch by Anil Madhavapeddy] add -output-obj rules and targets to ocamlbuild for byte and native code 2013-06-30 08:34:42 +00:00
ocaml_dependencies.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocaml_dependencies.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocaml_specific.ml PR#6184: ocamlbuild: `ocamlfind ocamldep` does not support -predicate 2014-03-20 16:05:23 +00:00
ocaml_specific.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocaml_tools.ml fix PR#5763: ocamlbuild does not give correct flags when running menhir 2012-09-21 15:16:24 +00:00
ocaml_tools.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocaml_utils.ml ocamlbuild: rename 'mark_as_used' into 'mark_flag_used' and expose in PLUGIN 2013-09-15 11:36:52 +00:00
ocaml_utils.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuild.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuild.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuild.mltop [ocamlbuild] Extract executor as ocamlbuild_excutor and my_unix_with_unix as ocamlbuild_unix_plugin. 2007-11-22 18:34:22 +00:00
ocamlbuild.odocl Remove old module from ocamlbuild bootstrap Std_signatures to tide up 2013-01-01 00:33:26 +00:00
ocamlbuild_executor.ml Ocamlbuild: make log printing code tail-recursive 2014-05-01 09:28:35 +00:00
ocamlbuild_executor.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuild_pack.mlpack ocamlbuild: a short location printing implementation 2013-09-15 11:36:47 +00:00
ocamlbuild_plugin.ml ocamlbuild: rename 'mark_as_used' into 'mark_flag_used' and expose in PLUGIN 2013-09-15 11:36:52 +00:00
ocamlbuild_plugin.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuild_unix_plugin.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuild_unix_plugin.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuild_where.ml Un-bootstrapping of ocamlbuild: build it using a plain Makefile. 2013-12-12 17:38:43 +00:00
ocamlbuild_where.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuildlib.mllib [ocamlbuild] Extract executor as ocamlbuild_excutor and my_unix_with_unix as ocamlbuild_unix_plugin. 2007-11-22 18:34:22 +00:00
ocamlbuildlight.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuildlight.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ocamlbuildlightlib.mllib Add the ocamlbuild directory 2007-02-07 08:59:16 +00:00
options.ml Un-bootstrapping of ocamlbuild: build it using a plain Makefile. 2013-12-12 17:38:43 +00:00
options.mli ocamlbuild: get myocamlbuild.ml tags from a new -plugin-tag(s) option instead of _tags 2013-08-24 20:46:05 +00:00
param_tags.ml ocamlbuild: report location in Tags.acknowledge warnings 2013-09-15 11:36:58 +00:00
param_tags.mli ocamlbuild: report location in Tags.acknowledge warnings 2013-09-15 11:36:58 +00:00
pathname.ml PR#5933 type-specialize 'let compare = compare' on ints and strings 2013-03-19 07:22:12 +00:00
pathname.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
plugin.ml PR#6187: Add a warning when using -plugin-tag(s) without myocamlbuild.ml 2014-03-20 15:54:10 +00:00
plugin.mli ocamlbuild: move plugin second-run to the end of the initialization phase 2013-08-13 11:43:14 +00:00
ppcache.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
ppcache.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
report.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
report.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
resource.ml PR#5102: ocamlbuild fails when using an unbound variable in rule dependency 2012-10-10 13:59:47 +00:00
resource.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
rule.ml ocamlbuild: move show_documentation's implementation in the respective modules to improve encapsulation 2013-09-15 11:36:33 +00:00
rule.mli ocamlbuild: move show_documentation's implementation in the respective modules to improve encapsulation 2013-09-15 11:36:33 +00:00
shell.ml remove non-ascii chars 2012-10-17 21:03:19 +00:00
shell.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
signatures.mli ocamlbuild: rename 'mark_as_used' into 'mark_flag_used' and expose in PLUGIN 2013-09-15 11:36:52 +00:00
slurp.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
slurp.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
solver.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
solver.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
start.sh Remove old module from ocamlbuild bootstrap Std_signatures to tide up 2013-01-01 00:33:26 +00:00
tags.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
tags.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
tools.ml fix formatting of copyright headers 2012-08-01 14:47:00 +00:00
tools.mli fix formatting of copyright headers 2012-08-01 14:47:00 +00:00