Bug#623628: libllvm-ocaml-2.8-dev: ocamlfind does not find llvm-2.8 META file

Guillaume Bau guillaume.bau at gmail.com
Thu Apr 21 23:06:31 UTC 2011


Package: libllvm-ocaml-2.8-dev
Version: 2.8-2+b1
Severity: normal

when using ocamlfind to find llvm-2.8, ocamlfind does not find llvm-2.8, while
it can find other packages (unix for example) :

$ ocamlfind ocamlc -package unix -where
/usr/lib/ocaml

$ ocamlfind ocamlc -package llvm-2.8 -where
ocamlfind: Package `llvm-2.8' not found

The META file is correctly installed :
$ ls /usr/lib/ocaml/METAS/META.llvm-2.8
/usr/lib/ocaml/METAS/META.llvm-2.8

The problem seems to be the dot character in 'llvm-2.8', because strace reports
ocamlfind to look for META files with prefix or suffix 'llvm-2' :

$ strace ocamlfind ocamlc -package llvm-2.8 -where
[...]
stat("/usr/lib/ocaml/threads/threads.cma", {st_mode=S_IFREG|0644,
st_size=41347, ...}) = 0
close(3)                                = 0
stat("/usr/local/lib/ocaml/3.12.0/llvm-2/META", 0x7fff46d7cfe0) = -1 ENOENT (No
such file or directory)
stat("/usr/local/lib/ocaml/3.12.0/META.llvm-2", 0x7fff46d7cfe0) = -1 ENOENT (No
such file or directory)
stat("/usr/lib/ocaml/llvm-2/META", 0x7fff46d7cfe0) = -1 ENOENT (No such file or
directory)
stat("/usr/lib/ocaml/META.llvm-2", 0x7fff46d7cfe0) = -1 ENOENT (No such file or
directory)
stat("/usr/lib/ocaml/METAS/llvm-2/META", 0x7fff46d7cfe0) = -1 ENOENT (No such
file or directory)
stat("/usr/lib/ocaml/METAS/META.llvm-2", 0x7fff46d7cfe0) = -1 ENOENT (No such
file or directory)
write(2, "ocamlfind: Package `llvm-2.8' no"..., 40ocamlfind: Package `llvm-2.8'
not found
) = 40
exit_group(2)                           = ?


I don't know if this behavior should be reported upstream or the META file
renamed.

Best regards



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libllvm-ocaml-2.8-dev depends on:
ii  llvm-2.8-dev                  2.8-2+b1   Low-Level Virtual Machine (LLVM), 
ii  ocaml-base-nox [ocaml-base-no 3.12.0-4   Runtime system for OCaml bytecode 

libllvm-ocaml-2.8-dev recommends no packages.

Versions of packages libllvm-ocaml-2.8-dev suggests:
pn  llvm-2.8-doc                  <none>     (no description available)

-- no debconf information





More information about the Pkg-llvm-team mailing list