All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] coccicheck run error
@ 2017-03-15 10:35 Tobin C. Harding
  2017-03-15 11:01 ` Julia Lawall
  0 siblings, 1 reply; 13+ messages in thread
From: Tobin C. Harding @ 2017-03-15 10:35 UTC (permalink / raw)
  To: cocci

I am running coccinelle using

$ make coccicheck MODE=report DEBUG_FILE=cocci-err.log M=drivers/staging/ks7010
Please check for false positives in the output before submitting a patch.
When using "patch" mode, carefully review the patch before submitting it.

coccicheck failed

$ cat cocci-err.log
3 files match
Fatal error: exception Sys_error("alloc_cast: No such file or directory")

Using V=1 gives no additional indication of the error.

Any suggestions on how to proceed please?

thanks,
Tobin.

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

* [Cocci] coccicheck run error
  2017-03-15 10:35 [Cocci] coccicheck run error Tobin C. Harding
@ 2017-03-15 11:01 ` Julia Lawall
  2017-03-15 22:10   ` Tobin C. Harding
  0 siblings, 1 reply; 13+ messages in thread
From: Julia Lawall @ 2017-03-15 11:01 UTC (permalink / raw)
  To: cocci



On Wed, 15 Mar 2017, Tobin C. Harding wrote:

> I am running coccinelle using
>
> $ make coccicheck MODE=report DEBUG_FILE=cocci-err.log M=drivers/staging/ks7010
> Please check for false positives in the output before submitting a patch.
> When using "patch" mode, carefully review the patch before submitting it.
>
> coccicheck failed
>
> $ cat cocci-err.log
> 3 files match
> Fatal error: exception Sys_error("alloc_cast: No such file or directory")
>
> Using V=1 gives no additional indication of the error.
>
> Any suggestions on how to proceed please?

What version of Coccinelle do you have?  If you are not using the github
version, perhaps you could try with that.

julia


>
> thanks,
> Tobin.
> _______________________________________________
> Cocci mailing list
> Cocci at systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>

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

* [Cocci] coccicheck run error
  2017-03-15 11:01 ` Julia Lawall
@ 2017-03-15 22:10   ` Tobin C. Harding
  2017-03-15 22:14     ` Tobin C. Harding
  0 siblings, 1 reply; 13+ messages in thread
From: Tobin C. Harding @ 2017-03-15 22:10 UTC (permalink / raw)
  To: cocci

On Wed, Mar 15, 2017 at 12:01:24PM +0100, Julia Lawall wrote:
> 
> 
> On Wed, 15 Mar 2017, Tobin C. Harding wrote:
> 
> > I am running coccinelle using
> >
> > $ make coccicheck MODE=report DEBUG_FILE=cocci-err.log M=drivers/staging/ks7010
> > Please check for false positives in the output before submitting a patch.
> > When using "patch" mode, carefully review the patch before submitting it.
> >
> > coccicheck failed
> >
> > $ cat cocci-err.log
> > 3 files match
> > Fatal error: exception Sys_error("alloc_cast: No such file or directory")
> >
> > Using V=1 gives no additional indication of the error.
> >
> > Any suggestions on how to proceed please?
> 
> What version of Coccinelle do you have?  If you are not using the github
> version, perhaps you could try with that.

Am having trouble building from the github repository. I tried 

$ ./autogen
$ ./configure
$ make -j9 >/dev/null
File "pyml-current/pyml_compat.ml", line 11, characters 20-38:
Warning 3: deprecated: Lazy.lazy_from_fun
Use Lazy.from_fun instead.
File "unparse_c.ml", line 2367, characters 6-18:
Warning 3: deprecated: String.unsafe_set
make[3]: *** No rule to make target '/usr/lib/ocaml/parmap/parmap.cmxa', needed by 'spatch.opt'.  Stop.
make[2]: *** [opt-compil] Error 2
make[1]: *** [all-release] Error 2
make: *** [all] Error 2

