coccinelle-1.0.0-rc20 compile issue
Hi Julia,
when trying to compile coccinelle rc20 on RHEL6 I ran into the following issue.
./configure
make all
[...]/usr/bin/ocamlc.opt -g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.mli/usr/bin/ocamlc.opt -g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.ml
File "type_annoter_c.ml", line 204, characters 4-23:
Error: Unbound value StringMap.singleton
make[5]: *** [type_annoter_c.cmo] Error 2
This doesn't happen with rc19.
When compiling on Fedora 20 there's no error but when I run make install
[...]
cp ocaml/coccilib.cmi ocaml/coccilib/coccilib.cmi
cp: cannot create regular file ‘ocaml/coccilib/coccilib.cmi’: No such file or directory
make: *** [ocaml/coccilib/coccilib.cmi] Error 1
The Makefile is probably just missing a 'mkdir ocaml/coccilib'.
Stefan
Quoted 17 lines · Stefan Assmann
Hi Julia,
when trying to compile coccinelle rc20 on RHEL6 I ran into the following issue.
./configure
make all
[...]/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.mli/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.ml
File "type_annoter_c.ml", line 204, characters 4-23:
Error: Unbound value StringMap.singleton
make[5]: *** [type_annoter_c.cmo] Error 2
This doesn't happen with rc19.
What is the verion of OCaml? Indeed, I believe that the use of maps is new.
Quoted 9 lines
When compiling on Fedora 20 there's no error but when I run make install
[...]
cp ocaml/coccilib.cmi ocaml/coccilib/coccilib.cmi
cp: cannot create regular file ‘ocaml/coccilib/coccilib.cmi’: No such file or directory
make: *** [ocaml/coccilib/coccilib.cmi] Error 1The
Makefileis probably just missing a 'mkdir ocaml/coccilib'.
Did you have any error on the configure? I have some version of Fedora, so i may be able to test this later today.
julia
Quoted 22 lines · Julia Lawall
Quoted 17 lines · Stefan Assmann
Hi Julia,
when trying to compile coccinelle rc20 on RHEL6 I ran into the following issue.
./configure
make all
[...]/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.mli/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.ml
File "type_annoter_c.ml", line 204, characters 4-23:
Error: Unbound value StringMap.singleton
make[5]: *** [type_annoter_c.cmo] Error 2
This doesn't happen with rc19.
Quoted 2 lines
What is the verion of OCaml? Indeed, I believe that the use of maps is new.
# rpm -qa |grep ocaml ocaml-ocamldoc-3.11.2-2.el6.x86_64 ocaml-3.11.2-2.el6.x86_64 ocaml-findlib-1.2.5-5.el6.x86_64 ocaml-camlp4-3.11.2-2.el6.x86_64 ocaml-camlp4-devel-3.11.2-2.el6.x86_64 ocaml-runtime-3.11.2-2.el6.x86_64
Quoted 9 lines
Quoted 9 lines
When compiling on Fedora 20 there's no error but when I run make install
[...]
cp ocaml/coccilib.cmi ocaml/coccilib/coccilib.cmi
cp: cannot create regular file ‘ocaml/coccilib/coccilib.cmi’: No such file or directory
make: *** [ocaml/coccilib/coccilib.cmi] Error 1
Quoted 4 lines
Quoted 1 line
The
Makefileis probably just missing a 'mkdir ocaml/coccilib'.Did you have any error on the configure? I have some version of Fedora, so i may be able to test this later today.
I didn't spot any errors. Here's a paste.
http://fpaste.org/92207/39686580/
Thanks!
Stefan
Quoted 43 lines · Stefan Assmann
Quoted 22 lines · Julia Lawall
Quoted 17 lines · Stefan Assmann
Hi Julia,
when trying to compile coccinelle rc20 on RHEL6 I ran into the following issue.
./configure
make all
[...]/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.mli/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.ml
File "type_annoter_c.ml", line 204, characters 4-23:
Error: Unbound value StringMap.singleton
make[5]: *** [type_annoter_c.cmo] Error 2
This doesn't happen with rc19.Quoted 2 lines
What is the verion of OCaml? Indeed, I believe that the use of maps is new.
# rpm -qa |grep ocaml ocaml-ocamldoc-3.11.2-2.el6.x86_64 ocaml-3.11.2-2.el6.x86_64 ocaml-findlib-1.2.5-5.el6.x86_64 ocaml-camlp4-3.11.2-2.el6.x86_64 ocaml-camlp4-devel-3.11.2-2.el6.x86_64 ocaml-runtime-3.11.2-2.el6.x86_64Quoted 9 lines
Quoted 9 lines
When compiling on Fedora 20 there's no error but when I run make install
[...]
cp ocaml/coccilib.cmi ocaml/coccilib/coccilib.cmi
cp: cannot create regular file ‘ocaml/coccilib/coccilib.cmi’: No such file or directory
make: *** [ocaml/coccilib/coccilib.cmi] Error 1
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
The
Makefileis probably just missing a 'mkdir ocaml/coccilib'.Did you have any error on the configure? I have some version of Fedora, so i may be able to test this later today.
I didn't spot any errors. Here's a paste.
http://fpaste.org/92207/39686580/
Did you get it from github? I think there is a problem that github doesn't preserve empty directories. It exists in the tgz available on out web page:
http://coccinelle.lip6.fr/download.php
I think that the problem was discussed, so I'm a bit surprised that it was not fixed. I will look into it.
julia
Quoted 52 lines · Julia Lawall
Quoted 48 lines · Stefan Assmann
Quoted 22 lines · Julia Lawall
Quoted 17 lines · Stefan Assmann
Hi Julia,
when trying to compile coccinelle rc20 on RHEL6 I ran into the following issue.
./configure
make all
[...]/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.mli/usr/bin/ocamlc.opt-g -I ../commons -I ../commons/ocamlextra -I ../commons/ocollection -I ../globals -I ../parsing_cocci -c type_annoter_c.ml
File "type_annoter_c.ml", line 204, characters 4-23:
Error: Unbound value StringMap.singleton
make[5]: *** [type_annoter_c.cmo] Error 2
This doesn't happen with rc19.Quoted 2 lines
What is the verion of OCaml? Indeed, I believe that the use of maps is new.
# rpm -qa |grep ocaml ocaml-ocamldoc-3.11.2-2.el6.x86_64 ocaml-3.11.2-2.el6.x86_64 ocaml-findlib-1.2.5-5.el6.x86_64 ocaml-camlp4-3.11.2-2.el6.x86_64 ocaml-camlp4-devel-3.11.2-2.el6.x86_64 ocaml-runtime-3.11.2-2.el6.x86_64Quoted 13 lines
Quoted 10 lines
When compiling on Fedora 20 there's no error but when I run make install
[...]
cp ocaml/coccilib.cmi ocaml/coccilib/coccilib.cmi
cp: cannot create regular file ‘ocaml/coccilib/coccilib.cmi’: No such file or directory
make: *** [ocaml/coccilib/coccilib.cmi] Error 1The
Makefileis probably just missing a 'mkdir ocaml/coccilib'.Did you have any error on the configure? I have some version of Fedora, so i may be able to test this later today.
Quoted 6 lines
Quoted 2 lines
I didn't spot any errors. Here's a paste.
http://fpaste.org/92207/39686580/Did you get it from github? I think there is a problem that github doesn't preserve empty directories. It exists in the tgz available on out web page:
Yes, I'm using github.
Quoted 5 lines
http://coccinelle.lip6.fr/download.php
I think that the problem was discussed, so I'm a bit surprised that it was not fixed. I will look into it.
Great, thanks a lot.
Stefan
Quoted 5 lines · Julia Lawall
Quoted 2 lines
I didn't spot any errors. Here's a paste.
http://fpaste.org/92207/39686580/Did you get it from github? I think there is a problem that github doesn't preserve empty directories.
git in general doesn't, I believe - you should put a dummy file into the directory or so.
johannes
Quoted 10 lines · Johannes Berg
Quoted 5 lines · Julia Lawall
Quoted 2 lines
I didn't spot any errors. Here's a paste.
http://fpaste.org/92207/39686580/Did you get it from github? I think there is a problem that github doesn't preserve empty directories.
git in general doesn't, I believe - you should put a dummy file into the directory or so.
Luis already proposed to change the makefile to make the directory, if needed. I have made that change and sent Stefan a pointer to a patch.
julia