caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Error during linking
@ 2004-08-31 15:18 Gava frédéric
  0 siblings, 0 replies; 3+ messages in thread
From: Gava frédéric @ 2004-08-31 15:18 UTC (permalink / raw)
  To: caml-list; +Cc: ocaml_beginners

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

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 <mpi.h> 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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Error during linking
  2004-08-31 13:44 Gava frédéric
@ 2004-08-31 15:42 ` Damien Doligez
  0 siblings, 0 replies; 3+ messages in thread
From: Damien Doligez @ 2004-08-31 15:42 UTC (permalink / raw)
  To: Gava frédéric; +Cc: ocaml_beginners, caml-list

On Aug 31, 2004, at 15:44, Gava frédéric wrote:

> /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 ?

It's a name clash between two C libraries, one of which happens to be
the O'Caml runtime.  This problem was fixed after release 3.07+2.  You
should upgrade to O'Caml version 3.08.1.

-- Damien

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Error during linking
@ 2004-08-31 13:44 Gava frédéric
  2004-08-31 15:42 ` Damien Doligez
  0 siblings, 1 reply; 3+ messages in thread
From: Gava frédéric @ 2004-08-31 13:44 UTC (permalink / raw)
  To: caml-list; +Cc: ocaml_beginners

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 <mpi.h> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-31 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31 15:18 [Caml-list] Error during linking Gava frédéric
  -- strict thread matches above, loose matches on Subject: below --
2004-08-31 13:44 Gava frédéric
2004-08-31 15:42 ` Damien Doligez

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).