Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006080OCamlcompiler driverpublic2013-07-17 13:322018-07-20 15:36
Reporterdoligez 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformallOSOS Version
Product Version4.01.0+dev 
Target VersionFixed in Version 
Summary0006080: Some error and warning messages are not in the standard format.
DescriptionIn some cases, the compiler prints errors or warnings in a format that is not recognized by emacs. For example:

$ ocamlc -pp false foo.ml
Error while running external preprocessor
Command line: false 'foo.ml' > /tmp/ocamlppa92222

$ ocamlc -unsafe -pp camlp4o foo.ml
Warning: option -unsafe used with a preprocessor returning a syntax tree

This is bad because such messages get lost in make's log and then you don't even know that something went wrong.


A related problem, the functions Misc.fatal_error and Compenv.fatal are redundant (and they both do it wrong).
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0019266)
doligez (administrator)
2018-07-20 15:30

The second part (non-standard warning) is resolved by commit 3d0299a in GPR#1906.
(0019267)
gasche (administrator)
2018-07-20 15:36

The "related problem" part seems related to

  https://github.com/ocaml/ocaml/pull/1919 [^]

Damien, would you mind giving some feedback there, in case the "related problem" can be solved while we are at it?

- Issue History
Date Modified Username Field Change
2013-07-17 13:32 doligez New Issue
2013-07-17 16:52 doligez Severity minor => text
2013-07-17 16:52 doligez Status new => acknowledged
2013-10-08 16:49 doligez Severity text => minor
2013-10-08 16:49 doligez Status acknowledged => confirmed
2013-10-08 16:49 doligez Target Version 4.02.0+dev => 4.01.1+dev
2014-05-25 20:20 doligez Target Version 4.01.1+dev => 4.02.0+dev
2014-07-17 16:56 doligez Target Version 4.02.0+dev => 4.02.1+dev
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided
2014-09-24 00:07 doligez Target Version undecided => 4.02.2+dev / +rc1
2015-02-24 23:52 doligez Target Version 4.02.2+dev / +rc1 => 4.02.3+dev
2015-07-10 19:07 doligez Target Version 4.02.3+dev => 4.03.0+dev / +beta1
2016-04-18 15:52 doligez Target Version 4.03.0+dev / +beta1 => 4.03.1+dev
2017-02-16 14:01 doligez Target Version 4.03.1+dev => undecided
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-02-24 16:18 doligez Category -OCaml general => compiler driver
2017-02-24 16:18 doligez Target Version undecided =>
2018-07-20 15:30 doligez Note Added: 0019266
2018-07-20 15:36 gasche Note Added: 0019267


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker