* batteries compilation error
@ 2009-09-01 9:14 Florent Monnier
2009-09-02 14:50 ` [Caml-list] " Nicolas Pouillard
2009-09-05 7:42 ` David Rajchenbach-Teller
0 siblings, 2 replies; 9+ messages in thread
From: Florent Monnier @ 2009-09-01 9:14 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-01 9:14 batteries compilation error Florent Monnier
@ 2009-09-02 14:50 ` Nicolas Pouillard
2009-09-02 20:02 ` Florent Monnier
2009-09-05 7:42 ` David Rajchenbach-Teller
1 sibling, 1 reply; 9+ messages in thread
From: Nicolas Pouillard @ 2009-09-02 14:50 UTC (permalink / raw)
To: Florent Monnier; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-02 14:50 ` [Caml-list] " Nicolas Pouillard
@ 2009-09-02 20:02 ` Florent Monnier
2009-09-03 8:41 ` Nicolas Pouillard
0 siblings, 1 reply; 9+ messages in thread
From: Florent Monnier @ 2009-09-02 20:02 UTC (permalink / raw)
To: caml-list; +Cc: Nicolas Pouillard
> > 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)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-02 20:02 ` Florent Monnier
@ 2009-09-03 8:41 ` Nicolas Pouillard
2009-09-04 6:08 ` Florent Monnier
0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Pouillard @ 2009-09-03 8:41 UTC (permalink / raw)
To: Florent Monnier; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-03 8:41 ` Nicolas Pouillard
@ 2009-09-04 6:08 ` Florent Monnier
0 siblings, 0 replies; 9+ messages in thread
From: Florent Monnier @ 2009-09-04 6:08 UTC (permalink / raw)
To: caml-list; +Cc: Nicolas Pouillard
(...)
> > > 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-01 9:14 batteries compilation error Florent Monnier
2009-09-02 14:50 ` [Caml-list] " Nicolas Pouillard
@ 2009-09-05 7:42 ` David Rajchenbach-Teller
2009-09-05 17:34 ` Florent Monnier
1 sibling, 1 reply; 9+ messages in thread
From: David Rajchenbach-Teller @ 2009-09-05 7:42 UTC (permalink / raw)
To: Florent Monnier; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-05 7:42 ` David Rajchenbach-Teller
@ 2009-09-05 17:34 ` Florent Monnier
2009-09-06 10:24 ` Richard Jones
0 siblings, 1 reply; 9+ messages in thread
From: Florent Monnier @ 2009-09-05 17:34 UTC (permalink / raw)
To: caml-list
> > 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)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-05 17:34 ` Florent Monnier
@ 2009-09-06 10:24 ` Richard Jones
2009-09-06 19:33 ` Florent Monnier
0 siblings, 1 reply; 9+ messages in thread
From: Richard Jones @ 2009-09-06 10:24 UTC (permalink / raw)
To: Florent Monnier; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Caml-list] batteries compilation error
2009-09-06 10:24 ` Richard Jones
@ 2009-09-06 19:33 ` Florent Monnier
0 siblings, 0 replies; 9+ messages in thread
From: Florent Monnier @ 2009-09-06 19:33 UTC (permalink / raw)
To: caml-list
> > > 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).
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-09-06 19:34 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-01 9:14 batteries compilation error Florent Monnier
2009-09-02 14:50 ` [Caml-list] " Nicolas Pouillard
2009-09-02 20:02 ` Florent Monnier
2009-09-03 8:41 ` Nicolas Pouillard
2009-09-04 6:08 ` Florent Monnier
2009-09-05 7:42 ` David Rajchenbach-Teller
2009-09-05 17:34 ` Florent Monnier
2009-09-06 10:24 ` Richard Jones
2009-09-06 19:33 ` Florent Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox