caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Newbie ocamlopt problem
@ 2006-10-12 22:05 Gerben Wierda
  0 siblings, 0 replies; only message in thread
From: Gerben Wierda @ 2006-10-12 22:05 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-12 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-12 22:05 Newbie ocamlopt problem Gerben Wierda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).