From: julia.lawall@lip6.fr (Julia Lawall)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Compiling latest coccinelle with opensuse
Date: Tue, 13 Oct 2015 22:26:46 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.02.1510132225490.2189@localhost6.localdomain6> (raw)
In-Reply-To: <CAB=NE6XEE0zMpt7HBfEmxg1fDk4AqgfJ9F5oa_h0uMe4tCuzVQ@mail.gmail.com>
On Tue, 13 Oct 2015, Luis R. Rodriguez wrote:
> I'm trying to build coccinelle to use on opensuse for a cocci file
> with iteration support. I'm using the latest and greatest (inria git).
>
> After ./autogen and and then configuring with --enable-release:
>
> configure flags: --enable-release
> findlib: /usr/bin/ocamlfind (an actual version is strongly recommended)
> menhir: /usr/local/bin//menhir (should be an optional tool)
> menhirLib module: yes (for local package use --disable-menhirLib)
>
> ocaml scripting: yes (overridable with --enable-ocaml)
> python scripting: yes (overridable with --enable-python)
> pycaml module: local (for local package use --disable-pycaml)
>
> pcre regexes: local (overridable with --enable-pcre-syntax)
> pcre module: local (for local package use --disable-pcre)
> pcre library: yes (requires the dev version of libpcre)
>
> release config: yes (strongly recommended to be 'yes', overridable
> with --enable-release)
> optimized spatch: yes (overridable with --disable-opt)
>
> My build fails with:
>
> /usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra
> -I ../globals -I /usr/lib64/ocaml/menhirLib -c parser_cocci_menhir.ml
> File "parser_cocci_menhir.ml", line 1:
> Error: The files /usr/lib64/ocaml/obj.cmi
> and /usr/lib64/ocaml/menhirLib/menhirLib.cmi
> make inconsistent assumptions over interface Obj
Try make clean, or make distclean. If you had a build without ocaml, you
may have some old code lying around.
julia
> Makefile:90: recipe for target 'parser_cocci_menhir.cmx' failed
> make[6]: *** [parser_cocci_menhir.cmx] Error 2
> make[6]: *** Waiting for unfinished jobs....
> make[6]: Leaving directory '/sda3/home/mcgrof/devel/coccinelle/parsing_cocci'
> Makefile:61: recipe for target 'all.opt' failed
> make[5]: *** [all.opt] Error 2
> make[5]: Leaving directory '/sda3/home/mcgrof/devel/coccinelle/parsing_cocci'
> Makefile:202: recipe for target 'parsing_cocci.opt' failed
> make[4]: *** [parsing_cocci.opt] Error 2
> make[4]: Leaving directory '/sda3/home/mcgrof/devel/coccinelle'
> Makefile:196: recipe for target 'subdirs.opt' failed
> make[3]: *** [subdirs.opt] Error 1
> make[3]: Leaving directory '/sda3/home/mcgrof/devel/coccinelle'
> Makefile:167: recipe for target 'opt-compil' failed
> make[2]: *** [opt-compil] Error 2
> make[2]: Leaving directory '/sda3/home/mcgrof/devel/coccinelle'
> Makefile:147: recipe for target 'all-release' failed
> make[1]: *** [all-release] Error 2
> make[1]: Leaving directory '/sda3/home/mcgrof/devel/coccinelle'
> Makefile:125: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> If I try to disable ocaml scripting with:
>
> ./configure --enable-release --disable-ocaml
>
> My build still fails with:
>
> /usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra
> -I ../globals -I /usr/lib64/ocaml/menhirLib -c parser_cocci_menhir.ml
> File "parser_cocci_menhir.ml", line 1:
> Error: The files /usr/lib64/ocaml/obj.cmi
> and /usr/lib64/ocaml/menhirLib/menhirLib.cmi
> make inconsistent assumptions over interface Obj
> Makefile:90: recipe for target 'parser_cocci_menhir.cmx' failed
>
> If I disable good 'ol mehir as well with:
>
> ./configure --enable-release --disable-ocaml --disable-menhirLib
>
> it does not seem to disable menhir:
>
> Summary
>
> configure flags: --enable-release --disable-ocaml --disable-menhirLib
> --disable-menhirlib
> findlib: /usr/bin/ocamlfind (an actual version is strongly recommended)
> menhir: /usr/local/bin//menhir (should be an optional tool)
> menhirLib module: local (for local package use --disable-menhirLib)
>
> ocaml scripting: no (overridable with --enable-ocaml)
> python scripting: yes (overridable with --enable-python)
> pycaml module: local (for local package use --disable-pycaml)
>
> pcre regexes: local (overridable with --enable-pcre-syntax)
> pcre module: local (for local package use --disable-pcre)
> pcre library: yes (requires the dev version of libpcre)
>
> release config: yes (strongly recommended to be 'yes', overridable
> with --enable-release)
> optimized spatch: yes (overridable with --disable-opt)
>
> I checked configure.ac but can't see why disabling menhirLib won't work.
>
> If I nuke my local menhir, then:
>
> ./configure --enable-release --disable-ocaml
>
> Summary
>
> configure flags: --enable-release --disable-ocaml
> findlib: /usr/bin/ocamlfind (an actual version is strongly recommended)
> menhir: /home/mcgrof/devel/coccinelle/setup/fake-menhir.sh
> menhir (should be an optional tool)
> menhirLib module: yes (for local package use --disable-menhirLib)
>
> ocaml scripting: no (overridable with --enable-ocaml)
> python scripting: yes (overridable with --enable-python)
> pycaml module: local (for local package use --disable-pycaml)
>
> pcre regexes: local (overridable with --enable-pcre-syntax)
> pcre module: local (for local package use --disable-pcre)
> pcre library: yes (requires the dev version of libpcre)
>
> release config: yes (strongly recommended to be 'yes', overridable
> with --enable-release)
> optimized spatch: yes (overridable with --disable-opt)
>
> then I get:
>
> /home/mcgrof/devel/coccinelle/setup/fake-menhir.sh menhir --ocamlc
> "/usr/bin/ocamlc.opt" --ocamldep "/usr/bin/ocamldep" --table --base
> parser_cocci_menhir parser_cocci_menhir.mly
> error: the file parser_cocci_menhir.ml is needed, which requires
> preprocessing by menhir to obtain it from parser_cocci_menhir.mly.
> However, menhir is not enabled.
> error: the file parser_cocci_menhir.ml is needed, which requires
> preprocessing by menhir to obtain it from parser_cocci_menhir.mly.
> However, menhir is not enabled.
> make[3]: *** No rule to make target 'parser_cocci_menhir.ml', needed
> by 'depend'. Stop.
> make[3]: Leaving directory '/sda3/home/mcgrof/devel/coccinelle/parsing_cocci'
> Makefile:566: recipe for target 'depend' failed
>
> Luis
> _______________________________________________
> Cocci mailing list
> Cocci at systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
next prev parent reply other threads:[~2015-10-13 20:26 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 20:19 [Cocci] Compiling latest coccinelle with opensuse Luis R. Rodriguez
2015-10-13 20:26 ` Julia Lawall [this message]
2015-10-13 20:37 ` Luis R. Rodriguez
2015-10-13 20:44 ` Julia Lawall
2015-10-13 20:49 ` Luis R. Rodriguez
2015-10-13 20:58 ` Julia Lawall
2015-10-13 21:14 ` Luis R. Rodriguez
2015-10-13 21:18 ` Julia Lawall
2015-10-13 22:05 ` Luis R. Rodriguez
2015-10-14 5:26 ` Julia Lawall
2015-10-14 7:11 ` Sébastien Hinderer
2015-10-14 7:59 ` Julia Lawall
2015-10-14 8:53 ` Sébastien Hinderer
2015-10-14 20:59 ` Luis R. Rodriguez
2015-10-14 21:04 ` Julia Lawall
2015-10-14 21:23 ` [Cocci] Common.union_setError (was: Compiling latest coccinelle with opensuse) Luis R. Rodriguez
2015-10-14 21:32 ` Julia Lawall
2015-10-14 21:39 ` Luis R. Rodriguez
2015-10-14 21:47 ` Julia Lawall
2015-10-14 21:53 ` Sébastien Hinderer
2015-10-14 21:44 ` [Cocci] Compiling latest coccinelle with opensuse Sébastien Hinderer
2015-10-14 21:48 ` Julia Lawall
2015-10-14 21:58 ` Sébastien Hinderer
2015-10-14 10:54 ` [Cocci] Compiling latest Coccinelle with openSUSE SF Markus Elfring
2015-10-14 14:47 ` [Cocci] Compiling latest coccinelle with opensuse Sébastien Hinderer
2015-10-14 15:22 ` [Cocci] Compiling latest Coccinelle with openSUSE SF Markus Elfring
2015-10-14 10:32 ` [Cocci] Compiling Coccinelle with specific OCaml versions on openSUSE SF Markus Elfring
2015-10-14 14:44 ` Sébastien Hinderer
2015-10-14 14:49 ` Julia Lawall
2015-10-14 14:57 ` Sébastien Hinderer
2015-10-14 15:43 ` SF Markus Elfring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.02.1510132225490.2189@localhost6.localdomain6 \
--to=julia.lawall@lip6.fr \
--cc=cocci@systeme.lip6.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.