Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005395OCamlOCamlbuild (the tool)public2011-11-07 15:572015-03-27 16:29
Reporterlebotlan 
Assigned Toxclerc 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.11.2 
Target Version4.02.2+devFixed in Version4.02.2+dev 
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 0006498closed Some relative symlinks seem not to be followed 

-  Notes
(0006584)
doligez (administrator)
2012-01-03 18:33
edited on: 2015-02-26 16:58

This may be related to 0004549 (being fixed).

(0008131)
doligez (administrator)
2012-09-20 16:38
edited on: 2015-02-26 16:58

Not related to 0004549 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.
(0013580)
doligez (administrator)
2015-03-27 16:29

Fixed in 4.02 branch (rev 15970).

- 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 => 4.02.1+dev
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided
2014-09-26 19:42 doligez Target Version undecided => 4.02.2+dev
2015-02-26 16:58 doligez Note Edited: 0006584 View Revisions
2015-02-26 16:58 doligez Note Edited: 0008131 View Revisions
2015-02-26 16:58 doligez Relationship deleted related to 0004549
2015-02-26 16:59 doligez Relationship added related to 0006498
2015-03-27 16:29 doligez Note Added: 0013580
2015-03-27 16:29 doligez Status assigned => closed
2015-03-27 16:29 doligez Resolution open => fixed
2015-03-27 16:29 doligez Fixed in Version => 4.02.2+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker