You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6550 Reporter:@damiendoligez Assigned to:@mshinwell Status: resolved (set by @mshinwell on 2017-03-10T12:45:39Z) Resolution: duplicate Priority: low Severity: minor OS: Mac OS X Category: compiler driver Monitored by:@gasche
Bug description
The command
ocamlopt -a -o foo.cmxa
works on Linux, but gives an error message from "ar" on MacOSX because Darwin's "ar" command does not allow adding zero files to an archive (stupid MacOSX).
Additional information
One way to create an empty archive is:
ar rc foo.a /dev/null
ar d foo.a null
but it really hurts my sensibility to have to hack around such a problem. Does anybody have a more elegant solution?
I think I'll report this to Apple as an "ar" bug.
The text was updated successfully, but these errors were encountered:
We never need to do this, but some OCaml programmers have a problem when they do something not-really-necessary that happens to do this (for example, have configure switches to decide which packages to include in a foo.mllib file, such that under some configurations the list ends up being empty), and do not see any issue as they test under Linux. Then some OSX user reports that their package build is broken, and pain ensues.
Original bug ID: 6550
Reporter: @damiendoligez
Assigned to: @mshinwell
Status: resolved (set by @mshinwell on 2017-03-10T12:45:39Z)
Resolution: duplicate
Priority: low
Severity: minor
OS: Mac OS X
Category: compiler driver
Monitored by: @gasche
Bug description
The command
ocamlopt -a -o foo.cmxa
works on Linux, but gives an error message from "ar" on MacOSX because Darwin's "ar" command does not allow adding zero files to an archive (stupid MacOSX).
Additional information
One way to create an empty archive is:
ar rc foo.a /dev/null
ar d foo.a null
but it really hurts my sensibility to have to hack around such a problem. Does anybody have a more elegant solution?
I think I'll report this to Apple as an "ar" bug.
The text was updated successfully, but these errors were encountered: