caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Rod <rodiney@gmail.com>
To: "Andres Varon" <avaron@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] OCamlMPI problem
Date: Tue, 18 Sep 2007 16:23:01 -0300	[thread overview]
Message-ID: <164378d10709181223u61f0cdccnbebacf8a6ed26169@mail.gmail.com> (raw)
In-Reply-To: <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2499 bytes --]

Hi again buddies!!
First, thanks for replying me.
Well... I just tried to locate 'libmpi.a' as you can see below:

[rodiney@homer ocamlmpi-1.01]$ locate libmpi.a
/usr/lib/lam/libmpi.a

Then, I tried the following:

[rodiney@homer ocamlmpi-1.01]$ ocamlc -o testmpi mpi.cma unix.cma
test.ml-ccopt -L /usr/lib/lam/libmpi.a

File "test.ml", line 144, characters 6-9:
Warning Y: unused variable res.
/usr/bin/ld: cannot find -lcamlmpi
collect2: ld returned 1 exit status
Error while building custom runtime system

and then I tried to do the following as well:

[rodiney@homer ocamlmpi-1.01]$ ocamlc -cc mpicc -o testmpi unix.cma mpi.cma
test.ml -ccopt -L `locate libmpi.a`

File "test.ml", line 144, characters 6-9:
Warning Y: unused variable res.
/usr/bin/ld: cannot find -lcamlmpi
collect2: ld returned 1 exit status
Error while building custom runtime system

Damn it!! The build system is now asking for 'libcamlmpi.a'
So, I used 'locate' once again:

[rodiney@homer ocamlmpi-1.01]$ locate libcamlmpi
/home/rodiney/ocamlmpi-1.01/libcamlmpi.a
/usr/lib/ocaml/ocamlmpi/libcamlmpi.a

Which 'libcamlmpi.a' should I use??
So, there is a new problem! How can I solve it?? Please, any suggestion?
Thanks again!!

On 9/18/07, Andres Varon <avaron@gmail.com> wrote:
>
> You need to use mpicc as the C compiler and linker. That will take care of
> passing whatever flags are needed for proper compilation and linking. You
> can pass it to ocaml with:
> ocamlc -cc mpicc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.
>
>
>
> Andres
>
>
> On Sep 17, 2007, at 5:08 PM, Rod wrote:
>
> Hi all,
>
>     I'm trying to compile the test file using ocamlmpi, but just what I
> have is this message
>
> -------------------------------------------------------------------------------
> ocamlc -o testmpi unix.cma mpi.cma test.ml -ccopt -L.
> File "test.ml", line 144, characters 6-9:
> Warning Y: unused variable res.
> /usr/bin/ld: cannot find -lmpi
> collect2: ld returned 1 exit status
> Error while building custom runtime system
>
> -----------------------------------------------------------------------------
>
> I'm using mpich2-1.0.5p4.
>
> Thanks in advance for any answer.
>
> Cheer,
> Rodiney
>
> _______________________________________________
> 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
>
>
>

[-- Attachment #2: Type: text/html, Size: 4425 bytes --]

  reply	other threads:[~2007-09-18 19:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17 21:08 Rod
2007-09-17 21:45 ` [Caml-list] " skaller
2007-09-18 13:51 ` Andres Varon
2007-09-18 19:23   ` Rod [this message]
     [not found]     ` <AE44733D-5A0C-4176-B165-5EF7CDB9C0E7@gmail.com>
2007-10-07 21:33       ` Rod
2007-09-25 18:35   ` Jhou ^^

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=164378d10709181223u61f0cdccnbebacf8a6ed26169@mail.gmail.com \
    --to=rodiney@gmail.com \
    --cc=avaron@gmail.com \
    --cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).