caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: rkarimi@gmail.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlopt problem
Date: Thu, 06 Oct 2005 18:13:57 +0900 (JST)	[thread overview]
Message-ID: <20051006.181357.97292767.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <b9e8b78c0510060007y39d39619kf05dd4af554ed3a8@mail.gmail.com>

From: Rasool Karimi <rkarimi@gmail.com>

> 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


  reply	other threads:[~2005-10-06  9:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-06  6:55 Rasool Karimi
2005-10-06  7:07 ` Rasool Karimi
2005-10-06  9:13   ` Jacques Garrigue [this message]
2005-10-06  7:25 ` [Caml-list] " David MENTRE
2005-10-06  9:09 ` Pierre Etchemaite
2005-10-06 19:46 ` Ant: " Martin Chabr
2006-06-05  8:34 EL CHAAR Rabih   SGAM/AI/SAM
2006-06-05 10:55 ` David Allsopp

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=20051006.181357.97292767.garrigue@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=rkarimi@gmail.com \
    /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).