From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3ICEF7M011495 for ; Mon, 18 Apr 2011 14:14:15 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtIFAHgqrE1iiluJhWdsb2JhbACXaDGMSoENAQEBCgsLBRYls2+CI4QtiQ0BBAUBhWsEhWKMFQ X-IronPort-AV: E=Sophos;i="4.64,232,1301868000"; d="scan'208";a="97430850" Received: from nm7-vm3.bullet.mail.ne1.yahoo.com ([98.138.91.137]) by mail2-smtp-roc.national.inria.fr with SMTP; 18 Apr 2011 14:14:09 +0200 Received: from [98.138.90.55] by nm7.bullet.mail.ne1.yahoo.com with NNFMP; 18 Apr 2011 12:14:08 -0000 Received: from [98.138.89.245] by tm8.bullet.mail.ne1.yahoo.com with NNFMP; 18 Apr 2011 12:14:08 -0000 Received: from [127.0.0.1] by omp1059.mail.ne1.yahoo.com with NNFMP; 18 Apr 2011 12:14:08 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 804734.2578.bm@omp1059.mail.ne1.yahoo.com Received: (qmail 91492 invoked by uid 60001); 18 Apr 2011 12:14:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1303128848; bh=aT9qCutyU3e031ww1iaDzn92y1SPZRyj4v2QuegYyAk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=cU+tISf6w/NPsnfkffndKevroujtb5LVSeizq8cu52YkkAT3hOa78Hwv0+WRDikUSxjWjwUI0EKnmnQ60YM81jaXOK8Fl8VlT/UmzYXHo4T7OkBDzyxS2iSGyw43gZ93OMP27jTIxJxUZOvu4k0UjyLrPLZq+XOT+dnv6R7Gnfc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=2XyNNHtxjIHwDcg80LNI2VRoT6MqddbskFPMXU8xndvFEuhHIx8lYrgmp9WGgG5+TRJfT15dpMTVxfo/xQr2x38q2mMfLcfr4U81EpAMVnCT1aW83OqLsKs4FYoQGcySqJIgRYx2u7OcxM6Tv0Scj9eCFEFn1k3tB91G8M6PtTQ=; Message-ID: <609126.88288.qm@web120619.mail.ne1.yahoo.com> X-YMail-OSG: .pbDBGIVM1keshck0MEc260Aq4RlGnMVUBV6_XPg.DKlIbJ wJx2mA5yRbUAsEjhV.UyZIhAjaf59JKWFK.grlp8MV5H1Z2GCsUMiiS9lVW_ DfGt5X2EqarVy31sJAcsa6ApI0wr95i5PeaOVQZEF9KYpzEFYzR9lxIrDuhp Y_CNSA8Qt.GpFlgMJCRPQX_gMoYkHYVadBHjGuDsHxgnQ9gpZURTNtU8jMEu ED2EH2MBgVV_SHSb2z6.NX0duQ6lgEPyYeDO0U66uBkhAq2Uo0.HceODgR61 WzGgEIZSdeyIrtu1Pvz0AMJgXV34RG5OzxJZitGRCGvSZpmpPoJgEE.Ovbo7 bhPYLwuBw20rza6mehA0Kh2JTd1msL.0TXSMNxcm5ANR0FqV_BHEA0w-- Received: from [83.134.111.13] by web120619.mail.ne1.yahoo.com via HTTP; Mon, 18 Apr 2011 05:14:08 PDT X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Mon, 18 Apr 2011 05:14:08 -0700 (PDT) From: evil sloot To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p3ICEF7M011495 Subject: [Caml-list] problems with ocamlbuild in 3.12 Hi, I'm upgrading from ocaml 3.11 to 3.12 and I'm facing some problems with my ocamlfind buildscripts. In essence, I see the following. - static linking gives problems when you have multiple libraries with dependencies amongst each other. The gcc linker needs to have them in correct order or it will fail. I have to revert to tricks like this in my ocamlbuild.ml file: flag ["ocaml";"link";"is_main"](       S[A"-linkpkg";     A"src/otc/libotc.a"; (* depends on libtokyocabinet, so must come before (really) on the linking line *)         A"-ccopt"; A("-L" ^ tc_home);         A"-cclib"; A"-ltokyocabinet";        ]); to force the order in which the arguments are processed.   Is there a more - building of .cmxa libraries fails in combination with package(...) tags   for example, I have   true:package(lwt) in my _tags file   and the build of my library gives:   ocamlbuild -use-ocamlfind my_lib.cmxa   + /usr/bin/ocamlfind ocamlopt -a -linkpkg ...  -package lwt ....     -o my_lib.cmxa    File "_none_", line 1, characters 0-1:    Error: /usr/lib/ocaml/unix.cmxa    is not a compilation unit description.    Command exited with code 2.   the -linkpkg should not be there....   So how do I avoid this? Since I can't find these things in the documentation, I think I can ask here. Also, how do I make it so that ocamlbuild always uses ocamlfind so I don't have to type ocamlbuild -use-ocamlfind ... all the time ? (I could not find it anywhere in the documentation) tia, Romain PS - ocamlbuild & ocamlfind are part of the core but the reference manual (http://caml.inria.fr/pub/docs/manual-ocaml/manual022.html) doesn't even mention them. - The ocamlbuild manual does not mention the recent developments such as package(...), and the new way of handling syntax extensions, - ocamlbuild wiki mostly has old examples. - I see that lwt is moving towards Oasis, should I do this too?