Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005312OCaml~DO NOT USE (was: OCaml general)public2011-07-09 14:502016-12-07 11:49
ReporterDmitry Grebeniuk 
Assigned Togasche 
PlatformOSOS Version
Product Version3.12.1+dev 
Target Version4.00.0+devFixed in Version 
Summary0005312: windows, @responsefile and warnings-as-errors
DescriptionI have software that uses new syntax of ocamlc command
line, "-w @a" (enable all warnings and treat them as
errors), but function "expand_argument" in
"byterun/win32.c" tries to expand "@a" as a filename:

> ocaml -w @a
Cannot open file a

As the @responsefile functionality is not widely used
anymore, I have fixed it locally and have not
experienced any trouble. I don't know whether
this solution is acceptable.
TagsNo tags attached.
Attached Files

- Relationships
related to 0006864assigneddoligez linking with flexlink fails when passing arguments by response file 

-  Notes
lefessan (developer)
2012-03-26 16:12

Gabriel, we agreed that it is time to remove responsefile from the runtime. Could you do it ?
doligez (administrator)
2012-07-10 14:01

For the record, you can work around the problem by adding something before the @:

  ocamlc -w a@a
gasche (developer)
2012-07-10 14:05

The feature has now been removed.

This means that OCaml programs will not expand command-line arguments beginning with a "@" as responsefiles on Windows anymore, but instead pass them directly to the program (in Sys.argv as usual). All OCaml programs compiled under Windows are affected.

This is a change of behavior, but a community poll on the mailing-list indicated that basically no one was aware of this feature. Removing it will therefore protect users from a few surprises if they try, as the OCaml compiler authors, to use "@..." as a valid syntax for specific command-line parameters...

- Issue History
Date Modified Username Field Change
2011-07-09 14:50 Dmitry Grebeniuk New Issue
2012-03-26 16:11 lefessan Assigned To => gasche
2012-03-26 16:11 lefessan Status new => assigned
2012-03-26 16:12 lefessan Note Added: 0007171
2012-07-10 14:01 doligez Note Added: 0007681
2012-07-10 14:01 doligez Target Version => 4.00.0+dev
2012-07-10 14:05 gasche Note Added: 0007682
2012-07-10 14:05 gasche Status assigned => resolved
2012-07-10 14:05 gasche Resolution open => fixed
2015-05-11 14:23 gasche Relationship added related to 0006864
2016-12-07 11:49 xleroy Status resolved => closed
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker