Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Marcin Wudarczyk <mar@mar.prv.pl>
To: caml-list@yquem.inria.fr
Subject: AMD64, ocamlopt, output-obj
Date: Tue, 16 Aug 2005 00:02:39 +0200	[thread overview]
Message-ID: <430110FF.9060405@mar.prv.pl> (raw)

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


                 reply	other threads:[~2005-08-15 22:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=430110FF.9060405@mar.prv.pl \
    --to=mar@mar.prv.pl \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox