Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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/

./build/distclean && ./configure ... && ./build/

SANITIZE: a total of 749 files that should probably not be in your  
   tree has been found. A script shell file "_build/" 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/ 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/
602:junk `@PLT' after expression
633:junk `@PLT' after expression
2432:junk `@PLT' after expression
File "stdlib/", 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/

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