From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id A20B67EEF6 for ; Fri, 5 Jun 2015 15:55:10 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of christiano.fh@gmail.com) identity=pra; client-ip=209.85.160.181; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="christiano.fh@gmail.com"; x-sender="christiano.fh@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of christiano.fh@gmail.com designates 209.85.160.181 as permitted sender) identity=mailfrom; client-ip=209.85.160.181; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="christiano.fh@gmail.com"; x-sender="christiano.fh@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-yk0-f181.google.com) identity=helo; client-ip=209.85.160.181; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="christiano.fh@gmail.com"; x-sender="postmaster@mail-yk0-f181.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AWAgBXqXFVm7WgVdFbg2ReBoMYvS6HHwc8EAEBAQEBAQERAQEBAQEGCwsJIS6EIwEBBBIRBBkBOAEDDAEFBQsNAgImAgIhARIBBQEcBhMih3YDEg2rNj4xiz+EZJliJw2FGyYBBQ6BE4oigk2FKIFFBZMfhD+FCYFfgS8+jl+DMIIPEiOBFV2BUByBVDwxgkcBAQE X-IPAS-Result: A0AWAgBXqXFVm7WgVdFbg2ReBoMYvS6HHwc8EAEBAQEBAQERAQEBAQEGCwsJIS6EIwEBBBIRBBkBOAEDDAEFBQsNAgImAgIhARIBBQEcBhMih3YDEg2rNj4xiz+EZJliJw2FGyYBBQ6BE4oigk2FKIFFBZMfhD+FCYFfgS8+jl+DMIIPEiOBFV2BUByBVDwxgkcBAQE X-IronPort-AV: E=Sophos;i="5.13,558,1427752800"; d="scan'208";a="163358342" Received: from mail-yk0-f181.google.com ([209.85.160.181]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 05 Jun 2015 15:55:09 +0200 Received: by ykfr66 with SMTP id r66so24974413ykf.0 for ; Fri, 05 Jun 2015 06:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=W7BC57/e6rnRgLWI9xtYk7r4qiMEUGNmIPe0+QlGYJo=; b=I6m14aZBWqQSx6vH8pDokUROkcGunn3rnapjeN1FJZmADOeAJnwZky2lh5mnEBPe6c MHBEfl8spbkpyUZk+zTitVzIWpTfvFSF9v418aWyaLXB6LpVpC4ZD3FvcX5y2UVcn+Tc Lq+i+9szz/KvPcW2/Pn+/1e5PJOeQ2Fl4yD8Dhht8iyLy1D8VGxeMnb8mAX419q0U5Jo UKBe3cVX6X9FnXKPYN4SMY8sGXBzlKsD1qWRRXAqluiLmWesiHWHgi8CA3R984ebQEpz dP0E+nnrDQQebL5AHW+trer3OpH+yfuzrLczNy6cf1fcJJ1OVwo5m5uTB78qhGEJDKOg wozw== MIME-Version: 1.0 X-Received: by 10.129.102.65 with SMTP id a62mr1066774ywc.19.1433512508615; Fri, 05 Jun 2015 06:55:08 -0700 (PDT) Sender: christiano.fh@gmail.com Received: by 10.129.90.85 with HTTP; Fri, 5 Jun 2015 06:55:08 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Jun 2015 15:55:08 +0200 X-Google-Sender-Auth: LFVCfMZNNW99WaB2-Uh2fNb0A6A Message-ID: From: "Christiano F. Haesbaert" To: Jeremy Yallop Cc: Caml List Content-Type: text/plain; charset=UTF-8 X-Validation-by: haesbaert@haesbaert.org Subject: Re: [Caml-list] Can't build a target with C stubs using ocamlbuild 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. On 5 June 2015 at 12:47, Christiano F. Haesbaert wrote: > On 5 June 2015 at 12:38, Jeremy Yallop wrote: >> On 5 June 2015 at 11:29, Christiano F. Haesbaert >> wrote: >>> ### toto_c.c ### >>> ### toto_c.ml ### >> >> Both of these files will be compiled to object files called >> 'toto_c.o'. Renaming one of them (e.g. toto_c.c to toto_c_stubs.c) >> should fix the problem. > > Hooray, great, that did the trick, thanks a lot :D.