Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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  
source
   tree has been found. A script shell file "_build/sanitize.sh" is  
being
   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
   option).
IMPORTANT: I cannot work with leftover compiled files.

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

./build/fastworld.sh
...
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
/var/folders/pc/pcNEaYn32RW2i++8ZQvErU+++TM/-Tmp-/camlasm6081f1.s: 
602:junk `@PLT' after expression
/var/folders/pc/pcNEaYn32RW2i++8ZQvErU+++TM/-Tmp-/camlasm6081f1.s: 
633:junk `@PLT' after expression
...
/var/folders/pc/pcNEaYn32RW2i++8ZQvErU+++TM/-Tmp-/camlasm6081f1.s: 
2432:junk `@PLT' after expression
File "stdlib/pervasives.ml", line 1, characters 0-1:
Error: Assembler error, input left in file /var/folders/pc/ 
pcNEaYn32RW2i++8ZQvErU+++TM/-Tmp-/camlasm6081f1.s
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  
+2432

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


---
http://tinyco.de
Mac, C++, OCaml