Advanced search
Log In | New Account   
Home My Page Project Tree Code Snippets Project Openings Batteries : Revised Standard Library
Summary Activity Forums Tracker Lists Tasks Docs News Files

Bugs: Browse | Download .csv

[#515] Language extensions doen't work (ocamlfind

Date:
2010-01-29 15:56
Priority:
3
State:
Open
Submitted by:
Assigned to:
Nobody (None)
Summary:
Language extensions doen't work (ocamlfind

Detailed description
I try to build batteries snapshot (29 january 2010) on linux ubuntu 9.10 (karmic koala)

ocamlfind ocamldep -package
batteries,batteries.pa_openin.syntax,batteries.pa_where.syntax,batteries.pa_batteries.syntax,batteries.pa_comprehension.
syntax,batteries.pa_type_conv.syntax,batteries.pa_strings.syntax -syntax camlp4o -modules test.ml
ocamlfind: Package `batteries.pa_openin.syntax' not found

tsarev@tsarev:/storage/project/dsd2$ cat OMakefile
USE_OCAMLFIND = true

BYTE_ENABLED = true
NATIVE_ENABLED = false

OCAMLDEPFLAGS += -syntax camlp4o
OCAMLFLAGS += -syntax camlp4o   
OCAMLCFLAGS += -g               

OCAMLPACKS[] +=
   batteries   
   batteries.pa_openin.syntax
   batteries.pa_where.syntax 
   batteries.pa_batteries.syntax
   batteries.pa_comprehension.syntax
   batteries.pa_type_conv.syntax    
   batteries.pa_strings.syntax      


OCamlProgram(test, test)
.DEFAULT: test.run 

tsarev@tsarev:/storage/project/dsd2$ cat test.ml
let r = Str.regexp "abc";;
let result = BatStr.Str.search r "   abc   abc   123   abc   ";;
let () =
  let f (a,b,c) =
    Printf.printf "a=%d\n" a;
    Printf.printf "b=%d\n" b;
    Printf.printf "c=%s\n" c;
  in
    BatPervasives.foreach result f;;

tsarev@tsarev:/storage/project/dsd2$ omake test
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.01 sec)
- scan . scan-ocaml-test.ml
+ ocamlfind ocamldep -package
batteries,batteries.pa_openin.syntax,batteries.pa_where.syntax,batteries.pa_batteries.syntax,batteries.pa_comprehension.
syntax,batteries.pa_type_conv.syntax,batteries.pa_strings.syntax -syntax camlp4o -modules test.ml
     | Shell.ocamldep-postproc()
ocamlfind: Package `batteries.pa_openin.syntax' not found
*** omake: 12/17 targets are up to date
*** omake: failed (0.05 sec, 1/1 scans, 0/0 rules, 0/38 digests)
*** omake: targets were not rebuilt because of errors:
   <scanner scan-ocaml-test.ml>
      depends on: test.ml

tsarev@tsarev:/storage/project/dsd2$ uname -a
Linux tsarev 2.6.31-18-generic-pae #55-Ubuntu SMP Fri Jan 8 16:13:23 UTC 2010 i686 GNU/Linux
tsarev@tsarev:/storage/project/dsd2$ ocamlc -v
The Objective Caml compiler, version 3.11.1
Standard library directory: /usr/lib/ocaml
tsarev@tsarev:/storage/project/dsd2$ cat /etc/issue
Ubuntu 9.10 \n \l

Followup

Message
Date: 2010-01-29 20:28
Sender: Edgar Friendly

I don't understand camlp4 or the syntax extensions, so don't
feel too bad.  Keep finding and fixing bugs.  If your english
was better, I'd ask you to help with documentation, but we'll
get that done soon.
Date: 2010-01-29 20:02
Sender: Oleg Tsarev

I want help you, but i very bad understand campl4, syntax extensions
in batteries, and build system of ocaml.
If you can talk me what i can do for fix - i help you.
Date: 2010-01-29 19:34
Sender: Edgar Friendly

Yes, we need to do a bunch of work to the documentation, including
better build instructions.  I'll close this bug when we've done
that work.
Date: 2010-01-29 17:43
Sender: Oleg Tsarev

Please, fix your documentation (article about omake's usage)
Date: 2010-01-29 17:38
Sender: Edgar Friendly

Only pa_strings and pa_comprehension are included with batteries
anymore.  pa_batteries is to me a bad idea, pa_openin will be
obseleted by 3.12, and pa_type_conv is no longer used by
batteries

Related Tasks:

No Related Tasks

Attached Files:

No Files Currently Attached

Changes:

No Changes Have Been Made to This Item


Powered By GForge Collaborative Development Environment