From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 9B6A1BC3C for ; Tue, 16 Aug 2005 00:00:05 +0200 (CEST) Received: from nglogic.com (206-176-155-187.waymark.net [206.176.155.187]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j7FM04bv028439 for ; Tue, 16 Aug 2005 00:00:05 +0200 Received: from [192.168.0.244] ([127.0.0.1]) by nglogic.com with MailEnable ESMTP; Mon, 15 Aug 2005 16:59:30 -0500 Message-ID: <430110FF.9060405@mar.prv.pl> Date: Tue, 16 Aug 2005 00:02:39 +0200 From: Marcin Wudarczyk User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: AMD64, ocamlopt, output-obj Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 43011064.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlopt:01 ocamlopt:01 -output-obj:01 usr:01 recompile:01 -fpic:01 recompile:01 cheers:01 bin:01 caml:02 linking:03 shared:04 compiled:04 installed:06 maybe:07 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Hello, I am trying to create a so file on FC3 x64 installed on AMD64. I am creating object file with ocamlopt -output-obj and then link with other stuff compiled for x64. However, I receive an error during linking : /usr/bin/ld: PyCaml.o: relocation R_X86_64_32S against `caml_curry2_1' can not be used when making a shared object; recompile with -fPIC PyCaml.o: could not read symbols: Bad value I cannot recompile, as it is ocamlopt who 'compiles'. Any ideas for the reason? Maybe ocamlopt is not producing AMD64 object files (but regular 32 bit ones)? Cheers Marcin Wudarczyk