From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id DCC59BBE1 for ; Fri, 13 Oct 2006 00:06:09 +0200 (CEST) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id k9CM63kf029775 for ; Fri, 13 Oct 2006 00:06:09 +0200 Received: from ii2.demon.nl ([82.161.98.36]:20980 helo=mail.rna.nl) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1GY8gh-000DQR-5I for caml-list@yquem.inria.fr; Thu, 12 Oct 2006 22:05:59 +0000 Received: from [192.168.2.87] (hermione-a.rna.nl [192.168.2.87]) by mail.rna.nl (Postfix) with ESMTP id B821865F5C3 for ; Fri, 13 Oct 2006 00:05:54 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: caml-list@yquem.inria.fr From: Gerben Wierda Subject: Newbie ocamlopt problem Date: Fri, 13 Oct 2006 00:05:43 +0200 X-Mailer: Apple Mail (2.752.3) X-Miltered: at discorde with ID 452EBC4B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlopt:01 ocaml:01 ocaml:01 powerpc:01 ocamlc:01 makefile:01 unix:01 threads:01 ostype:01 osx:01 'let:01 myname:01 'let:01 ocamlopt:01 cmx:01 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