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

On Aug 26, 2013, at 9:12 AM, Pascal Cuoq <pascal.cuoq at> wrote:

> On Mon, Aug 26, 2013 at 2:51 PM, Stephen Siegel <siegel at> wrote:
> 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
> Are you quite sure about the necessity of this step? If you are starting from a fresh Ubuntu, there is no /usr/local/lib/ocaml, much less a /usr/local/lib/ocaml/3.12.1. I guess that you created this directory as root on your distribution, but ?from the fact that you are installing the OCaml packages? you do not seem to want to use it to build Frama-C. Unless you are compiling Frama-C with a compiler that you compiled and installed locally, but in this case, installing the distribution's OCaml packages is asking for trouble, and creating this kind of link even more so.

I'm pretty sure.  I just tried this again to check.   I started from a fresh Ubuntu (using Oracle VirtualBox, setting up a VM using ubuntu-12.10-desktop-i386.iso, and after installing only the "Guest Additions").  The only thing in /usr/local/lib are some Python libraries:

student at ubuntu12:~$ ls /usr/local/lib
python2.7  python3.2

Then I typed "sudo apt-get install ocaml".  When that is done:

student at ubuntu12:~$ ls /usr/local/lib
ocaml  python2.7  python3.2
student at ubuntu12:~$ ls /usr/local/lib/ocaml/
student at ubuntu12:~$ ls /usr/local/lib/ocaml/3.12.1/
student at ubuntu12:~$ ls /usr/local/lib/ocaml/3.12.1/stublibs/
student at ubuntu12:~$ 

So apt-get install sets up this trivial directory structure in /usr/local/lib, while all the real stuff goes in /usr/lib/ocaml.  I then executed "sudo apt-get install libzarith-ocaml-dev", which put zarith in /usr/lib/ocaml/zarith.

After installing the other packages, running the Frama-C configure scripts yields:


checking for ocamlfind... ocamlfind
OCamlfind detected and enabled
checking for /usr/local/lib/ocaml/3.12.1/zarith/zarith.cmxa... no
configure: WARNING: Zarith not found: will use the default less efficient library instead


So the script is looking for zarith in /usr/local/lib/ocaml/3.12.1, hence the need for the symlink, after which the configure script finds it and everything works fine.   This issue is discussed here:

Thanks for explaining what Zarith is for---I didn't have any idea, only the sort of discouraging message about using the less efficient library.


> Anyway, Zarith is a nice-to-have, but it does not bring any extra functionality. It makes some analyses take less memory and time. If you are not going to spend more than five hours in total waiting on Frama-C, you can completely omit it.
> Pascal
> _______________________________________________
> Frama-c-discuss mailing list
> Frama-c-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>