Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006218OCamlOCaml generalpublic2013-11-02 11:002014-07-16 17:21
Reportergoswin 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version4.00.1 
Target VersionFixed in Version 
Summary0006218: avoid overwriting files when mistakenly setting -o to a source or intermediate filename
DescriptionWhen using the name of an intermediate file as output name the compiler truncates it own files and fails:

% ocamlopt -output-obj -o foo.o foo.ml
foo.o: file not recognized: File truncated
File "caml_startup", line 1:
Error: Error during linking

It would be easier to understand the problem if ocamlopt would catch the name collision.
Steps To Reproduceecho "let () = ()" >foo.ml
ocamlopt -output-obj -o foo.o foo.ml
Tagsjunior_job
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-11-02 11:00 goswin New Issue
2013-11-02 14:20 gasche Tag Attached: junior_job
2014-05-30 15:19 shinwell Status new => confirmed
2014-06-19 17:21 gasche Summary Doesn't fail with name conflicts => avoid overwriting files when mistakenly setting -o to a source or intermediate filename
2014-07-16 17:21 doligez Severity minor => feature


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker