From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p759sNvl014208 for ; Fri, 5 Aug 2011 11:54:23 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAOi8O07V1xdi/2dsb2JhbABChEejEX+BWQIPdQc3AiQSAQUBFgwbGodNoEmCVAqLcZFThTaBEASTAYxPPINe X-IronPort-AV: E=Sophos;i="4.67,322,1309730400"; d="scan'208";a="115043941" Received: from gide-lanoue-23-98.cnt.nerim.net (HELO khaki.gide.net) ([213.215.23.98]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Aug 2011 11:54:18 +0200 Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) (authenticated bits=0) by khaki.gide.net (8.13.8/8.13.8) with ESMTP id p759sGUJ029611 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Fri, 5 Aug 2011 11:54:17 +0200 Received: by qwc9 with SMTP id 9so2611589qwc.27 for ; Fri, 05 Aug 2011 02:54:16 -0700 (PDT) Received: by 10.229.77.158 with SMTP id g30mr1195396qck.214.1312538056068; Fri, 05 Aug 2011 02:54:16 -0700 (PDT) MIME-Version: 1.0 Reply-To: remi.dewitte@gide.net Received: by 10.229.135.11 with HTTP; Fri, 5 Aug 2011 02:53:56 -0700 (PDT) From: =?UTF-8?Q?R=C3=A9mi_Dewitte?= Date: Fri, 5 Aug 2011 11:53:56 +0200 Message-ID: To: caml-list Content-Type: multipart/alternative; boundary=002354470c14960e0804a9bf1454 Subject: [Caml-list] ocamlbuild issue --002354470c14960e0804a9bf1454 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I have an issue with ocamlbuild. I type : ocamlbuild -use-ocamlfind sdit.native I get the following error : ocamlfind: Error from package `postgresql': This library requires multi-threading support Command exited with code 2. I have checked this : $ ocamlbuild -documentation | grep thread flag {. byte, link, ocaml, program, thread .} "threads.cma -thread" flag {. link, native, ocaml, program, thread .} "threads.cmxa -thread" flag {. doc, ocaml, thread .} "-I +threads" flag {. compile, ocaml, thread .} "-thread" I have checked _build/_log also : tag thread is active # Target: sdit.native, tags: { dont_link_with, extension:native, file:sdit.native, link, native, ocaml, package(extlib), package(gsl), package(postgresql), package(pxp), package(str), program, quiet, thread, traverse, use_menhir } /usr/bin/ocamlfind ocamlopt -linkpkg -package extlib -package gsl -package postgresql -package pxp -package str dependent.cmx sdit.cmx -o sdit.native I think there is a bug with -use-ocamlfind where -thread is not appended to the command. I use ocaml 3.12.0 What do you think ? Thanks, R=C3=A9mi --002354470c14960e0804a9bf1454 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,

I have an issue with ocamlbuild.

I type : ocamlbuild -use-ocamlfind sdit.native
= I get the following error :
ocamlfind: Error from package `postgresql= 9;: This library requires multi-threading support
Command exited with code 2.

I have checked this :
$ ocamlbuild -documenta= tion | grep thread
flag {. byte, link, oca= ml, program, thread .} "threads.cma -thread"
flag {. link, native, o= caml, program, thread .} "threads.cmxa -thread"
flag {. doc, ocaml, thr= ead .} "-I +threads"
flag {. compile, ocaml,= thread .} "-thread"

I have checked _build/_log als= o : tag thread is active
# Target: sdit.native, tags: { dont_link_with, extension:native, file:= sdit.native, link, native, ocaml, package(extlib), package(gsl), package(po= stgresql), package(pxp), package(str), program, quiet, thread, traverse, us= e_menhir }
/usr/bin/ocamlfind ocam= lopt -linkpkg -package extlib -package gsl -package postgresql -package pxp= -package str dependent.cmx sdit.cmx -o sdit.native

I think t= here is a bug with -use-ocamlfind where -thread is not appended to the comm= and.

I use ocaml 3.12.0

What do you think ?

Thanks,
R=C3=A9= mi
--002354470c14960e0804a9bf1454--