Skip to contentSkip to conversation

coccinelle compilation issue

DISCUSSION Julia Lawall 2 participants 3 messages Oct 26, 2022 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

If you are not able to compile the code from github, you can install opam (the OCaml package manager) and then get Coccinelle from there.

Information about installing opam is available here:

https://opam.ocaml.org/doc/Install.html

Once you have done that, I guess you can run

opam install coccinelle

julia

#1 lore raw
Quoted 10 lines · Julia Lawall

If you are not able to compile the code from github, you can install opam (the OCaml package manager) and then get Coccinelle from there.

Information about installing opam is available here:

https://opam.ocaml.org/doc/Install.html

Once you have done that, I guess you can run

opam install coccinelle

Coccinelle version 1.1.1 is installed successfully, but still not able to find spatch. Geeting following error now:

	drv@debian:~/git/kernels/staging$ opam install coccinelle
	[NOTE] Package coccinelle is already installed (current version is 1.1.1).
	drv@debian:~/git/kernels/staging$ make coccicheck MODE=report
	spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/
	make: *** [Makefile:2074: coccicheck] Error 1

Is there something I am missing while the install/configuration?

Quoted 3 lines

julia

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): Y1imvBLdIyTB1hQs@debian-BULLSEYE-live-builder-AMD64

#4 lore raw
Quoted 5 lines · Deepak Varma
Quoted 1 line · Julia Lawall

Try typing spatchcock on the command line. Maybe you have a path problem. Did you do the unit env thing that open suggests?

No, I have not done uint env you mentioned. I will look for that now. spatchcock is not recognised as a known command.

Hi Julia,
I tried doing "source env,sh" inside the coccinelle repo but that did not help. It mostly looks like an environment / configuration issue.

I also tried a fresh rebuild by following the install.txt file instructions, but still receiving the same error.

Can you please suggest the next steps? Is there an IRC channel for Coccinelle that I join and seek help from the group?

./drv

Quoted 8 lines
Quoted 8 lines

Sent from my iPhone

Quoted 3 lines · Deepak R Varma

Coccinelle