Version française
Home     About     Download     Resources     Contact us    
Browse thread
Newbie ocamlopt problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gerben Wierda <Gerben.Wierda@r...>
Subject: Newbie ocamlopt problem
Hello,

I am new to OCaml. I have succesfuly compiled and installed OCaml on  
Mac OS X. But the outcome is not what I would like.

While building unison on OS X 10.3.9 PowerPC it fails:

ocamlc -o mkProjectInfo mkProjectInfo.ml
./mkProjectInfo > Makefile.ProjectInfo
UISTYLE = text
Building for Unix
NATIVE = true
THREADS = false
STATIC = true
OSTYPE =
OSARCH = osx
echo 'let myName = "'unison'";;' > ubase/projectInfo.ml
echo 'let myVersion = "'2.13.16'";;' >> ubase/projectInfo.ml
echo 'let myMajorVersion = "'2.13'";;' >> ubase/projectInfo.ml
ocamlopt: ubase/projectInfo.ml ---> ubase/projectInfo.cmx
ocamlopt -I lwt -I ubase -c /usr/local/src/unison-2.13.16/ubase/ 
projectInfo.ml
/tmp/camlasm6cb8fe.s:33:Invalid mnemonic 'subl'
/tmp/camlasm6cb8fe.s:35:Invalid mnemonic 'movl'
/tmp/camlasm6cb8fe.s:36:Invalid mnemonic 'movl'
/tmp/camlasm6cb8fe.s:37:Invalid mnemonic 'movl'
/tmp/camlasm6cb8fe.s:38:Invalid mnemonic 'movl'
/tmp/camlasm6cb8fe.s:39:Invalid mnemonic 'movl'
/tmp/camlasm6cb8fe.s:40:Invalid mnemonic 'movl'
/tmp/camlasm6cb8fe.s:41:Invalid mnemonic 'movl'
/tmp/camlasm6cb8fe.s:42:Invalid mnemonic 'addl'
/tmp/camlasm6cb8fe.s:43:Invalid mnemonic 'ret'
/tmp/camlasm6cb8fe.s:55:unknown section attribute: self_modifying_code
/tmp/camlasm6cb8fe.s:55:Rest of line ignored. 1st junk character  
valued 112 (p).
Assembler error, input left in file /tmp/camlasm6cb8fe.s
make[2]: *** [ubase/projectInfo.cmx] Error 2

Non-native building works. I wonder if someone can tell me what  
causes this kind of an error or how I can find out where the error  
comes from (assuming the ocamlopt works on ppc on Mac OS X)

G