I tried make all-dev also with the same result.

thanks for you patience,
Tobin.

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

* [Cocci] coccicheck run error
  2017-03-15 22:10   ` Tobin C. Harding
@ 2017-03-15 22:14     ` Tobin C. Harding
  2017-03-16  5:52       ` Julia Lawall
  2017-03-16  6:12       ` Peter Senna Tschudin
  0 siblings, 2 replies; 13+ messages in thread
From: Tobin C. Harding @ 2017-03-15 22:14 UTC (permalink / raw)
  To: cocci

On Thu, Mar 16, 2017 at 09:10:54AM +1100, Tobin C. Harding wrote:
> On Wed, Mar 15, 2017 at 12:01:24PM +0100, Julia Lawall wrote:
> > 
> > 
> > On Wed, 15 Mar 2017, Tobin C. Harding wrote:
> > 
> > > I am running coccinelle using
> > >
> > > $ make coccicheck MODE=report DEBUG_FILE=cocci-err.log M=drivers/staging/ks7010
> > > Please check for false positives in the output before submitting a patch.
> > > When using "patch" mode, carefully review the patch before submitting it.
> > >
> > > coccicheck failed
> > >
> > > $ cat cocci-err.log
> > > 3 files match
> > > Fatal error: exception Sys_error("alloc_cast: No such file or directory")
> > >
> > > Using V=1 gives no additional indication of the error.
> > >
> > > Any suggestions on how to proceed please?
> > 
> > What version of Coccinelle do you have?  If you are not using the github
> > version, perhaps you could try with that.
> 
> Am having trouble building from the github repository. I tried 
> 
> $ ./autogen
> $ ./configure
> $ make -j9 >/dev/null
> File "pyml-current/pyml_compat.ml", line 11, characters 20-38:
> Warning 3: deprecated: Lazy.lazy_from_fun
> Use Lazy.from_fun instead.
> File "unparse_c.ml", line 2367, characters 6-18:
> Warning 3: deprecated: String.unsafe_set
> make[3]: *** No rule to make target '/usr/lib/ocaml/parmap/parmap.cmxa', needed by 'spatch.opt'.  Stop.
> make[2]: *** [opt-compil] Error 2
> make[1]: *** [all-release] Error 2
> make: *** [all] Error 2
> 
> I tried make all-dev also with the same result.
> 
> thanks for you patience,
> Tobin.

Oh, and also FYI
$sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
pkg-config is already the newest version (0.29.1-0ubuntu1).
libpcre-ocaml-dev is already the newest version (7.0.4-2build1).
ocaml is already the newest version (4.02.3-5ubuntu2).
ocaml-findlib is already the newest version (1.5.5-2build1).

thanks,
Tobin.

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

* [Cocci] coccicheck run error
  2017-03-15 22:14     ` Tobin C. Harding
@ 2017-03-16  5:52       ` Julia Lawall
  2017-03-16  7:50         ` Tobin C. Harding
  2017-03-16  6:12       ` Peter Senna Tschudin
  1 sibling, 1 reply; 13+ messages in thread
From: Julia Lawall @ 2017-03-16  5:52 UTC (permalink / raw)
  To: cocci



On Thu, 16 Mar 2017, Tobin C. Harding wrote:

> On Thu, Mar 16, 2017 at 09:10:54AM +1100, Tobin C. Harding wrote:
> > On Wed, Mar 15, 2017 at 12:01:24PM +0100, Julia Lawall wrote:
> > >
> > >
> > > On Wed, 15 Mar 2017, Tobin C. Harding wrote:
> > >
> > > > I am running coccinelle using
> > > >
> > > > $ make coccicheck MODE=report DEBUG_FILE=cocci-err.log M=drivers/staging/ks7010
> > > > Please check for false positives in the output before submitting a patch.
> > > > When using "patch" mode, carefully review the patch before submitting it.
> > > >
> > > > coccicheck failed
> > > >
> > > > $ cat cocci-err.log
> > > > 3 files match
> > > > Fatal error: exception Sys_error("alloc_cast: No such file or directory")
> > > >
> > > > Using V=1 gives no additional indication of the error.
> > > >
> > > > Any suggestions on how to proceed please?
> > >
> > > What version of Coccinelle do you have?  If you are not using the github
> > > version, perhaps you could try with that.
> >
> > Am having trouble building from the github repository. I tried
> >
> > $ ./autogen
> > $ ./configure
> > $ make -j9 >/dev/null
> > File "pyml-current/pyml_compat.ml", line 11, characters 20-38:
> > Warning 3: deprecated: Lazy.lazy_from_fun
> > Use Lazy.from_fun instead.
> > File "unparse_c.ml", line 2367, characters 6-18:
> > Warning 3: deprecated: String.unsafe_set
> > make[3]: *** No rule to make target '/usr/lib/ocaml/parmap/parmap.cmxa', needed by 'spatch.opt'.  Stop.
> > make[2]: *** [opt-compil] Error 2
> > make[1]: *** [all-release] Error 2
> > make: *** [all] Error 2
> >
> > I tried make all-dev also with the same result.
> >
> > thanks for you patience,
> > Tobin.
>
> Oh, and also FYI
> $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> pkg-config is already the newest version (0.29.1-0ubuntu1).
> libpcre-ocaml-dev is already the newest version (7.0.4-2build1).
> ocaml is already the newest version (4.02.3-5ubuntu2).
> ocaml-findlib is already the newest version (1.5.5-2build1).

Sorry for the problems.  Could you try make distclean?

julia

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

* [Cocci] coccicheck run error
  2017-03-15 22:14     ` Tobin C. Harding
  2017-03-16  5:52       ` Julia Lawall
@ 2017-03-16  6:12       ` Peter Senna Tschudin
  2017-03-16  7:51         ` Tobin C. Harding
  1 sibling, 1 reply; 13+ messages in thread
From: Peter Senna Tschudin @ 2017-03-16  6:12 UTC (permalink / raw)
  To: cocci

On Wed, Mar 15, 2017 at 11:14 PM, Tobin C. Harding <me@tobin.cc> wrote:

[...]

> Oh, and also FYI
> $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev

can you try

$ apt-get build-dep coccinelle

More information about needed packages:

http://packages.ubuntu.com/yakkety/coccinelle

[...]


-- 
Peter

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

* [Cocci] coccicheck run error
  2017-03-16  5:52       ` Julia Lawall
@ 2017-03-16  7:50         ` Tobin C. Harding
  2017-03-16  8:44           ` Julia Lawall
  0 siblings, 1 reply; 13+ messages in thread
From: Tobin C. Harding @ 2017-03-16  7:50 UTC (permalink / raw)
  To: cocci

On Thu, Mar 16, 2017 at 06:52:20AM +0100, Julia Lawall wrote:
> 
> 
> On Thu, 16 Mar 2017, Tobin C. Harding wrote:
> 
> > On Thu, Mar 16, 2017 at 09:10:54AM +1100, Tobin C. Harding wrote:
> > > On Wed, Mar 15, 2017 at 12:01:24PM +0100, Julia Lawall wrote:
> > > >
> > > >
> > > > On Wed, 15 Mar 2017, Tobin C. Harding wrote:
> > > >
> > > > > I am running coccinelle using
> > > > >
> > > > > $ make coccicheck MODE=report DEBUG_FILE=cocci-err.log M=drivers/staging/ks7010
> > > > > Please check for false positives in the output before submitting a patch.
> > > > > When using "patch" mode, carefully review the patch before submitting it.
> > > > >
> > > > > coccicheck failed
> > > > >
> > > > > $ cat cocci-err.log
> > > > > 3 files match
> > > > > Fatal error: exception Sys_error("alloc_cast: No such file or directory")
> > > > >
> > > > > Using V=1 gives no additional indication of the error.
> > > > >
> > > > > Any suggestions on how to proceed please?
> > > >
> > > > What version of Coccinelle do you have?  If you are not using the github
> > > > version, perhaps you could try with that.
> > >
> > > Am having trouble building from the github repository. I tried
> > >
> > > $ ./autogen
> > > $ ./configure
> > > $ make -j9 >/dev/null
> > > File "pyml-current/pyml_compat.ml", line 11, characters 20-38:
> > > Warning 3: deprecated: Lazy.lazy_from_fun
> > > Use Lazy.from_fun instead.
> > > File "unparse_c.ml", line 2367, characters 6-18:
> > > Warning 3: deprecated: String.unsafe_set
> > > make[3]: *** No rule to make target '/usr/lib/ocaml/parmap/parmap.cmxa', needed by 'spatch.opt'.  Stop.
> > > make[2]: *** [opt-compil] Error 2
> > > make[1]: *** [all-release] Error 2
> > > make: *** [all] Error 2
> > >
> > > I tried make all-dev also with the same result.
> > >
> > > thanks for you patience,
> > > Tobin.
> >
> > Oh, and also FYI
> > $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > pkg-config is already the newest version (0.29.1-0ubuntu1).
> > libpcre-ocaml-dev is already the newest version (7.0.4-2build1).
> > ocaml is already the newest version (4.02.3-5ubuntu2).
> > ocaml-findlib is already the newest version (1.5.5-2build1).
> 
> Sorry for the problems.  Could you try make distclean?

No problem what so ever. I'm certain that coccinelle is going to
save me much more time spent editing source code by hand than whatever
it takes to build :)

I tried configuring without parmap but the make error is the same.

$ ./configure --enable-parmap no
$ make
make[5]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle/tools/spgen'
make[4]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
make[3]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
make spatch.opt BUILD_OPT=yes
make[3]: Entering directory '/home/tobin/build/github.com/coccinelle/coccinelle'
make[3]: *** No rule to make target '/usr/lib/ocaml/parmap/parmap.cmxa', needed by 'spatch.opt'.  Stop.
make[3]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
Makefile:164: recipe for target 'opt-compil' failed
make[2]: *** [opt-compil] Error 2
make[2]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
Makefile:144: recipe for target 'all-release' failed
make[1]: *** [all-release] Error 2
make[1]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
Makefile:122: recipe for target 'all' failed
make: *** [all] Error 2

I did `make distclean` as instructed. And re-did it all again with
default configuration.

I'm more than happy to keep trying things if you have the patience to
direct me.

thanks,
Tobin.

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

* [Cocci] coccicheck run error
  2017-03-16  6:12       ` Peter Senna Tschudin
@ 2017-03-16  7:51         ` Tobin C. Harding
  2017-03-16  8:16           ` Peter Senna Tschudin
  0 siblings, 1 reply; 13+ messages in thread
From: Tobin C. Harding @ 2017-03-16  7:51 UTC (permalink / raw)
  To: cocci

On Thu, Mar 16, 2017 at 07:12:55AM +0100, Peter Senna Tschudin wrote:
> On Wed, Mar 15, 2017 at 11:14 PM, Tobin C. Harding <me@tobin.cc> wrote:
> 
> [...]
> 
> > Oh, and also FYI
> > $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
> 
> can you try
> 
> $ apt-get build-dep coccinelle

I have coccinelle installed already. I'm trying to the latest version
to build and install :)

thanks,
Tobin.

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

