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
I've also run into this issue (using 4.01.0), took me quite a while to find a workaround.
I've got a project which uses a code generation tool that produces its output in a "target" directory. The idea was to symlink this directory to a src/ocaml/generated directory and make an mlpack, but compilation using ocamlbuild then fails due to this bug.
My current workaround is to symlink the individual files instead of the directory.
Original bug ID: 5395
Reporter: lebotlan
Assigned to: @xclerc
Status: closed (set by @damiendoligez on 2015-03-27T15:29:07Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.2
Target version: 4.02.2+dev / +rc1
Fixed in version: 4.02.2+dev / +rc1
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Related to: #6498
Monitored by: kdkeyser @jberdine
Bug description
The given archive is as follows:
Try the following commands :
(* Works as expected *)
rm -rf _build && ocamlbuild -I A/B1 A/a.cmo
(* Both commands unexpectedly produce an error. *)
rm -rf _build && ocamlbuild -I A/B1/ A/a.cmo
rm -rf _build && ocamlbuild -I A/B1/. A/a.cmo
(* And using the symbolic link just don't work. *)
rm -rf _build && ocamlbuild -I A/B2 A/a.cmo
Additional information
When the symbolic link is absolute instead of relative, it appears to work.
I have not been able to test with version 3.12
Could not find anything related in the documentation, wiki, or other bug reports.
File attachments
The text was updated successfully, but these errors were encountered: