Bug#670207: [libllvm-3.0-ocaml-dev] llvm is not usable from the toplevel

Pierre Chambart pierre.chambart at crans.org
Tue Apr 24 02:40:33 UTC 2012


Package: libllvm-3.0-ocaml-dev
Version: 3.0-9
Severity: normal

--- Please enter the report below this line. ---

When running
#use "topfind"
#require "llvm-3_0"

the toplevel complain about not available functions:

Error: The external function `llvm_global_succ' is not available

This is due to problems with linking informations in the cma:

$ ocamlobjinfo /usr/lib/ocaml/llvm-3.0/llvm.cma
File llvm.cma
Force custom: YES
Extra C object files: -lllvm -lpthread -lffi -ldl -lm -lLLVMCore
-lLLVMSupport
-L/build/buildd-llvm-3.0_3.0-9-amd64-KImibc/llvm-3.0-3.0/build-llvm/Release/lib
Extra C options:
Extra dynamically-loaded libraries:

There are missing link informations:
 -lstdc++ in "Extra C object files:"
 and for -lllvm in "Extra dynamically-loaded libraries:"

Moreover, there is no reason for having:
-L/build/buildd-llvm-3.0_3.0-9-amd64-KImibc/llvm-3.0-3.0/build-llvm/Release/lib

--- System information. ---
Architecture: amd64
Kernel: Linux 3.2.0-2-amd64

Debian Release: wheezy/sid
500 unstable ftp.crans.org
500 testing ftp.crans.org
500 stable ftp.crans.org
1 experimental ftp.crans.org

--- Package information. ---
Depends (Version) | Installed
===============================-+-===========
ocaml-nox-3.12.1 |
llvm-3.0-dev (= 3.0-9) | 3.0-9


Package's Recommends field is empty.

Suggests (Version) | Installed
===========================-+-===========
llvm-3.0-doc |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20120424/68c8d837/attachment.pgp>


More information about the Pkg-llvm-team mailing list