Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005395OCamlOCamlbuild (the tool)public2011-11-07 15:572014-08-20 19:04
Reporterlebotlan 
Assigned Toxclerc 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version3.11.2 
Target Versionafter-4.02.0Fixed in Version 
Summary0005395: OCamlbuild ignores relative-symlinked subdirectories or subdirectories with a trailing slash.
DescriptionThe given archive is as follows:
 - inside A/, B2 is a relative symbolic link to B1
 - a.ml uses b.ml which is in A/B1/

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.


TagsNo tags attached.
Attached Filestgz file icon Ocamlbuild_symbolic_links_bug_report.tgz [^] (536 bytes) 2011-11-07 15:57

- Relationships
related to 0004549closed Filename.dirname is not handling multiple / on Unix 

-  Notes
(0006584)
doligez (administrator)
2012-01-03 18:33

This may be related to PR#4549 (being fixed).
(0008131)
doligez (administrator)
2012-09-20 16:38

Not related to 4549 after all.
(0011012)
kdkeyser (reporter)
2014-03-06 17:14

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.

- Issue History
Date Modified Username Field Change
2011-11-07 15:57 lebotlan New Issue
2011-11-07 15:57 lebotlan File Added: Ocamlbuild_symbolic_links_bug_report.tgz
2011-11-16 14:46 xclerc Status new => assigned
2011-11-16 14:46 xclerc Assigned To => xclerc
2012-01-03 18:33 doligez Note Added: 0006584
2012-01-03 18:34 doligez Relationship added related to 0004549
2012-02-02 15:17 protz Category OCamlbuild => OCamlbuild (the tool)
2012-07-10 13:48 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-20 16:38 doligez Note Added: 0008131
2012-09-20 16:38 doligez Target Version 4.00.1+dev => 4.00.2+dev
2013-07-11 16:11 doligez Target Version 4.00.2+dev => 4.01.0+dev
2013-08-19 11:59 doligez Target Version 4.01.0+dev => 4.01.1+dev
2014-03-06 17:14 kdkeyser Note Added: 0011012
2014-05-25 20:20 doligez Target Version 4.01.1+dev => 4.02.0+dev
2014-08-20 19:04 doligez Target Version 4.02.0+dev => after-4.02.0


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker