From: Soichi Sumi <s-sumi@ist.osaka-u.ac.jp>
To: caml-list@inria.fr
Subject: [Caml-list] CIL Installation with OPAM failed
Date: Tue, 12 Jan 2016 03:38:25 +0900 [thread overview]
Message-ID: <CAAPK4qAJkp_sYQn3E5Z89D5d4c9SDiT5wZN50T81DmT5fi+ymA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3645 bytes --]
Dear caml-list members,
I'm trying to install CIL in the following environment, but it failed.
I need CIL to analyze source.
Does anyone give me a solution?
OS: ubuntu 14.04
$ opam --version
$ 1.2.2
$ ocaml -version
$ The OCaml toplevel, version 4.02.3
I only did:
1. Install ubuntu
2. $ sudo add-apt-repository ppa:avsm/ppa
3. $ sudo apt-get update
4. $ sudo apt-get install ocaml ocaml-native-compilers camlp4-extra opam m4
5. $ opam init
6. $ opam switch 3.11.2
(cil needs ocaml 3.xx.x)
7. $ eval `opam config env`
8. $ opam install CIL
And we get :
-----------------------------------------------------------------------------------------------------------------------------
The following actions will be performed:
∗ install ocamlbuild 0 [required by cil]
∗ install ocamlfind 1.5.3 [required by cil]
∗ install cil 1.7.3
===== ∗ 3 =====
Do you want to continue ? [Y/n] y
=-=- Gathering sources
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] https://opam.ocaml.org/archives/ocamlfind.1.5.3+opam.tar.gz
downloaded
[default] https://opam.ocaml.org/archives/cil.1.7.3+opam.tar.gz downloaded
=-=- Processing actions
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
∗ installed ocamlbuild.0
[ERROR] The compilation of ocamlfind failed at "make opt".
Processing 2/3: [ocamlfind: make uninstall]
#=== ERROR while installing ocamlfind.1.5.3
===================================#
# opam-version 1.2.2
# os linux
# command make opt
# path /home/sumi/.opam/3.11.2/build/ocamlfind.1.5.3
# compiler 3.11.2
# exit-code 2
# env-file
/home/sumi/.opam/3.11.2/build/ocamlfind.1.5.3/ocamlfind-19121-a00279.env
# stdout-file
/home/sumi/.opam/3.11.2/build/ocamlfind.1.5.3/ocamlfind-19121-a00279.out
# stderr-file
/home/sumi/.opam/3.11.2/build/ocamlfind.1.5.3/ocamlfind-19121-a00279.err
### stdout ###
# files="bytes.cmx bytes.a bytes.cmxa"; \
# [...]
# ocamlbuild -classic-display -no-links $files
# /home/sumi/.opam/3.11.2/bin/ocamlopt.opt -c -o bytes.cmx bytes.ml
# /home/sumi/.opam/3.11.2/bin/ocamlopt.opt -a bytes.cmx -o bytes.cmxa
# Solver failed:
# Ocamlbuild knows of no rules that apply to a target named bytes.cmxs.
This can happen if you ask Ocamlbuild to build a target with the wrong
extension (e.g. .opt instead of .native) or if the source files live in
directories that have not been specified as include directories.
# Backtrace:
# - Failed to build the target bytes.cmxs
# - Building bytes.cmxs
# make[1]: Leaving directory
`/home/sumi/.opam/3.11.2/build/ocamlfind.1.5.3/src/bytes'
### stderr ###
# make[1]: *** [opt] Error 6
# make: *** [opt] Error 2
=-=- Error report
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
∗ install cil 1.7.3
The following actions failed
∗ install ocamlfind 1.5.3
The following changes have been performed
∗ install ocamlbuild 0
=-=- ocamlfind.1.5.3 troubleshooting
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> Could not build ocamlfind. The most common reason for that is a missing
'm4'
system package.
-----------------------------------------------------------------------------------------------------------------------------
Any help will be appreciated.
=========================================
Soichi Sumi
Graduate School of Information Science and Technology
Osaka University
1-5, Yamadaoka, Suita, Osaka, Japan
Email: s-sumi@ist.osaka-u.ac.jp
=========================================
[-- Attachment #2: Type: text/html, Size: 5069 bytes --]
next reply other threads:[~2016-01-11 18:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 18:38 Soichi Sumi [this message]
2016-01-11 18:54 ` Daniel Bünzli
2016-01-11 23:20 ` Soichi Sumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAPK4qAJkp_sYQn3E5Z89D5d4c9SDiT5wZN50T81DmT5fi+ymA@mail.gmail.com \
--to=s-sumi@ist.osaka-u.ac.jp \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox