* [Caml-list] Support for symbolic links by compilers for OCaml?
@ 2017-07-14 20:22 SF Markus Elfring
2017-07-18 18:10 ` SF Markus Elfring
0 siblings, 1 reply; 2+ messages in thread
From: SF Markus Elfring @ 2017-07-14 20:22 UTC (permalink / raw)
To: caml-list
Hello,
I came along the following software situation during an attempt to adjust
a few build scripts for another evolving development tool.
elfring@Sonne:~/Projekte/Bau/OCamlbuild> ocamlc.opt -for-pack Ocamlbuild_pack -w L -w R -w Z -safe-string -bin-annot -I o/bin -I +unix -c -o 'o/bin/loc.cmo' '/home/elfring/Projekte/OCaml/OCamlbuild/lokal/src/loc.ml'; ls -l x/bin/loc.cmi o/bin/loc.cmi
File "/home/elfring/Projekte/OCaml/OCamlbuild/lokal/src/loc.ml", line 1:
Error: Could not find the .cmi file for interface
/home/elfring/Projekte/OCaml/OCamlbuild/lokal/src/loc.mli.
lrwxrwxrwx 1 elfring users 13 14. Jul 21:29 o/bin/loc.cmi -> x/bin/loc.cmi
-rw-r--r-- 1 elfring users 820 14. Jul 20:07 x/bin/loc.cmi
I wonder why the provided symbolic link is not taken into account for this
compilation try.
It seems that the following command variant succeeds with the addition of
an include parameter.
elfring@Sonne:~/Projekte/Bau/OCamlbuild> ocamlc.opt -for-pack Ocamlbuild_pack -w L -w R -w Z -safe-string -bin-annot -I o/bin -I x/bin -I +unix -c -o 'o/bin/loc.cmo' '/home/elfring/Projekte/OCaml/OCamlbuild/lokal/src/loc.ml'
I would appreciate a corresponding clarification and further advice.
Regards,
Markus
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Support for symbolic links by compilers for OCaml?
2017-07-14 20:22 [Caml-list] Support for symbolic links by compilers for OCaml? SF Markus Elfring
@ 2017-07-18 18:10 ` SF Markus Elfring
0 siblings, 0 replies; 2+ messages in thread
From: SF Markus Elfring @ 2017-07-18 18:10 UTC (permalink / raw)
To: caml-list
> lrwxrwxrwx 1 elfring users 13 14. Jul 21:29 o/bin/loc.cmi -> x/bin/loc.cmi
This kind of display looked too promising for a moment.
> I wonder why the provided symbolic link is not taken into account for this
> compilation try.
How do you think about a solution with using absolute paths for the desired
link sources?
https://github.com/elfring/ocamlbuild/commit/0ae41f82882ac28e4c6b375f1e2bfcf3425c7a80#diff-b488c39ebbe2be3f6f907a6af205b431R606
> It seems that the following command variant succeeds with the addition of
> an include parameter.
>
>
> elfring@Sonne:~/Projekte/Bau/OCamlbuild> ocamlc.opt -for-pack Ocamlbuild_pack -w L -w R -w Z -safe-string -bin-annot -I o/bin -I x/bin -I +unix -c -o 'o/bin/loc.cmo' '/home/elfring/Projekte/OCaml/OCamlbuild/lokal/src/loc.ml'
I guess that such a build configuration approach can trigger also some
software development concerns.
How much do you try to handle output directories separately?
Regards,
Markus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-18 18:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-14 20:22 [Caml-list] Support for symbolic links by compilers for OCaml? SF Markus Elfring
2017-07-18 18:10 ` SF Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).