Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006470OCamlOCaml windowspublic2014-06-25 20:482016-07-13 13:59
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionlaterFixed 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
sh: -o: command not found
File "caml_startup", line 1:
Error: Error during linking

In this case, is simple.
$ cat
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
doligez (administrator)
2014-07-16 13:43


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.
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.
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?

- 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

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker