* [Caml-list] ocamlbuild issue
@ 2011-08-05 9:53 Rémi Dewitte
2011-08-05 10:23 ` [Caml-list] " Rémi Dewitte
0 siblings, 1 reply; 3+ messages in thread
From: Rémi Dewitte @ 2011-08-05 9:53 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
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émi
[-- Attachment #2: Type: text/html, Size: 1925 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Caml-list] Re: ocamlbuild issue
2011-08-05 9:53 [Caml-list] ocamlbuild issue Rémi Dewitte
@ 2011-08-05 10:23 ` Rémi Dewitte
2011-08-05 18:54 ` ygrek
0 siblings, 1 reply; 3+ messages in thread
From: Rémi Dewitte @ 2011-08-05 10:23 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 1616 bytes --]
Hi again,
I have created a myocamlbuild.ml which fixes the issue but I'm still
interested to get your advice.
open Ocamlbuild_plugin
open Command
let _ = dispatch begin function
| After_rules ->
flag ["ocaml"; "thread"; "compile"] (S[A "-thread"]);
flag ["ocaml"; "thread"; "link"] (S[A "-thread"]);
| _ -> ()
end
Rémi
2011/8/5 Rémi Dewitte <remi@gide.net>
> 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émi
>
[-- Attachment #2: Type: text/html, Size: 3611 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Re: ocamlbuild issue
2011-08-05 10:23 ` [Caml-list] " Rémi Dewitte
@ 2011-08-05 18:54 ` ygrek
0 siblings, 0 replies; 3+ messages in thread
From: ygrek @ 2011-08-05 18:54 UTC (permalink / raw)
To: caml-list; +Cc: remi.dewitte
On Fri, 5 Aug 2011 12:23:26 +0200
Rémi Dewitte <remi@gide.net> wrote:
> Hi again,
>
> I have created a myocamlbuild.ml which fixes the issue but I'm still
> interested to get your advice.
This was fixed in 3.12.1, see PR#5165
--
ygrek
http://ygrek.org.ua
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-05 18:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05 9:53 [Caml-list] ocamlbuild issue Rémi Dewitte
2011-08-05 10:23 ` [Caml-list] " Rémi Dewitte
2011-08-05 18:54 ` ygrek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox