How to get the coccicheck error from patch
Nicolas,
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: /usr/share/coccinelle/standard.h Fatal error: exception Failure("unexpected struct/union type name")
ldewangan@ldewanganubuntu-System-Product-Name:~/upstream/linux-next/linux-next$ 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")
Is there any issue in these commands? Other commands work fine.
Before running commands, I did make
make coccicheck MODE=report
Quoted 4 lines · Julia Lawall
You could also write to the mailing list. Someone else might know. Actually, I never use make coccicheck...
julia
Quoted 10 lines · Laxman Dewangan
Nicolas,
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.coccidrivers/rtc/rtc-max77xxx.c--o tmp.cinit_defs_builtins:/usr/share/coccinelle/standard.h
Fatal error: exceptionFailure("unexpected struct/union type name")
Quoted 5 lines
ldewangan@ldewanganubuntu-System-Product-Name:~/upstream/linux-next/linux-next$ spatch -D report --very-quiet --no-show-diff --cocci-file
./scripts/coccinelle/misc/of_table.coccidrivers/rtc/rtc-max77xxx.cFatal 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.
julia
Quoted 16 lines
Is there any issue in these commands? Other commands work fine.
Before running commands, I did make
make coccicheck MODE=reportQuoted 4 lines · Julia Lawall
You could also write to the mailing list. Someone else might know. Actually, I never use make coccicheck...
julia
Quoted 17 lines · Julia Lawall
Quoted 14 lines · Laxman Dewangan
Nicolas,
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.coccidrivers/rtc/rtc-max77xxx.c--o tmp.cinit_defs_builtins:/usr/share/coccinelle/standard.h
Fatal error: exceptionFailure("unexpected struct/union type name")ldewangan@ldewanganubuntu-System-Product-Name:~/upstream/linux-next/linux-next$ spatch -D report --very-quiet --no-show-diff --cocci-file
./scripts/coccinelle/misc/of_table.coccidrivers/rtc/rtc-max77xxx.c
Quoted 6 lines
Quoted 1 line
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.
julia
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. ldewangan@ldewanganubuntu-System-Product-Name:~$
The page is not accessible.
http://cocci.ekstranet.diku.dk/wiki/doku.php
I got the coccinellery from git hub
git clone https://github.com/coccinelle/coccinellery.git
Now how do I build for ubuntu and install it?
Per documentation, it is
./cofigure
make
But I did not see this.
Quoted 23 lines · Laxman Dewangan
Quoted 21 lines · Julia Lawall
Quoted 10 lines · Laxman Dewangan
Nicolas,
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.coccidrivers/rtc/rtc-max77xxx.c--o tmp.cinit_defs_builtins:/usr/share/coccinelle/standard.h
Fatal error: exceptionFailure("unexpected struct/union type name")Quoted 5 lines
ldewangan@ldewanganubuntu-System-Product-Name:~/upstream/linux-next/linux-next$ spatch -D report --very-quiet --no-show-diff --cocci-file
./scripts/coccinelle/misc/of_table.coccidrivers/rtc/rtc-max77xxx.cFatal 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.
Quoted 6 lines
Quoted 2 lines
julia
I have following version for ubuntu.
spatch --version
spatch version 1.0.0-rc10 with Python support and with PCRE support
This is very, very old. Try installing the version from github (1.0.4).
Another possibility is: https://launchpad.net/ubuntu/+source/coccinelle
julia
Quoted 33 lines
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. ldewangan@ldewanganubuntu-System-Product-Name:~$The page is not accessible.
http://cocci.ekstranet.diku.dk/wiki/doku.phpI got the coccinellery from git hub
git clone https://github.com/coccinelle/coccinellery.git
Now how do I build for ubuntu and install it?
Per documentation, it is
./cofigure
makeBut I did not see this.