All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Compiling latest coccinelle with opensuse
@ 2015-10-13 20:19 Luis R. Rodriguez
  2015-10-13 20:26 ` Julia Lawall
  2015-10-14 10:32 ` [Cocci] Compiling Coccinelle with specific OCaml versions on openSUSE SF Markus Elfring
  0 siblings, 2 replies; 31+ messages in thread
From: Luis R. Rodriguez @ 2015-10-13 20:19 UTC (permalink / raw)
  To: cocci

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
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

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2015-10-14 21:58 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-13 20:19 [Cocci] Compiling latest coccinelle with opensuse Luis R. Rodriguez
2015-10-13 20:26 ` Julia Lawall
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

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.