Skip to content

Instantly share code, notes, and snippets.

@abhi18av
Created October 10, 2018 11:10
Show Gist options
  • Select an option

  • Save abhi18av/c5161f5e46e09a792cbb749998354ac1 to your computer and use it in GitHub Desktop.

Select an option

Save abhi18av/c5161f5e46e09a792cbb749998354ac1 to your computer and use it in GitHub Desktop.
[nightfury@localhost ~]$ opam install tls
The following actions will be performed:
∗ install cpuid 0.1.1 [required by nocrypto]
∗ install nocrypto 0.5.4-1 [required by tls]
∗ install x509 0.6.2 [required by tls]
∗ install tls 0.9.2
===== ∗ 4 =====
Do you want to continue? [Y/n] y
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[cpuid.0.1.1] found in cache
[nocrypto.0.5.4-1] found in cache
[tls.0.9.2] found in cache
[x509.0.6.2] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of cpuid failed at "/home/nightfury/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build
--pinned false --tests false".
#=== ERROR while compiling cpuid.0.1.1 ========================================#
# context 2.0.0 | linux/x86_64 | | https://opam.ocaml.org#0741623b
# path ~/.opam/default/.opam-switch/build/cpuid.0.1.1
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pinned false --tests false
# exit-code 1
# env-file ~/.opam/log/cpuid-5412-0a5907.env
# output-file ~/.opam/log/cpuid-5412-0a5907.out
### output ###
# ocamlfind ocamlopt -package unix -package ocamlbuild -linkpkg -package ocb-stubblr myocamlbuild.ml /home/nightfury/.opam/default/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# /bin/sh: opam: command not found
# Failure: Ocb_stubblr: error running opam.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' '-plugin-tag' 'package(ocb-stubblr)' 'opam'
# 'pkg/META' 'CHANGES.md' 'LICENSE.md' 'README.md' 'src/cpuid.a'
# 'src/cpuid.cmxs' 'src/cpuid.cmxa' 'src/cpuid.cma' 'src/cpuid.cmx'
# 'src/cpuid.cmi' 'src/cpuid.mli' 'src/dllcpuid_stubs.so'
# 'src/libcpuid_stubs.a']: exited with 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build cpuid 0.1.1
└─
╶─ No changes have been performed
# Run eval $(opam env) to update the current shell environment
[nightfury@localhost ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment