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=1.0 required=5.0 tests=AWL,HTML_MESSAGE,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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id CC3CDBC6B for ; Tue, 18 Sep 2007 21:21:54 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAMHB70bRVYa9kWdsb2JhbACCPDSLIAICBwQEDwIY X-IronPort-AV: E=Sophos;i="4.20,270,1186351200"; d="scan'208";a="16382880" Received: from mu-out-0910.google.com ([209.85.134.189]) by mail4-smtp-sop.national.inria.fr with ESMTP; 18 Sep 2007 21:23:02 +0200 Received: by mu-out-0910.google.com with SMTP id w8so1905373mue for ; Tue, 18 Sep 2007 12:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=BGd+umP6x1pwL9G4BGkH2wRDQ7DWJT65phqsWZ44Vps=; b=nO7uMry9wtxuoAmpct62TgV7pjixNil/nNlUN4cnRhKtMa3K5vZnoVrpu3B2pxKGJ3WCRD6PVampwYlmLh4fHWP6VBkV7SniX3Z0N6XRBaKWaBo1JN9c3f8eha9gupOsygsyhsBIzWOW4sNJbbx85vOXg8VkHAV9vc+LsupaZeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=DyIglIJdrLE5yNGB/EyjwlJ/HNxkBSM2ln/v25pdG65qbo0AlXfII4L/7wICW57fb6GG3u+VKN82BRAU3I0TnVThGbDcTgQvZYD/CH3wdCYt4rJGO2xwJV2RhC3hXNgwSH3QgQZbVBYKiZv50DPs/l/UiZjCCIKZmZqkGkYLfok= Received: by 10.82.146.14 with SMTP id t14mr8480911bud.1190143381157; Tue, 18 Sep 2007 12:23:01 -0700 (PDT) Received: by 10.82.140.5 with HTTP; Tue, 18 Sep 2007 12:23:01 -0700 (PDT) Message-ID: <164378d10709181223u61f0cdccnbebacf8a6ed26169@mail.gmail.com> Date: Tue, 18 Sep 2007 16:23:01 -0300 From: Rod To: "Andres Varon" Subject: Re: [Caml-list] OCamlMPI problem Cc: caml-list@yquem.inria.fr In-Reply-To: <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27075_24944479.1190143381140" References: <164378d10709171408y5818c858g34b02d7eaa223aab@mail.gmail.com> <8BB4C643-AC23-44E8-A5AE-FF6888BB2D0E@gmail.com> X-Spam: no; 0.00; ocamlmpi:01 usr:01 lib:01 ocamlc:01 usr:01 lib:01 runtime:01 ocamlc:01 runtime:01 ocaml:01 ocamlmpi:01 compiler:01 flags:01 compilation:01 ocaml:01 ------=_Part_27075_24944479.1190143381140 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 > > > ------=_Part_27075_24944479.1190143381140 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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:


------=_Part_27075_24944479.1190143381140--