* [Cocci] coccicheck run error
  2017-03-16  7:51         ` Tobin C. Harding
@ 2017-03-16  8:16           ` Peter Senna Tschudin
  2017-03-16 11:33             ` Tobin C. Harding
  0 siblings, 1 reply; 13+ messages in thread
From: Peter Senna Tschudin @ 2017-03-16  8:16 UTC (permalink / raw)
  To: cocci

On Thu, Mar 16, 2017 at 8:51 AM, Tobin C. Harding <me@tobin.cc> wrote:
> On Thu, Mar 16, 2017 at 07:12:55AM +0100, Peter Senna Tschudin wrote:
>> On Wed, Mar 15, 2017 at 11:14 PM, Tobin C. Harding <me@tobin.cc> wrote:
>>
>> [...]
>>
>> > Oh, and also FYI
>> > $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
>>
>> can you try
>>
>> $ apt-get build-dep coccinelle
>
> I have coccinelle installed already. I'm trying to the latest version
> to build and install :)

This suggestions is to install build dependencies, not Coccinelle itself.

>
> thanks,
> Tobin.



-- 
Peter

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

* [Cocci] coccicheck run error
  2017-03-16  7:50         ` Tobin C. Harding
@ 2017-03-16  8:44           ` Julia Lawall
  0 siblings, 0 replies; 13+ messages in thread
From: Julia Lawall @ 2017-03-16  8:44 UTC (permalink / raw)
  To: cocci



On Thu, 16 Mar 2017, Tobin C. Harding wrote:

> On Thu, Mar 16, 2017 at 06:52:20AM +0100, Julia Lawall wrote:
> >
> >
> > On Thu, 16 Mar 2017, Tobin C. Harding wrote:
> >
> > > On Thu, Mar 16, 2017 at 09:10:54AM +1100, Tobin C. Harding wrote:
> > > > On Wed, Mar 15, 2017 at 12:01:24PM +0100, Julia Lawall wrote:
> > > > >
> > > > >
> > > > > On Wed, 15 Mar 2017, Tobin C. Harding wrote:
> > > > >
> > > > > > I am running coccinelle using
> > > > > >
> > > > > > $ make coccicheck MODE=report DEBUG_FILE=cocci-err.log M=drivers/staging/ks7010
> > > > > > Please check for false positives in the output before submitting a patch.
> > > > > > When using "patch" mode, carefully review the patch before submitting it.
> > > > > >
> > > > > > coccicheck failed
> > > > > >
> > > > > > $ cat cocci-err.log
> > > > > > 3 files match
> > > > > > Fatal error: exception Sys_error("alloc_cast: No such file or directory")
> > > > > >
> > > > > > Using V=1 gives no additional indication of the error.
> > > > > >
> > > > > > Any suggestions on how to proceed please?
> > > > >
> > > > > What version of Coccinelle do you have?  If you are not using the github
> > > > > version, perhaps you could try with that.
> > > >
> > > > Am having trouble building from the github repository. I tried
> > > >
> > > > $ ./autogen
> > > > $ ./configure
> > > > $ make -j9 >/dev/null
> > > > File "pyml-current/pyml_compat.ml", line 11, characters 20-38:
> > > > Warning 3: deprecated: Lazy.lazy_from_fun
> > > > Use Lazy.from_fun instead.
> > > > File "unparse_c.ml", line 2367, characters 6-18:
> > > > Warning 3: deprecated: String.unsafe_set
> > > > make[3]: *** No rule to make target '/usr/lib/ocaml/parmap/parmap.cmxa', needed by 'spatch.opt'.  Stop.
> > > > make[2]: *** [opt-compil] Error 2
> > > > make[1]: *** [all-release] Error 2
> > > > make: *** [all] Error 2
> > > >
> > > > I tried make all-dev also with the same result.
> > > >
> > > > thanks for you patience,
> > > > Tobin.
> > >
> > > Oh, and also FYI
> > > $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
> > > Reading package lists... Done
> > > Building dependency tree
> > > Reading state information... Done
> > > pkg-config is already the newest version (0.29.1-0ubuntu1).
> > > libpcre-ocaml-dev is already the newest version (7.0.4-2build1).
> > > ocaml is already the newest version (4.02.3-5ubuntu2).
> > > ocaml-findlib is already the newest version (1.5.5-2build1).
> >
> > Sorry for the problems.  Could you try make distclean?
>
> No problem what so ever. I'm certain that coccinelle is going to
> save me much more time spent editing source code by hand than whatever
> it takes to build :)
>
> I tried configuring without parmap but the make error is the same.
>
> $ ./configure --enable-parmap no
> $ make
> make[5]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle/tools/spgen'
> make[4]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
> make[3]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
> make spatch.opt BUILD_OPT=yes
> make[3]: Entering directory '/home/tobin/build/github.com/coccinelle/coccinelle'
> make[3]: *** No rule to make target '/usr/lib/ocaml/parmap/parmap.cmxa', needed by 'spatch.opt'.  Stop.
> make[3]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
> Makefile:164: recipe for target 'opt-compil' failed
> make[2]: *** [opt-compil] Error 2
> make[2]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
> Makefile:144: recipe for target 'all-release' failed
> make[1]: *** [all-release] Error 2
> make[1]: Leaving directory '/home/tobin/build/github.com/coccinelle/coccinelle'
> Makefile:122: recipe for target 'all' failed
> make: *** [all] Error 2
>
> I did `make distclean` as instructed. And re-did it all again with
> default configuration.
>
> I'm more than happy to keep trying things if you have the patience to
> direct me.

Obviously we should support installation without parmap, but if you want
to proceed before we can get back to you with a solution, perhaps just
install parmap.  https://github.com/rdicosmo/parmap

julia

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

* [Cocci] coccicheck run error
  2017-03-16  8:16           ` Peter Senna Tschudin
