From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA04879; Tue, 26 Feb 2002 10:11:43 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA04984 for caml-list@pauillac.inria.fr; Tue, 26 Feb 2002 10:11:43 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA24583 for ; Mon, 25 Feb 2002 17:13:56 +0100 (MET) Received: from ns.lami.univ-evry.fr (ns.lami.univ-evry.fr [195.221.162.248]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1PGDtv17503 for ; Mon, 25 Feb 2002 17:13:55 +0100 (MET) Received: from vargas.info.lami.univ-evry.fr (vargas.info.lami.univ-evry.fr [192.168.162.78]) by ns.lami.univ-evry.fr (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id RAA09429 for ; Mon, 25 Feb 2002 17:13:55 +0100 Received: from localhost.lami.univ-evry.fr ([127.0.0.1] helo=lami.univ-evry.fr) by vargas.info.lami.univ-evry.fr with esmtp (Exim 3.34 #1 (Debian)) id 16fNlD-0003CS-00 for ; Mon, 25 Feb 2002 17:13:55 +0100 Message-ID: <3C7A62C2.3D9C658A@lami.univ-evry.fr> Date: Mon, 25 Feb 2002 17:13:55 +0100 From: Stagiaire Bioinfo 2001-2002 X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.13ac8-high i686) X-Accept-Language: en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Compilation problem in OCAML 3.02 and 3.04 Content-Type: multipart/alternative; boundary="------------3E00CE33D53B113E5A7E8B46" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --------------3E00CE33D53B113E5A7E8B46 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am a student in Computer Science in the University of Evry (France), and I tried to compile a simple ocaml program : let rec fact = function 0 -> 1 | n-> n*(fact(n-1));; Unfortunately, the "ocamlopt 1fact.ml" command gave me the following answer : /tmp/camlasm29.s: Assembler messages: /tmp/camlasm29.s:2: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:3: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:5: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:6: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:9: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:10: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:14: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:15: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:16: Warning: rest of line ignored; first ignored character is `a' /tmp/camlasm29.s:20: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:21: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:28: Error: junk `act_fact_49' after expression /tmp/camlasm29.s:45: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:46: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:48: Error: junk `act_1' after expression /tmp/camlasm29.s:49: Error: junk `act' after expression /tmp/camlasm29.s:53: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:54: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:56: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:57: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:59: Warning: rest of line ignored; first ignored character is `1' /tmp/camlasm29.s:60: Warning: rest of line ignored; first ignored character is `1' Assembler error, input left in file /tmp/camlasm29.s I think this is due to the name of the program, 1fact.ml, which should not begin with a number, because when I renamed the file fact1.ml it worked perfectly. Is it normal? Thank you. Sarah Djebali. --------------3E00CE33D53B113E5A7E8B46 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I am a student in Computer Science in the University of Evry (France),
and I tried to compile a simple ocaml program :

let rec fact = function
0 -> 1 | n-> n*(fact(n-1));;
 

Unfortunately, the "ocamlopt 1fact.ml" command gave me the following answer :
/tmp/camlasm29.s: Assembler messages:
/tmp/camlasm29.s:2: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:3: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:5: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:6: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:9: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:10: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:14: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:15: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:16: Warning: rest of line ignored; first ignored character is `a'
/tmp/camlasm29.s:20: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:21: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:28: Error: junk `act_fact_49' after expression
/tmp/camlasm29.s:45: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:46: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:48: Error: junk `act_1' after expression
/tmp/camlasm29.s:49: Error: junk `act' after expression
/tmp/camlasm29.s:53: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:54: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:56: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:57: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:59: Warning: rest of line ignored; first ignored character is `1'
/tmp/camlasm29.s:60: Warning: rest of line ignored; first ignored character is `1'
Assembler error, input left in file /tmp/camlasm29.s
 

I think this is due to the name of the program, 1fact.ml, which should not begin with a number, because when I renamed the file fact1.ml it worked perfectly.
Is it normal?
 

Thank you.
Sarah Djebali. --------------3E00CE33D53B113E5A7E8B46-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners