From: Gerben Wierda <Gerben.Wierda@rna.nl>
To: caml-list@yquem.inria.fr
Subject: Newbie ocamlopt problem
Date: Fri, 13 Oct 2006 00:05:43 +0200 [thread overview]
Message-ID: <FC39925B-6794-413E-9C89-080D78CA0818@rna.nl> (raw)
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
reply other threads:[~2006-10-12 22:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FC39925B-6794-413E-9C89-080D78CA0818@rna.nl \
--to=gerben.wierda@rna.nl \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).