Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006470OCamlOCaml windowspublic2014-06-25 20:482014-07-16 20:03
Reporternndms 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version 
Target Versionafter-4.02.0Fixed in Version 
Summary0006470: ocamlopt -shared fails on cygwin 64bit
Descriptionocamlopt -shared fails on cygwin 64bit with the following error message.

$ ocamlopt -o test.cmxs -shared test.ml
sh: -o: command not found
File "caml_startup", line 1:
Error: Error during linking

In this case, test.ml is simple.
$ cat test.ml
print_string "test\n"

This error seems to occur for all .ml files.
This error does not occur on 32bit version of cygwin.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0011841)
doligez (administrator)
2014-07-16 13:43

Reproduced.

Looks like a configuration problem: the variable that should contain the name of the C compiler is empty, and the shell takes the first option (-o) as the command name.
(0011866)
doligez (administrator)
2014-07-16 20:03

In fact the C compiler for shared libraries is not configured because they are not supported under Cygwin-64 because flexdll hasn't been ported yet.

When that happens, we should give a dummy value to the variable to make the error message more informative.

- Issue History
Date Modified Username Field Change
2014-06-25 20:48 nndms New Issue
2014-07-16 13:43 doligez Note Added: 0011841
2014-07-16 13:43 doligez Severity minor => major
2014-07-16 13:43 doligez Status new => confirmed
2014-07-16 13:43 doligez Target Version => 4.02.0+dev
2014-07-16 20:03 doligez Note Added: 0011866
2014-07-16 20:03 doligez Target Version 4.02.0+dev => after-4.02.0


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker