English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
building 64bit ocaml from cvs on mac osx leopard
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-06 (09:13)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] building 64bit ocaml from cvs on mac osx leopard

On Mar 6, 2009, at 8:17 AM, Nicolas Pouillard wrote:

> I recall that moving from one build procedure to another requires
> a full clean (make clean ; ./build/distclean.sh).

./build/distclean && ./configure ... && ./build/fastworld.sh

SANITIZE: a total of 749 files that should probably not be in your  
   tree has been found. A script shell file "_build/sanitize.sh" is  
   created. Check this script and run it to remove unwanted files or  
use other
   options (such as defining hygiene exceptions or using the -no-hygiene
IMPORTANT: I cannot work with leftover compiled files.

Once ./_build/sanitize.sh is run, the error is the same as when  
running regular make.

mkdir asmrun
cp -pf /Users/joelr/Work/ocaml/asmrun/libasmrun.a asmrun/libasmrun.a
cp -p asmrun/libasmrun.a stdlib/libasmrun.a
boot/ocamlrun ./ocamlopt -nostdlib -c -nopervasives -I stdlib -o  
stdlib/pervasives.cmx stdlib/pervasives.ml
602:junk `@PLT' after expression
633:junk `@PLT' after expression
2432:junk `@PLT' after expression
File "stdlib/pervasives.ml", line 1, characters 0-1:
Error: Assembler error, input left in file /var/folders/pc/ 
Exit code 2 while executing this command:
   boot/ocamlrun ./ocamlopt -nostdlib -c -nopervasives -I stdlib -o  
stdlib/pervasives.cmx stdlib/pervasives.ml

And the error?

view /var/folders/pc/pcNEaYn32RW2i++8ZQvErU+++TM/-Tmp-/camlasm6081f1.s  

         movq    _camlPervasives__1@GOTPCREL(%rip), %rdi
         movq    _caml_register_named_value@GOTPCREL(%rip), %rax
         call    _caml_c_call@PLT

Mac, C++, OCaml