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 RAA17686; Tue, 31 Aug 2004 17:18:58 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA16494 for ; Tue, 31 Aug 2004 17:18:57 +0200 (MET DST) Received: from mwinf0103.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i7VFIv4U029900 for ; Tue, 31 Aug 2004 17:18:57 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0103.wanadoo.fr (SMTP Server) with SMTP id EE38B1BFFF6A; Tue, 31 Aug 2004 17:18:56 +0200 (CEST) Received: from atlantis (ARouen-106-1-6-38.w80-11.abo.wanadoo.fr [80.11.239.38]) by mwinf0103.wanadoo.fr (SMTP Server) with SMTP id 5A82D1BFFF53; Tue, 31 Aug 2004 17:18:56 +0200 (CEST) Message-ID: <000801c48f6d$d572bc10$0300a8c0@atlantis> From: =?iso-8859-1?Q?Gava_fr=E9d=E9ric?= To: Cc: Subject: [Caml-list] Error during linking Date: Tue, 31 Aug 2004 17:18:55 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C48F7E.986EDC70" 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 concorde with ID 413496E1.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 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C48F7E.986EDC70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_0005_01C48F7E.986EDC70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I want to used OCaml for parallel = computing. For=20 this, I used the Paderborn
University BSP-Library (http://wwwcs.upb.de/~bsp/), i.e, = a=20 C-compiler for
parallel computing (like mpicc) and I write a library = in the=20 spirit of
ocamlMPI of Xavier Leroy (i.e, a "C file" using = <mpi.h>=20 calling the mpi
primitives and a camlmpi.ml file for Interfacing mpi = with=20 Objective Caml)
 
When I compile the library (using = ocamlopt), I have=20 no problem. But when I
want an executable:
 
ocamlopt -thread unix.cmxa threads.cmxa = -I=20 /home/gava/lib/
/home/gava/lib/libbsmllib.pub_stubs.a files.cmx=20 files.cmxa
parallel_caml.pub.cmxa  -cc pubcc -o prog=20 prog.ml
 
where files.cmx(a) are other libraries = (tools) in=20 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=20 definition of=20 `sys_init'
/usr/local/lib/ocaml/libasmrun.a(sys.o)(.text+0x3f0): = first=20 defined here
/usr/i386-slackware-linux/bin/ld: Warning: size of = symbol=20 `sys_init' changed
from 22 to 44 in=20 /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):=20 In function
`sys_time':
/usr/local/pub/system/system_unix.c:242: = multiple=20 definition of=20 `sys_time'
/usr/local/lib/ocaml/libasmrun.a(sys.o)(.text+0x4bc): = first=20 defined here
/usr/i386-slackware-linux/bin/ld: Warning: size of = symbol=20 `sys_time' changed
from 66 to 49 in=20 /usr/local/pub/lib/pc/linux/tcpip/libpub_d.a(system_unix.o)
collect2: = ld=20 returned 1 exit status
Error during linking
 
Anybody have an idea = ?
Thanks.
Frederic=20 Gava
------=_NextPart_000_0005_01C48F7E.986EDC70-- ------------------- 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