From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA10866; Tue, 31 Aug 2004 15:44:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA12207 for ; Tue, 31 Aug 2004 15:44:52 +0200 (MET DST) Received: from mwinf0112.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i7VDiqBI023668 for ; Tue, 31 Aug 2004 15:44:52 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0112.wanadoo.fr (SMTP Server) with SMTP id 5748B180013C; Tue, 31 Aug 2004 15:44:52 +0200 (CEST) Received: from atlantis (ARouen-106-1-6-38.w80-11.abo.wanadoo.fr [80.11.239.38]) by mwinf0112.wanadoo.fr (SMTP Server) with SMTP id BD17618000EB; Tue, 31 Aug 2004 15:44:51 +0200 (CEST) Message-ID: <000e01c48f60$b0fd9e20$0300a8c0@atlantis> From: =?iso-8859-1?Q?Gava_fr=E9d=E9ric?= To: Cc: Subject: [Caml-list] Error during linking Date: Tue, 31 Aug 2004 15:44:51 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-Miltered: at nez-perce with ID 413480D4.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bsp:99 ocamlmpi:01 mpi:01 mpi:01 interfacing:01 ocamlopt:01 ocamlopt:01 -thread:01 threads:01 cmx:01 cmx:01 usr:01 tcpip:99 usr:01 libasmrun:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I want to used OCaml for parallel computing. For this, I used the Paderborn University BSP-Library (http://wwwcs.upb.de/~bsp/), i.e, a C-compiler for parallel computing (like mpicc) and I write a library in the spirit of ocamlMPI of Xavier Leroy (i.e, a "C file" using calling the mpi primitives and a camlmpi.ml file for Interfacing mpi with Objective Caml) When I compile the library (using ocamlopt), I have no problem. But when I want an executable: ocamlopt -thread unix.cmxa threads.cmxa -I /home/gava/lib/ /home/gava/lib/libbsmllib.pub_stubs.a files.cmx files.cmxa parallel_caml.pub.cmxa -cc pubcc -o prog prog.ml where files.cmx(a) are other libraries (tools) in the directory (/home/gava/lib/). I have this error message: /usr/local/pub/lib/pc/linux/tcpip/libpub_d.a(system_unix.o): In function `sys_init': /usr/local/pub/system/system_unix.c:189: multiple definition of `sys_init' /usr/local/lib/ocaml/libasmrun.a(sys.o)(.text+0x3f0): first defined here /usr/i386-slackware-linux/bin/ld: Warning: size of symbol `sys_init' changed from 22 to 44 in /usr/local/pub/lib/pc/linux/tcpip/libpub_d.a(system_unix.o) /usr/local/pub/lib/pc/linux/tcpip/libpub_d.a(system_unix.o): In function `sys_time': /usr/local/pub/system/system_unix.c:242: multiple definition of `sys_time' /usr/local/lib/ocaml/libasmrun.a(sys.o)(.text+0x4bc): first defined here /usr/i386-slackware-linux/bin/ld: Warning: size of symbol `sys_time' changed from 66 to 49 in /usr/local/pub/lib/pc/linux/tcpip/libpub_d.a(system_unix.o) collect2: ld returned 1 exit status Error during linking Anybody have an idea ? Thanks. Frederic Gava ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners