From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id BA2ECBB84 for ; Wed, 28 Jan 2009 18:17:58 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AssBAKAhgEnRVcbsk2dsb2JhbACTTz8BAQEBCQkKCREDqkQwhTeIQgEDAQOFRAaDPA X-IronPort-AV: E=Sophos;i="4.37,339,1231110000"; d="scan'208";a="23210216" Received: from rv-out-0506.google.com ([209.85.198.236]) by mail1-smtp-roc.national.inria.fr with ESMTP; 28 Jan 2009 18:17:57 +0100 Received: by rv-out-0506.google.com with SMTP id f6so7568245rvb.3 for ; Wed, 28 Jan 2009 09:17:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=EGcNRcSYh8D2ZmqZhnsWOS1IcOYZDTpqKbgQNDzfjgE=; b=AnrExaSONuXBPrdI/sumNWeJsE/fsA8qBkUd/0hLpiMqkJUauqWEBsff+O2GL9hCE/ buUJ04eYr2zL5LV/3C15FeiQW7U7QWRF6Ubyo4JMFAfvf3pUgMiRWZrZRuOgKscxh02K gvN8dMV8NnIV6V/K4168z1V7I3JkvVpe/5K34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Z7rSbEOwVZZdXFB/2oZeu4nKEOlBZYzrEIcifrdmX4iYZlmapchopRylbzxs+MiR/+ u1w0bzpjsvh5rUQwJ7vrYTFQ+isVA6y41jG9DMaIXjQxm+uFOKVG+Ft+nn0p/8nUUan8 tycvx11168Hg02XtuGS85aQuqg60UjOhD4ovw= MIME-Version: 1.0 Sender: ematsen@gmail.com Received: by 10.140.164.6 with SMTP id m6mr14167rve.144.1233163076827; Wed, 28 Jan 2009 09:17:56 -0800 (PST) In-Reply-To: <49800728.9070200@glondu.net> References: <243054520901272248k31b0a68fs2130dd84f1278dbd@mail.gmail.com> <49800728.9070200@glondu.net> Date: Wed, 28 Jan 2009 09:17:56 -0800 X-Google-Sender-Auth: cc3d0a26945cdf34 Message-ID: <243054520901280917i24c079e5nd36455403ee0fc81@mail.gmail.com> Subject: Re: [Caml-list] problem with LACAML and static linking From: Erick Matsen To: =?ISO-8859-1?Q?St=E9phane_Glondu?= Cc: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lacaml:01 ocaml:01 usr:01 lib:01 gcc:01 usr:01 lib:01 gcc:01 libc:01 libc:01 ocamlopt:01 ocaml:01 pcre:01 gsl:01 lacaml:01 Hello Stephane (and the rest of the ocaml community)--- Thank you for your input here. I do have libgfortran.a, but I might note that it's in /usr/lib/gcc/i486-linux-gnu/4.3/ rather than /usr/lib. This is in contrast to liblapack.a, etc, which just live in /usr/lib. This makes me wonder if this is somehow the problem. I did try (naievely!) copying libgfortran.a over to /usr/lib. I also added /usr/lib/gcc/i486-linux-gnu/4.3/ to my list of directories. No luck yet. Also $ ldd /usr/lib/liblapack.so linux-gate.so.1 => (0xffffe000) libblas.so.3gf => /usr/lib/libblas.so.3gf (0xb775d000) libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0xb76ab000) libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7684000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7677000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb751c000) /lib/ld-linux.so.2 (0x80000000) $ locate linux-gate.a $ locate libblas.a /usr/lib/libblas.a $ locate libgfortran.a /usr/lib/gcc/i486-linux-gnu/4.3/libgfortran.a $ locate libm.a /usr/lib/libm.a /usr/lib/xen/libm.a $ locate libgcc_s.a $ locate libc.a /usr/lib/libc.a /usr/lib/xen/libc.a So everything there seems to be OK. Also # ldd /usr/lib/gcc/i486-linux-gnu/4.3/libgfortran.so linux-gate.so.1 => (0xffffe000) libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7ed9000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7d7e000) /lib/ld-linux.so.2 (0x80000000) Here is my compile line ocamlopt \ # source directories: -I /home/matsen/ocaml/bio/ -I /home/matsen/ocaml/common/ -I /usr/lib/ocaml/3.10.2/pcre/ -I /usr/lib/ocaml/3.10.2/glpk/ -I /usr/lib/ocaml/3.10.2/gsl/ -I /usr/lib/ocaml/3.10.2/lacaml/ -I /usr/lib/gcc/i486-linux-gnu/4.3/ \ # cc directives -ccopt -static -ccopt -lgfortran -ccopt -L/home/matsen/ocaml/bio/ -ccopt -L/home/matsen/ocaml/common/ -ccopt -L/usr/lib/ocaml/3.10.2/pcre/ -ccopt -L/usr/lib/ocaml/3.10.2/glpk/ -ccopt -L/usr/lib/ocaml/3.10.2/gsl/ -ccopt -L/usr/lib/ocaml/3.10.2/lacaml/ -ccopt -L/usr/lib/gcc/i486-linux-gnu/4.3/ pcre.cmxa bigarray.cmxa unix.cmxa gsl.cmxa lacaml.cmxa -o placer \ # my code /home/matsen/ocaml/common/common_base.cmx /home/matsen/ocaml/bio/biobase.cmx base.cmx minimization.cmx integration.cmx /home/matsen/ocaml/bio/liketree.cmx liketreeFuns.cmx /home/matsen/ocaml/common/number.cmx /home/matsen/ocaml/common/mat.cmx /home/matsen/ocaml/bio/diagd.cmx /home/matsen/ocaml/bio/qtree.cmx /home/matsen/ocaml/bio/protModels.cmx /home/matsen/ocaml/bio/alignment.cmx /home/matsen/ocaml/bio/alignmentLike.cmx placerFuns.cmx placer.cmx Thank you again for your help. If we can get this running, I'll definitely acknowledge your help in our paper, which is in the long run about understanding the distribution of phytoplankton in the ocean and ramifications for carbon cycling (very relevant for climate change...). Erick