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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 4C90E7EEF6 for ; Fri, 5 Jun 2015 18:48:21 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of gabriel.scherer@gmail.com) identity=pra; client-ip=209.85.223.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of gabriel.scherer@gmail.com designates 209.85.223.176 as permitted sender) identity=mailfrom; client-ip=209.85.223.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ie0-f176.google.com) identity=helo; client-ip=209.85.223.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="postmaster@mail-ie0-f176.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BsAQBZ0nFVlLDfVdFBGoMvNV4GgxisZZBLhXUCgSsHPBABAQEBAQEBEQEBAQEHCwsJHzCEIwEBBBIRBBkBGxILAQMMBgULDQICCR0CAiEBAREBBQEKEgYTEhCHdQEDEg06qxk+MYs/gWuCeZksChknAwpXhEgBAQEBAQEEAQEBAQEXAQUOgROKIoJNgjkHgmiBRQWFSwqSCYUJgV+BLz6OXwmDJ4IPEiOBDAmCLRyBVDwxAYJGAQEB X-IPAS-Result: A0BsAQBZ0nFVlLDfVdFBGoMvNV4GgxisZZBLhXUCgSsHPBABAQEBAQEBEQEBAQEHCwsJHzCEIwEBBBIRBBkBGxILAQMMBgULDQICCR0CAiEBAREBBQEKEgYTEhCHdQEDEg06qxk+MYs/gWuCeZksChknAwpXhEgBAQEBAQEEAQEBAQEXAQUOgROKIoJNgjkHgmiBRQWFSwqSCYUJgV+BLz6OXwmDJ4IPEiOBDAmCLRyBVDwxAYJGAQEB X-IronPort-AV: E=Sophos;i="5.13,559,1427752800"; d="scan'208";a="134681983" Received: from mail-ie0-f176.google.com ([209.85.223.176]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 05 Jun 2015 18:47:51 +0200 Received: by iebmu5 with SMTP id mu5so26674529ieb.1 for ; Fri, 05 Jun 2015 09:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KmErg1uNpg4FWFStIWf5Bs2M53dt9nXYlqVq3j4lCtY=; b=b1X6fVu75cLV+i7LDZNifM0Ers0Bc08O6JQlFdhhrgGnbeHrWiT9YsFsHC5tRMmmQ7 bA7yFmrS6vGdqRQbDBOPK+6WN2jMWCbdInvP6nYcYbcp09leSQidn26e6bzdjQisaWW3 MpymMi3ddP+otap7ivi+u9M2z8ehT32Vyc00Or0vZ8vWh2mAoF/QWX5fb5GwRTejBelY Lkb5cLCtke9Jp+wKEHFVmZ5sCVzkJrFUttOteDprH44oB3hjdO/b1Mc49J2h+EecB9vC tL3WAex9Pdox3G6OSFAPYkpHolqA0EtLogH+8XWU5Fzm8kVT5WWe6SJGQGxlpx6hUZHU chcQ== X-Received: by 10.107.17.161 with SMTP id 33mr5730513ior.48.1433522869527; Fri, 05 Jun 2015 09:47:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.92.131 with HTTP; Fri, 5 Jun 2015 09:47:08 -0700 (PDT) In-Reply-To: References: From: Gabriel Scherer Date: Fri, 5 Jun 2015 18:47:08 +0200 Message-ID: To: "Christiano F. Haesbaert" Cc: Jeremy Yallop , Caml List Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] Can't build a target with C stubs using ocamlbuild I reported and proposed a fix at http://caml.inria.fr/mantis/view.php?id=6893 On Fri, Jun 5, 2015 at 4:24 PM, Gabriel Scherer wrote: > This seems to be an ocamlbuild bug that should be reported on the bugtracker: > http://caml.inria.fr/mantis/ > > On Fri, Jun 5, 2015 at 3:55 PM, Christiano F. Haesbaert > wrote: >> 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. >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs