Re: How to get the coccicheck error from patch

From: Laxman Dewangan
Date: Tue Jan 12 2016 - 12:01:06 EST

On Tuesday 12 January 2016 09:59 PM, Julia Lawall wrote:

On Tue, 12 Jan 2016, Laxman Dewangan wrote:


When I run the commands coccicheck for the file with of_table.cocci, it
reports error as:

spatch --sp-file ./scripts/coccinelle/misc/of_table.cocci
drivers/rtc/rtc-max77xxx.c --o tmp.cinit_defs_builtins:
Fatal error: exception Failure("unexpected struct/union type name")

spatch -D report --very-quiet --no-show-diff --cocci-file
./scripts/coccinelle/misc/of_table.cocci drivers/rtc/rtc-max77xxx.c

Fatal error: exception Failure("unexpected struct/union type name")
Hmm, actually, it might be your version of Coccinelle. What version are
you using? The latest is 1.0.4, which you can get from github.


I have following version for ubuntu.
spatch --version
spatch version 1.0.0-rc10 with Python support and with PCRE support
ldewangan@ldewanganubuntu-System-Product-Name:~$ sudo apt-get install coccinelle
Reading package lists... Done
Building dependency tree
Reading state information... Done
coccinelle is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 753 not upgraded.

The page is not accessible.

I got the coccinellery from git hub

git clone

Now how do I build for ubuntu and install it?

Per documentation, it is

But I did not see this.