@ 2017-03-16 11:33             ` Tobin C. Harding
  2017-03-16 12:27               ` Julia Lawall
  0 siblings, 1 reply; 13+ messages in thread
From: Tobin C. Harding @ 2017-03-16 11:33 UTC (permalink / raw)
  To: cocci

On Thu, Mar 16, 2017 at 09:16:21AM +0100, Peter Senna Tschudin wrote:
> On Thu, Mar 16, 2017 at 8:51 AM, Tobin C. Harding <me@tobin.cc> wrote:
> > On Thu, Mar 16, 2017 at 07:12:55AM +0100, Peter Senna Tschudin wrote:
> >> On Wed, Mar 15, 2017 at 11:14 PM, Tobin C. Harding <me@tobin.cc> wrote:
> >>
> >> [...]
> >>
> >> > Oh, and also FYI
> >> > $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
> >>
> >> can you try
> >>
> >> $ apt-get build-dep coccinelle
> >
> > I have coccinelle installed already. I'm trying to the latest version
> > to build and install :)
> 
> This suggestions is to install build dependencies, not Coccinelle itself.

Wow, I did not know that apt-get command. Thank you for making the
effort to email me the second time when you were clearly correct the
first. Extremely well-natured of you, thank you.

Coccinelle built! Pull request submitted on github to add the
apt-get command to install.txt.

thanks,
Tobin.

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

* [Cocci] coccicheck run error
  2017-03-16 11:33             ` Tobin C. Harding
@ 2017-03-16 12:27               ` Julia Lawall
  2017-03-16 14:51                 ` Peter Senna Tschudin
  0 siblings, 1 reply; 13+ messages in thread
From: Julia Lawall @ 2017-03-16 12:27 UTC (permalink / raw)
  To: cocci



On Thu, 16 Mar 2017, Tobin C. Harding wrote:

> On Thu, Mar 16, 2017 at 09:16:21AM +0100, Peter Senna Tschudin wrote:
> > On Thu, Mar 16, 2017 at 8:51 AM, Tobin C. Harding <me@tobin.cc> wrote:
> > > On Thu, Mar 16, 2017 at 07:12:55AM +0100, Peter Senna Tschudin wrote:
> > >> On Wed, Mar 15, 2017 at 11:14 PM, Tobin C. Harding <me@tobin.cc> wrote:
> > >>
> > >> [...]
> > >>
> > >> > Oh, and also FYI
> > >> > $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
> > >>
> > >> can you try
> > >>
> > >> $ apt-get build-dep coccinelle
> > >
> > > I have coccinelle installed already. I'm trying to the latest version
> > > to build and install :)
> >
> > This suggestions is to install build dependencies, not Coccinelle itself.
>
> Wow, I did not know that apt-get command. Thank you for making the
> effort to email me the second time when you were clearly correct the
> first. Extremely well-natured of you, thank you.
>
> Coccinelle built! Pull request submitted on github to add the
> apt-get command to install.txt.

Great that it worked :)

But I guess that it is not a perfect solution, because the dependencies of
Coccinelle could change between what Ubuntu knows about and what is needed
in the latest version.

julia

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

* [Cocci] coccicheck run error
  2017-03-16 12:27               ` Julia Lawall
