caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlopt problem
@ 2005-10-06  6:55 Rasool Karimi
  2005-10-06  7:07 ` Rasool Karimi
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Rasool Karimi @ 2005-10-06  6:55 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

Dear all freinds,
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.
Is there any body who can help me? It is very emergent.
Thanks,
Karimi.

[-- Attachment #2: Type: text/html, Size: 872 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* ocamlopt problem
  2005-10-06  6:55 ocamlopt problem Rasool Karimi
@ 2005-10-06  7:07 ` Rasool Karimi
  2005-10-06  9:13   ` [Caml-list] " Jacques Garrigue
  2005-10-06  7:25 ` David MENTRE
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Rasool Karimi @ 2005-10-06  7:07 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

Dear all freinds,
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.
Is there any body who can help me? It is very emergent.
Thanks,
Karimi.

[-- Attachment #2: Type: text/html, Size: 933 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] ocamlopt problem
  2005-10-06  6:55 ocamlopt problem Rasool Karimi
  2005-10-06  7:07 ` Rasool Karimi
@ 2005-10-06  7:25 ` David MENTRE
  2005-10-06  9:09 ` Pierre Etchemaite
  2005-10-06 19:46 ` Ant: " Martin Chabr
  3 siblings, 0 replies; 6+ messages in thread
From: David MENTRE @ 2005-10-06  7:25 UTC (permalink / raw)
  To: Rasool Karimi; +Cc: caml-list

Hello,

2005/10/6, Rasool Karimi <rkarimi@gmail.com>:
> 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.

There is no reason that a particular error occurs with ocamlopt and
not ocamlc, especially as the syntax and typing phases are common to
both compilers (moreover, bugs in ocaml compilers are quite rare. Rule
of thumb: never suspect a bug in the compiler, always in your code).
So I would suspect an issue with your particular file or your
compiling environment. We cannot say much more without (1) having your
particular .ml and .mli file and (2) knowing in which environment your
are compiling.

Yours,
d.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] ocamlopt problem
  2005-10-06  6:55 ocamlopt problem Rasool Karimi
  2005-10-06  7:07 ` Rasool Karimi
  2005-10-06  7:25 ` David MENTRE
@ 2005-10-06  9:09 ` Pierre Etchemaite
  2005-10-06 19:46 ` Ant: " Martin Chabr
  3 siblings, 0 replies; 6+ messages in thread
From: Pierre Etchemaite @ 2005-10-06  9:09 UTC (permalink / raw)
  To: caml-list

Le Thu, 6 Oct 2005 08:55:19 +0200, Rasool Karimi <rkarimi@gmail.com> a écrit
:
> 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". 

Looks like as (the GNU portable assembler) is not installed, or at least not
in your $PATH...


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] ocamlopt problem
  2005-10-06  7:07 ` Rasool Karimi
@ 2005-10-06  9:13   ` Jacques Garrigue
  0 siblings, 0 replies; 6+ messages in thread
From: Jacques Garrigue @ 2005-10-06  9:13 UTC (permalink / raw)
  To: rkarimi; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Ant:  [Caml-list] ocamlopt problem
  2005-10-06  6:55 ocamlopt problem Rasool Karimi
                   ` (2 preceding siblings ...)
  2005-10-06  9:09 ` Pierre Etchemaite
@ 2005-10-06 19:46 ` Martin Chabr
  3 siblings, 0 replies; 6+ messages in thread
From: Martin Chabr @ 2005-10-06 19:46 UTC (permalink / raw)
  To: Rasool Karimi; +Cc: caml-list

Hello Karimi,

I can see from the backslashes that Windows is
involved.

I have had some problems with Windows, but it works
now. I do not remember the error messages. Let me just
summarize all that you need:
- Install MS C++ and MS Assembler (free from the Web)
- make sure that all paths to bin directories are set
properly
- always work with the Console which is attached to
your C++ compiler (the icon is set up when you install
it), never the Windows Console

I use Windows 2000. I have never tried the other two
options for compiling under Windows (Cygwin etc.)

I also have Debian/Knoppix-Linux. There you install
everything easily as a Debian package with apt-get and
everything just works. OCaml is better supported under
Linux (debugger, more tools, GUIs etc.)

Regards,

Martin
--- Rasool Karimi <rkarimi@gmail.com> schrieb:

> Dear all freinds,
> 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.
> Is there any body who can help me? It is very
> emergent.
> Thanks,
> Karimi.
> > _______________________________________________
> Caml-list mailing list. Subscription management:
>
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list:
> http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
> 



	

	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-06 19:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06  6:55 ocamlopt problem Rasool Karimi
2005-10-06  7:07 ` Rasool Karimi
2005-10-06  9:13   ` [Caml-list] " Jacques Garrigue
2005-10-06  7:25 ` David MENTRE
2005-10-06  9:09 ` Pierre Etchemaite
2005-10-06 19:46 ` Ant: " Martin Chabr

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).