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.8 required=5.0 tests=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 5EB26BB84 for ; Wed, 28 Jan 2009 07:49:03 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvcBACKPf0nRVcbvi2dsb2JhbACTTj8BAQEKCwoHDwWnKy6Fa4hCAQMBA4VEBoM3 X-IronPort-AV: E=Sophos;i="4.37,336,1231110000"; d="scan'208";a="23172264" Received: from rv-out-0506.google.com ([209.85.198.239]) by mail1-smtp-roc.national.inria.fr with ESMTP; 28 Jan 2009 07:48:46 +0100 Received: by rv-out-0506.google.com with SMTP id f6so7331480rvb.3 for ; Tue, 27 Jan 2009 22:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FFF8Dy0m+Rn9uKK96q7GkeUly5n9Foiw32gX6tgvIaU=; b=cgVuJVuSWn7Rj7ISwrYmHyRIDsUDTtJB9hSftQfmDoRbjc1c7CY7KeTdCxQ7/rucaH 7tzIQwZrfjHBZaaYmZjOQvTzQiNZLAdr0DRM7Nb3SMti6LW3FHSMSZGXLVZSbPhTL6Ie ujq/8tuCyH7SJ3rdvtd2UXVduA/x8CZprPGFM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=Vnwq0eAOssj3Etnvp/xyygsDq3bd18kzVmVhLN6IoNxknsOgqLmwjImvFwk14Qb53d vqqbeJH58pOzQgVwStYNKrUpgS3Sx9NTrtcZFlI+04f3D/TJDhj5qXOcMn/bMr5Fr7ru 0PLHD4iotFjQlvd1qXvvBsralp4hOFSOqXJzA= MIME-Version: 1.0 Sender: ematsen@gmail.com Received: by 10.141.205.10 with SMTP id h10mr5117858rvq.225.1233125325849; Tue, 27 Jan 2009 22:48:45 -0800 (PST) Date: Tue, 27 Jan 2009 22:48:45 -0800 X-Google-Sender-Auth: 4f497542ec2edece Message-ID: <243054520901272248k31b0a68fs2130dd84f1278dbd@mail.gmail.com> Subject: problem with LACAML and static linking From: Erick Matsen To: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lacaml:01 compilation:01 lacaml:01 ocamlopt:01 -static:01 pcre:01 gsl:01 usr:01 lib:01 usr:01 lib:01 lapack:01 ocaml:01 lapack:01 undefined:01 Hello everyone--- I apologize for posting what is certainly a naive question, but I have not been able to find an answer on the web. I am having trouble with static compilation and LACAML. I have used ocamlopt with -ccopt -static a number of times sucessfully (with PCRE and I think GSL), but when I added modules using LACAML I get a series of errors like /usr/lib//liblapack.a(sgesvd.o): In function `sgesvd_': (.text+0x3ad): undefined reference to `_gfortran_concat_string' /usr/lib//liblapack.a(sgesvd.o): In function `sgesvd_': (.text+0x94f): undefined reference to `_gfortran_concat_string' ... It appears that I need somehow to make sure that lapack can find gfortgran, but libgfortran is sitting happily in /usr/lib. I'm running ocaml 3.10.2, lacaml 3.0.19, and lapack 3. Any help would be much appreciated. Thanks, Erick