@ 2017-03-16 14:51                 ` Peter Senna Tschudin
  0 siblings, 0 replies; 13+ messages in thread
From: Peter Senna Tschudin @ 2017-03-16 14:51 UTC (permalink / raw)
  To: cocci

On Thu, Mar 16, 2017 at 1:27 PM, Julia Lawall <julia.lawall@lip6.fr> wrote:
>
>
> On Thu, 16 Mar 2017, Tobin C. Harding wrote:
>
>> On Thu, Mar 16, 2017 at 09:16:21AM +0100, Peter Senna Tschudin wrote:
>> > On Thu, Mar 16, 2017 at 8:51 AM, Tobin C. Harding <me@tobin.cc> wrote:
>> > > On Thu, Mar 16, 2017 at 07:12:55AM +0100, Peter Senna Tschudin wrote:
>> > >> On Wed, Mar 15, 2017 at 11:14 PM, Tobin C. Harding <me@tobin.cc> wrote:
>> > >>
>> > >> [...]
>> > >>
>> > >> > Oh, and also FYI
>> > >> > $sudo apt-get install ocaml ocaml-findlib libpcre-ocaml-dev pkg-config libpcre-ocaml-dev
>> > >>
>> > >> can you try
>> > >>
>> > >> $ apt-get build-dep coccinelle
>> > >
>> > > I have coccinelle installed already. I'm trying to the latest version
>> > > to build and install :)
>> >
>> > This suggestions is to install build dependencies, not Coccinelle itself.
>>
>> Wow, I did not know that apt-get command. Thank you for making the
>> effort to email me the second time when you were clearly correct the
>> first. Extremely well-natured of you, thank you.
>>
>> Coccinelle built! Pull request submitted on github to add the
>> apt-get command to install.txt.
>
> Great that it worked :)
>
> But I guess that it is not a perfect solution, because the dependencies of
> Coccinelle could change between what Ubuntu knows about and what is needed
> in the latest version.

Tobin, I guess you could add something like this to the documentation:

-- // --
You can try to use the package manager of your distribution to install
the build dependencies. This is not guaranteed to work, as the
dependencies may change, but chances are it will help you. Some
examples:

$ apt-get build-dep coccinelle
$ dnf builddep coccinelle
$ yum builddep coccinelle
-- // --

Feel free to copy and send a patch if you feel like.



-- 
Peter

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

end of thread, other threads:[~2017-03-16 14:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 10:35 [Cocci] coccicheck run error Tobin C. Harding
2017-03-15 11:01 ` Julia Lawall
2017-03-15 22:10   ` Tobin C. Harding
2017-03-15 22:14     ` Tobin C. Harding
2017-03-16  5:52       ` Julia Lawall
2017-03-16  7:50         ` Tobin C. Harding
2017-03-16  8:44           ` Julia Lawall
2017-03-16  6:12       ` Peter Senna Tschudin
2017-03-16  7:51         ` Tobin C. Harding
2017-03-16  8:16           ` Peter Senna Tschudin
2017-03-16 11:33             ` Tobin C. Harding
2017-03-16 12:27               ` Julia Lawall
2017-03-16 14:51                 ` Peter Senna Tschudin

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.