Re: [Caml-list] batteries compilation error

2009-09-06 Thread Florent Monnier
> > > Strange. Are you using our Makefile?
> >
> > Yes I do,
> > maybe you have noticed on the other thread that Richard has problems to
> > compile batteries on Fedora too (and therefore hasn't packaged it yet)
>
> The latest version, released 3 days ago, does now compile.
>
> You can try this specfile:
>
>   http://www.annexia.org/tmp/ocaml/ocaml-batteries.spec
>
> There are still packaging problems, and the tests don't run.

The built errors I have reported in this thread are exactly the same with the 
last version of batteries (20090903).


___
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


Re: [Caml-list] batteries compilation error

2009-09-06 Thread Richard Jones
On Sat, Sep 05, 2009 at 07:34:20PM +0200, Florent Monnier wrote:
> > > Hi,
> > > Trying to compile batteries (version 20090405 on ocaml 3.11.1),
> > > I get this error:
> >
> > Strange. Are you using our Makefile?
> 
> Yes I do,
> maybe you have noticed on the other thread that Richard has problems to 
> compile batteries on Fedora too (and therefore hasn't packaged it yet)

The latest version, released 3 days ago, does now compile.

You can try this specfile:

  http://www.annexia.org/tmp/ocaml/ocaml-batteries.spec

There are still packaging problems, and the tests don't run.

Rich.

-- 
Richard Jones
Red Hat

___
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


Re: [Caml-list] batteries compilation error

2009-09-05 Thread Florent Monnier
> > Hi,
> > Trying to compile batteries (version 20090405 on ocaml 3.11.1),
> > I get this error:
>
> Strange. Are you using our Makefile?

Yes I do,
maybe you have noticed on the other thread that Richard has problems to 
compile batteries on Fedora too (and therefore hasn't packaged it yet)


___
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


Re: [Caml-list] batteries compilation error

2009-09-05 Thread David Rajchenbach-Teller
On Tue, 2009-09-01 at 11:14 +0200, Florent Monnier wrote:
> Hi,
> Trying to compile batteries (version 20090405 on ocaml 3.11.1),
> I get this error:

Strange. Are you using our Makefile?

Cheers,
 David

___
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


Re: [Caml-list] batteries compilation error

2009-09-03 Thread Florent Monnier
(...)
> > > I don't see any "-I +camlp4" can you add it?
> >
> > if I run the command like this on the command line it passes right
> > but when I run again the make command it doesn't continue because
> > ocamlbuild complains about sanity violation
> > Anyway as it is for packaging purpose I will need to patch the Makefile,
> > the problem is that I don't see where to add this statement in the
> > Makefile:
> > http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=b
> >lob;f=Makefile.in;hb=HEAD
> >
> > (also I've search in the debian package, and it seems they haven't patch
> > the Makefile at all)
>
> If you are using ocamlbuild, then a -tag use_camlp4 could do the job.


I've added this tag to the OBFLAGS of the Makefile as below,
but there is still an error:


$ make all opt top syntax OBFLAGS="-tag use_camlp4"
ocamlbuild -tag use_camlp4 src/main/threads/batteries.cma 
src/main/threads/run.byte src/main/nothreads/batteries.cma 
src/main/nothreads/run.byte src/syntax/pa_openin/pa_openin.cmo 
src/syntax/pa_openin/pa_openin_r.cmo src/syntax/pa_where/pa_where.cmo 
src/syntax/pa_batteries/pa_batteries.cmo src/syntax/pa_strings/pa_strings.cma 
src/syntax/pa_comprehension/pa_comprehension.cmo 
src/batteries_toolchain/toplevel.top 
src/batteries_toolchain/batteries_print.cmo 
src/batteries_toolchain/batteries_help.cmo
Finished, 1 target (0 cached) in 00:00:00.
+ ocamlfind ocamlmktop -I +camlp4 camlp4lib.cma 
src/batteries_toolchain/toplevel/cbtop.cmo -o 
src/batteries_toolchain/toplevel.top
File "_none_", line 1, characters 0-1:
Error: Error while linking /usr/lib/ocaml/camlp4/camlp4lib.cma(Camlp4):
Reference to undefined global `Dynlink'
Command exited with code 2.
make: *** [all] Error 10



___
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


Re: [Caml-list] batteries compilation error

2009-09-03 Thread Nicolas Pouillard
Excerpts from Florent Monnier's message of Wed Sep 02 22:02:11 +0200 2009:
> > > Trying to compile batteries (version 20090405 on ocaml 3.11.1),
> > > I get this error:
> > >
> > > + ocamlfind ocamlc -c -g -I src/syntax/pa_strings -I src -I src/core -I
> > > src/main -I src/libs -I src/core/extlib_threads -I src/core/extlib -I
> > > src/core/baselib -I src/core/baselib_threads -I src/libs/common -I
> > > src/libs/camlzip -I src/libs/sexplib -I src/libs/findlib -I
> > > src/libs/compilers -I src/libs/ocamlnet -I build/optcomp -o
> > > src/syntax/pa_strings/pa_estring.cmi src/syntax/pa_strings/pa_estring.mli
> > > File "src/syntax/pa_strings/pa_estring.mli", line 12, characters 0-19:
> > > Error: Unbound module Camlp4.PreCast
> > >
> > > this line 12 is only:
> > > open Camlp4.PreCast
> > >
> > >
> > > Does someone have an idea of what could cause this error ?
> >
> > I don't see any "-I +camlp4" can you add it?
> 
> if I run the command like this on the command line it passes right
> but when I run again the make command it doesn't continue because
> ocamlbuild complains about sanity violation
> Anyway as it is for packaging purpose I will need to patch the Makefile,
> the problem is that I don't see where to add this statement in the Makefile:
> http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=blob;f=Makefile.in;hb=HEAD
> 
> (also I've search in the debian package, and it seems they haven't patch the 
> Makefile at all)

If you are using ocamlbuild, then a -tag use_camlp4 could do the job.

-- 
Nicolas Pouillard
http://nicolaspouillard.fr

___
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


Re: [Caml-list] batteries compilation error

2009-09-02 Thread Florent Monnier
> > Trying to compile batteries (version 20090405 on ocaml 3.11.1),
> > I get this error:
> >
> > + ocamlfind ocamlc -c -g -I src/syntax/pa_strings -I src -I src/core -I
> > src/main -I src/libs -I src/core/extlib_threads -I src/core/extlib -I
> > src/core/baselib -I src/core/baselib_threads -I src/libs/common -I
> > src/libs/camlzip -I src/libs/sexplib -I src/libs/findlib -I
> > src/libs/compilers -I src/libs/ocamlnet -I build/optcomp -o
> > src/syntax/pa_strings/pa_estring.cmi src/syntax/pa_strings/pa_estring.mli
> > File "src/syntax/pa_strings/pa_estring.mli", line 12, characters 0-19:
> > Error: Unbound module Camlp4.PreCast
> >
> > this line 12 is only:
> > open Camlp4.PreCast
> >
> >
> > Does someone have an idea of what could cause this error ?
>
> I don't see any "-I +camlp4" can you add it?

if I run the command like this on the command line it passes right
but when I run again the make command it doesn't continue because
ocamlbuild complains about sanity violation
Anyway as it is for packaging purpose I will need to patch the Makefile,
the problem is that I don't see where to add this statement in the Makefile:
http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=blob;f=Makefile.in;hb=HEAD

(also I've search in the debian package, and it seems they haven't patch the 
Makefile at all)

___
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


Re: [Caml-list] batteries compilation error

2009-09-02 Thread Nicolas Pouillard
Excerpts from Florent Monnier's message of Tue Sep 01 11:14:49 +0200 2009:
> Hi,
Hi,

> Trying to compile batteries (version 20090405 on ocaml 3.11.1),
> I get this error:
> 
> + ocamlfind ocamlc -c -g -I src/syntax/pa_strings -I src -I src/core -I 
> src/main -I src/libs -I src/core/extlib_threads -I src/core/extlib -I 
> src/core/baselib -I src/core/baselib_threads -I src/libs/common -I 
> src/libs/camlzip -I src/libs/sexplib -I src/libs/findlib -I 
> src/libs/compilers -I src/libs/ocamlnet -I build/optcomp -o 
> src/syntax/pa_strings/pa_estring.cmi src/syntax/pa_strings/pa_estring.mli
> File "src/syntax/pa_strings/pa_estring.mli", line 12, characters 0-19:
> Error: Unbound module Camlp4.PreCast
> 
> this line 12 is only:
> open Camlp4.PreCast
> 
> 
> Does someone have an idea of what could cause this error ?

I don't see any "-I +camlp4" can you add it?

-- 
Nicolas Pouillard
http://nicolaspouillard.fr

___
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


[Caml-list] batteries compilation error

2009-09-01 Thread Florent Monnier
Hi,
Trying to compile batteries (version 20090405 on ocaml 3.11.1),
I get this error:

+ ocamlfind ocamlc -c -g -I src/syntax/pa_strings -I src -I src/core -I 
src/main -I src/libs -I src/core/extlib_threads -I src/core/extlib -I 
src/core/baselib -I src/core/baselib_threads -I src/libs/common -I 
src/libs/camlzip -I src/libs/sexplib -I src/libs/findlib -I 
src/libs/compilers -I src/libs/ocamlnet -I build/optcomp -o 
src/syntax/pa_strings/pa_estring.cmi src/syntax/pa_strings/pa_estring.mli
File "src/syntax/pa_strings/pa_estring.mli", line 12, characters 0-19:
Error: Unbound module Camlp4.PreCast

this line 12 is only:
open Camlp4.PreCast


Does someone have an idea of what could cause this error ?

-- 
Thanks in advance
Florent

___
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