Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"tag not used" warning when using (p)dep to declare linking tags #6893

Closed
vicuna opened this issue Jun 5, 2015 · 2 comments
Closed

"tag not used" warning when using (p)dep to declare linking tags #6893

vicuna opened this issue Jun 5, 2015 · 2 comments
Assignees
Milestone

Comments

@vicuna
Copy link

vicuna commented Jun 5, 2015

Original bug ID: 6893
Reporter: @gasche
Assigned to: @gasche
Status: closed (set by @damiendoligez on 2015-06-05T19:37:53Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
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

Bug description

On the caml-list, Christiano Haesbaert reports:
https://sympa.inria.fr/sympa/arc/caml-list/2015-06/msg00039.html

Just one more question, now with the real code, I was able to move
everything to myocamlbuild, but I'm getting a warning:
File "_tags", line 10, characters 12-28:
Warning: the tag "linkdep(stubs.o)" is not used in any flag
declaration, so it will have no effect; it may be a typo. Otherwise
use mark_tag_used in your myocamlbuild.ml to disable this warning.

build.sh

ocamlbuild -use-ocamlfind all.otarget $@

_tags line

<*.native>: linkdep(stubs.o)

myocamlbuild.ml

open Ocamlbuild_plugin;;
dispatch begin function
| After_rules ->
pflag ["ocaml";"compile";] "ppopt" (fun s -> S [A"-ppopt"; A s]);
pflag ["ocaml";"ocamldep";] "ppopt" (fun s -> S [A"-ppopt"; A s]);
pdep ["link"] "linkdep" (fun param -> [param])
| _ -> ()
end;;

It seems to be the same case as
http://stackoverflow.com/questions/25585813/mark-tag-used-warning-with-ocaml-4-02-0

Should I just use mark_tag_used ? It seems something else is wrong
since the tag is actually used.

File attachments

@vicuna
Copy link
Author

vicuna commented Jun 5, 2015

Comment author: @gasche

The uploaded patch fixes the issue. I'm not sure whether it is too late for inclusion in 4.02, waiting on Damien's opinion.

@vicuna
Copy link
Author

vicuna commented Jun 5, 2015

Comment author: @damiendoligez

Patch applied to branch 4.02 (rev 16162).

@vicuna vicuna closed this as completed Jun 5, 2015
@vicuna vicuna added this to the 4.02.2 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants