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 8D3BF7FACD for ; Fri, 19 Sep 2014 21:43:49 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of loganjerry@gmail.com) identity=pra; client-ip=209.85.220.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="loganjerry@gmail.com"; x-sender="loganjerry@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of loganjerry@gmail.com designates 209.85.220.44 as permitted sender) identity=mailfrom; client-ip=209.85.220.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="loganjerry@gmail.com"; x-sender="loganjerry@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-pa0-f44.google.com) identity=helo; client-ip=209.85.220.44; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="loganjerry@gmail.com"; x-sender="postmaster@mail-pa0-f44.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoACACGGHFTRVdwslWdsb2JhbABgg2BXBIJ9uWWND4hOCBYBEQEBAQEHDQkJEiyEHBEdARseAxIQDwImAiQBEQEFASIcGYgHAQMRDZ1pgxltizCBcoMQiSAKGScNZoY/AQUOgR6RVIFTBYtFikeHB4FhkXsYKYUvHi+CSgEBAQ X-IPAS-Result: AoACACGGHFTRVdwslWdsb2JhbABgg2BXBIJ9uWWND4hOCBYBEQEBAQEHDQkJEiyEHBEdARseAxIQDwImAiQBEQEFASIcGYgHAQMRDZ1pgxltizCBcoMQiSAKGScNZoY/AQUOgR6RVIFTBYtFikeHB4FhkXsYKYUvHi+CSgEBAQ X-IronPort-AV: E=Sophos;i="5.04,556,1406584800"; d="scan'208";a="96706669" Received: from mail-pa0-f44.google.com ([209.85.220.44]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Sep 2014 21:43:48 +0200 Received: by mail-pa0-f44.google.com with SMTP id rd3so726111pab.3 for ; Fri, 19 Sep 2014 12:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=17CeS67BOp2PI5d8UA4gnJ5G5dv1b+aiZ+k2EhZxel8=; b=N7eOif5Yrr0BGIKcQf0iR9QsZ0JyGDy9JqgmcpFWyESfZ2k2IOY1nBJeMREa8mMAP0 ZLYre2wn+oM7jBZ6V1wU5WaWNsQyPQuzuBfyCCZPvUm+QLL1WSUZukdq7cfR1d/vQ+7D zK/+wqEtCsakMOkWp9UQ4o5DlnjD5Xtj7qiymnpuZfx6jc7E1CfSnI/gDun9H+13Qt96 jKS49dlOBDKbsOInCIR0RUgyy9Tws9sZlwqCZDYL5MbDf0CVP7Wtm64fs5XDYZ1S89Dg 1u5jazKQI2Y2UN70uEcgMvmXeRJlGqS+SGsNobq1c3rzWoBwhCXamY5FFGqncwNyqSWr UMJA== MIME-Version: 1.0 X-Received: by 10.66.158.130 with SMTP id wu2mr4420019pab.59.1411155826909; Fri, 19 Sep 2014 12:43:46 -0700 (PDT) Received: by 10.70.70.167 with HTTP; Fri, 19 Sep 2014 12:43:46 -0700 (PDT) Date: Fri, 19 Sep 2014 13:43:46 -0600 Message-ID: From: Jerry James To: Caml List Content-Type: text/plain; charset=UTF-8 Subject: [Caml-list] Ocamlbuild, -ocamlc, and -use-ocamlfind in ocaml 4.02.0 Greetings, I maintain a few ocaml packages for the Fedora Linux distribution, including tplib (https://gforge.inria.fr/projects/tplib). Fedora Rawhide recently updated to ocaml 4.02.0. Now tplib does not build successfully anymore. It uses this command: ocamlbuild -cflag -g -lflag -g -ocamlc ocp-ocamlc.opt -ocamlopt ocp-ocamlopt.opt -classic-display -no-links -build-dir _build -use-ocamlfind src/tplib.mllib src/numeric.cmi src/semiring.cmi src/vector.cmi src/halfspace.cmi src/hypergraph.cmi src/tplib_core.cmi src/tplib_abstract.cmi src/numeric_plugins/zarith_plugin.cmxs src/bindings/tplib_double_callback.obj.o src/bindings/tplib_rational_callback.obj.o src/compute_ext_rays.native src/compute_ext_rays_polar.native src/compute_halfspaces.native src/compute_tangent_hypergraph.native src/compute_minimal_external_representations.native src/compute_tropical_complex.native which prompts ocamlbuild to issue this command: ocamlfind ocp-ocamlopt.opt unix.cmxa -I /usr/lib64/ocaml/ocamlbuild /usr/lib64/ocaml/ocamlbuild/ocamlbuildlib.cmxa -g -linkpkg myocamlbuild.ml /usr/lib64/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild but ocamlfind doesn't know anything about an ocp-ocamlopt.opt command: Usage: ocamlfind query [-help | other options] ... or: ocamlfind ocamlc [-help | other options] ... or: ocamlfind ocamlcp [-help | other options] ... or: ocamlfind ocamlmklib [-help | other options] ... or: ocamlfind ocamlmktop [-help | other options] ... or: ocamlfind ocamlopt [-help | other options] ... or: ocamlfind ocamloptp [-help | other options] ... or: ocamlfind ocamldep [-help | other options] ... or: ocamlfind ocamlbrowser [-help | other options] or: ocamlfind ocamldoc [-help | other options] ... or: ocamlfind install [-help | other options] ... or: ocamlfind remove [-help | other options] or: ocamlfind printconf [-help] [variable] or: ocamlfind list or: ocamlfind pkg/cmd arg ... Select toolchain with: ocamlfind -toolchain Abbreviations: e.g. ocamlfind opt instead of ocamlfind ocamlopt Command exited with code 2. If I build with for Fedora 21 (ocaml 4.01.0) instead, that same ocambuild invocation results in this command being issued: ocamlfind ocamlopt unix.cmxa -I /usr/lib64/ocaml/ocamlbuild /usr/lib64/ocaml/ocamlbuild/ocamlbuildlib.cmxa -g -linkpkg myocamlbuild.ml /usr/lib64/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild which works. I found PR#6300, which deals with this issue, but don't understand what I need to do. I tried moving the -use-ocamlfind flag to the first position on the command line, but that didn't help. How does the ocamlbuild invocation need to be changed to avoid this problem? Thank you and regards, -- Jerry James http://www.jamezone.org/