From: Erick Matsen <matsen@berkeley.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] problem with LACAML and static linking
Date: Wed, 28 Jan 2009 09:56:13 -0800 [thread overview]
Message-ID: <243054520901280956i258ce362qc684509ceaac1d52@mail.gmail.com> (raw)
In-Reply-To: <20090128173305.GJ25469@NANA.localdomain>
Hello Mauricio---
Is this what you mean?
ocamlopt \
-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/ \
-ccopt -static \
#HERE...
-cclib /usr/lib/gcc/i486-linux-gnu/4.3/libgfortran.a \
-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 \
/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
That gives
/usr/lib/libblas.a(xerbla.o): In function `xerbla_':
(.text+0x0): multiple definition of `xerbla_'
/usr/lib/liblapack.a(xerbla.o):(.text+0x0): first defined here
/usr/lib/ocaml/3.10.2/libasmrun.a(unix.o): In function `caml_dlopen':
(.text+0x223): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/ocaml/3.10.2/libunix.a(getgr.o): In function `unix_getgrgid':
... similar messages ....
so BLAS and gfortran both define xerbla. Hm... but progress!
Thanks,
Erick
On Wed, Jan 28, 2009 at 9:33 AM, Mauricio Fernandez <mfp@acm.org> wrote:
> On Wed, Jan 28, 2009 at 09:17:56AM -0800, Erick Matsen wrote:
>> 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
>
> I think you need -cclib here (just did s/cclib/ccopt/ with some code of mine
> and got undefined refs...).
>
> --
> Mauricio Fernandez - http://eigenclass.org
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
next prev parent reply other threads:[~2009-01-28 17:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-28 6:48 Erick Matsen
2009-01-28 7:20 ` [Caml-list] " Stéphane Glondu
2009-01-28 17:17 ` Erick Matsen
2009-01-28 17:33 ` Mauricio Fernandez
2009-01-28 17:56 ` Erick Matsen [this message]
2009-01-28 18:49 ` Stéphane Glondu
2009-01-28 18:50 ` Erick Matsen
2009-01-28 19:05 ` Stéphane Glondu
2009-01-28 19:24 ` Markus Mottl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=243054520901280956i258ce362qc684509ceaac1d52@mail.gmail.com \
--to=matsen@berkeley.edu \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox