Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006470OCamlplatform support (windows, cross-compilation, etc)public2014-06-25 20:482017-02-16 15:11
Reporternndms 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformOSOS Version
Product Version 
Target Version4.05.0 +dev/beta1/beta2/beta3/rc1Fixed in Version4.05.0 +dev/beta1/beta2/beta3/rc1 
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.
(0016069)
frisch (developer)
2016-07-13 13:59

I just tried and it seems native dynlink works with the current dev versions of flexdll and OCaml (Cygwin64 port).

@doligez : can you confirm?
(0017289)
xleroy (administrator)
2017-02-16 15:11

Tested with 4.05 and the current Cygwin 64. Seems to work.

- 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 => 4.02.1+dev
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided
2014-09-23 17:25 doligez Target Version undecided => 4.02.2+dev / +rc1
2015-02-24 23:56 doligez Target Version 4.02.2+dev / +rc1 => 4.03.0+dev / +beta1
2015-11-27 18:14 frisch Target Version 4.03.0+dev / +beta1 => later
2016-07-13 13:59 frisch Note Added: 0016069
2017-02-16 15:11 xleroy Note Added: 0017289
2017-02-16 15:11 xleroy Status confirmed => resolved
2017-02-16 15:11 xleroy Resolution open => no change required
2017-02-16 15:11 xleroy Fixed in Version => 4.05.0 +dev/beta1/beta2/beta3/rc1
2017-02-16 15:11 xleroy Target Version later => 4.05.0 +dev/beta1/beta2/beta3/rc1
2017-02-23 16:46 doligez Category OCaml windows => platform support (windows, etc)
2017-02-23 17:16 doligez Category platform support (windows, etc) => platform support (windows, cross-compilation, etc)


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker