Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OcamlMakefile not working for me...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Leary <leary@n...>
Subject: [Caml-list] OcamlMakefile not working for me...
There must be something simple I'm not doing...

"cgi.cmxa" and the LIBDIRS should appear on the "ocamlopt..." line (see below)

and if I try from the commandline, I get lots of other errors:

[0 leary@jean pleac]$ ocamlopt -c cgi.cmxa -I /usr/local/lib/ocaml/site-lib/netstring 19.1.ml
/tmp/camlasm1.s: Assembler messages:
/tmp/camlasm1.s:2: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:3: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:5: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:6: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:9: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:10: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:14: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:15: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:20: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:21: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:27: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:28: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:31: Error: ignoring junk `$2e1_2' after expression
/tmp/camlasm1.s:35: Error: ignoring junk `$2e1' after expression
/tmp/camlasm1.s:37: Error: ignoring junk `$2e1_1' after expression
/tmp/camlasm1.s:44: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:45: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:47: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:48: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:50: Error: Rest of line ignored. First ignored character is `1'.
/tmp/camlasm1.s:51: Error: Rest of line ignored. First ignored character is `1'.
Assembler error, input left in file /tmp/camlasm1.s

Bad build of ocaml?


# begin Makefile
# Set these variables to the names of the sources to be processed and
# the result variable. Order matters during linkage!

OCAMLMAKEFILE = ./OcamlMakefile

SOURCES = 19.1.ml

RESULT = 19.1

LIBS = cgi

LIBDIRS = /usr/local/lib/ocaml/site-lib/netstring

all: native-code

-include $(OCAMLMAKEFILE)

# end Makefile

[0 leary@jean pleac]$ make
make[1]: Entering directory `/home/leary/dev/pleac'
making ._d/19.1.d from 19.1.ml
make[1]: Leaving directory `/home/leary/dev/pleac'
make[1]: Entering directory `/home/leary/dev/pleac'
ocamlopt -c       19.1.ml
File "19.1.ml", line 25, characters 0-8:
Unbound module Cgi
make[1]: *** [19.1.cmi] Error 2
make[1]: Leaving directory `/home/leary/dev/pleac'
make: *** [native-code] Error 2

-- 
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr