From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id C6E6CBB9A for ; Thu, 6 Oct 2005 11:14:05 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j969E5tV017047 for ; Thu, 6 Oct 2005 11:14:05 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA08257 for ; Thu, 6 Oct 2005 11:14:04 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j969E31K017043 for ; Thu, 6 Oct 2005 11:14:04 +0200 Received: from localhost (suiren [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.13.1/8.13.1) with ESMTP id j969Dw8d015194; Thu, 6 Oct 2005 18:13:59 +0900 (JST) Date: Thu, 06 Oct 2005 18:13:57 +0900 (JST) Message-Id: <20051006.181357.97292767.garrigue@math.nagoya-u.ac.jp> To: rkarimi@gmail.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlopt problem From: Jacques Garrigue In-Reply-To: References: X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4344EADD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4344EADB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlopt:01 ocamlopt:01 compiler:01 mli:01 ocamlc:01 compiler:01 compilation:01 mingw:01 mli:01 ocamlc:01 bytecode:01 -custom:01 werden:98 cygwin:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 From: Rasool Karimi > When I compile a .ml file with ocamlopt compiler, an error message is shown > with this message:"Der Befehl "as" ist entweder falsch geschrieben oder > konnte nicht gefunden werden, Assembler error, input left in file > C:\DOKUME~1\karinu\LOKALE~1\Temp\camlasm9312 7a.s". Part of this message is > in german and translation of it in english is : "The instruction "as" is > either wrongly written or could not not be found". But when I compile a .mli > file, this message is not shown and file is compiled successfully. Also when > I compile a .ml file with ocamlc compiler, there is no error and compilation > is done successfully. So there is not error in my program and this error > maybe is related to ocamlopt compiler. The message is to be understood literally: in order to compile assembly code to machine code, ocamlopt relies on an external assembler. I suppose you use either the mingw or cygwin version, so the name of the assembler is "as". You must make sure you installed it with cygwin. With a .mli, there is no object created, so no external command is required. Similarly ocamlc generates bytecode all by itself, so there is no such problem (as long as you don't use the -custom option.) Jacques Garrigue