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=2.1 required=5.0 tests=AWL,DNS_FROM_RFC_POST, 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 F160DBBAF for ; Wed, 23 Jul 2008 09:08:45 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtQDANd1hkjRVcbmZWdsb2JhbACSDEMQBB4DmFWGPw X-IronPort-AV: E=Sophos;i="4.31,236,1215381600"; d="scan'208";a="27593914" Received: from rv-out-0506.google.com ([209.85.198.230]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Jul 2008 09:08:45 +0200 Received: by rv-out-0506.google.com with SMTP id f6so1911122rvb.3 for ; Wed, 23 Jul 2008 00:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=cWHH/LdTo+u4qHDPnzfqR8LLoZKJTS+a0jKCGzefzX8=; b=OO0qyVBsn3QhHLff5tIoU3USbD8Q2nYXMOgewnyyA2LqimqVTnHQbYENEUmgVKkpG1 C8CKbhlgjE+tqSr9C1Sig9IMy1ZFyRzSbTTbCXdzUQPEgt8ztvUbVChYVK4WFiprNGuk i7aOjTuc87FfRsvSsjel7quYFDaJQslghhj7Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jTZNEZOYrdXF35PawQ8pK8POLr8EdVLKu7GKz3r+yBX4Y3D6OJ1HRVqS6h/IfOka+g yLjtq9xa1eiihL4R+BGsIfUFJOpSJ1qr8qb9WpR/aGh4c9I4ImZRmTQx5XX1hKCNRbOE zqO8fRWA7Qfyfzqw7a1LqNSrUX6PHKpTG7iKQ= Received: by 10.114.89.1 with SMTP id m1mr4572714wab.146.1216796923416; Wed, 23 Jul 2008 00:08:43 -0700 (PDT) Received: by 10.114.194.19 with HTTP; Wed, 23 Jul 2008 00:08:43 -0700 (PDT) Message-ID: <9a3dee4b0807230008t3d68e3bu920c1a4af658e857@mail.gmail.com> Date: Wed, 23 Jul 2008 09:08:43 +0200 From: "Jonathan Marchand" To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Compiling a shared library with amd64 In-Reply-To: <4885A55E.2070302@frisch.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9a3dee4b0807220208v6f81dda5m8ad3802ec266977c@mail.gmail.com> <4885A55E.2070302@frisch.fr> X-Spam: no; 0.00; ocaml:01 cvs:01 -shared:01 foo:01 foo:01 usr:01 lib:01 -rdynamic:01 -wl:01 runtime:01 usr:01 lib:01 ocaml:01 libasmrun:01 libunix:01 I still have the same problem with ocaml from CVS (exemple from rocaml): cc -shared -o foo.so foo_rocaml_wrapper.o -L. -L/usr/lib -L. -rdynamic -Wl,-export-dynamic foo_rocaml_runtime.o /usr/local/lib/ocaml/libasmrun.a /usr/local/lib/ocaml/libunix.a /usr/local/lib/ocaml/libnums.a -lruby1.8 -lpthread -ldl -lcrypt -lm -lc /usr/bin/ld: /usr/local/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/ocaml/libasmrun.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [foo.so] Erreur 1 Is there any specific tag to check out from CVS? On Tue, Jul 22, 2008 at 11:16 AM, Alain Frisch wrote: > Jonathan Marchand wrote: >> >> But I still have issues with the ocaml libraries. I don't know how to >> compile the standard library from the ocaml tarball with -fPIC. > > You should try the current CVS version of OCaml. Under AMD64, ocamlopt now > produces PIC code by default. > > -- Alain > >