Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] installation on Ubuntu



Thanks for sharing your experience,

Indeed, both rubber, sqlite3, coq and alt-ergo are only optional
dependencies, you don't need them to compile the tools.

without rubber, you will not be able to generate the Why3 manual using
"make rubber", not a big miss... You still can compile with pdflatex.
Indeed hevea is also needed to make the HTML version of the doc.

without sqlite3, you will not have the command why3bench, not a big miss
too. The support of it might be dropped in the future anyway,

without coq, then you will not be able to do Coq proof to discharge the
VCs generated by WP or Jessie plugins. A big miss only if you already
know how to write Coq proofs.

without alt-ergo, you will need some other automated provers to
discharge those VCs. There are some...

- Claude

Le 26/08/2013 15:49, Richard Bonichon a ?crit :
> Hey Stephen,
> 
> Pretty sure that rubber (a helper to compile LaTeX) is not a dependency.
> It should not be. Othervise texlive and other LaTeX-related packages
> (which might be > 1Gb) should also be tagged as dependencies. You do not
> want do that.
> 
> Also not quite sure why sqlite3 would be needed.
> 
> 
> 
> On Mon, Aug 26, 2013 at 9:51 AM, Stephen Siegel <siegel at udel.edu
> <mailto:siegel at udel.edu>> wrote:
> 
>     I'm just posting here what I did to install these tools on a fresh
>     Ubuntu system in case it is helpful to others...
> 
> 
>     To install current Frama-C with Jessie, Why, and Why3 on Ubuntu:
> 
>     sudo apt-get install \
>        ocaml \
>        ocaml-native-compilers \
>        libocamlgraph-ocaml-dev \
>        libzarith-ocaml-dev \
>        otags \
>        graphviz \
>        liblablgtk2-gnome-ocaml-dev \
>        liblablgtksourceview2-ocaml-dev \
>        rubber \
>        sqlite3 \
>        coq \
>        alt-ergo
> 
>     In /usr/local/lib/ocaml/3.12.1 execute:
>       sudo ln -s /usr/lib/ocaml/zarith
> 
>     Download ltl2ba from
>     http://www.lsv.ens-cachan.fr/~gastin/ltl2ba/download.php
>     Unpack, compile with just "make" and move executable ltl2ba into
>     your path
>     (e.g., /usr/local/bin).
> 
>     Download and unpack:
>       http://frama-c.com/download/frama-c-Fluorine-20130601.tar.gz
>       http://why3.lri.fr/download/why3-0.81.tar.gz
>       http://why.lri.fr/download/why-2.33.tar.gz
>     In the last case, edit configure, replacing each occurrence of
>     20130401 with 20130601
>     In each case, build and install as usual:
>       ./configure
>       make
>       sudo make install
>     Configure Why3 by executing why3config.  It should be able to find
>     at least Alt-Ergo.
>     Test on this example copy.c by executing
>       frama-c -jessie copy.c
>     and selecting Alt-Ergo (for example) to discharge all VCs.  They
>     should all check.
> 
>     Contents of copy.c:
> 
>     /* Array copy: copies elements of one array into another.
>      * Author: Stephen F. Siegel
>      * VCs can be discharged by Alt-Ergo or CVC3.
>      */
> 
>     /*@
>       @ requires n>=0 && \valid(a+(0..n-1)) && \valid(b+(0..n-1)) ;
>       @ ensures \forall integer i ; 0 <= i < n ==> a[i] == b[i] ;
>       @ assigns b[0..n-1] ;
>       @*/
>     void copy(int n, double a[], double b[]) {
>       int i = 0;
> 
>       /*@
>         @ loop invariant 0<=i<=n;
>         @ loop invariant \forall integer j ; 0<=j<i ==> b[j] == a[j] ;
>         @ loop variant n - i ;
>         @*/
>       while (i < n) {
>         b[i] = a[i];
>         i++;
>       }
>     }
> 
> 
> 
>     _______________________________________________
>     Frama-c-discuss mailing list
>     Frama-c-discuss at lists.gforge.inria.fr
>     <mailto:Frama-c-discuss at lists.gforge.inria.fr>
>     http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss
> 
> 
> 
> 
> -- 
> Richard Bonichon
> 
> 
> _______________________________________________
> Frama-c-discuss mailing list
> Frama-c-discuss at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/frama-c-discuss
> 

-- 
Claude March?                          | tel: +33 1 72 92 59 69
INRIA Saclay - ?le-de-France           |
Universit? Paris-sud, Bat. 650         | http://www.lri.fr/~marche/
F-91405 ORSAY Cedex                    |