Build failure: ERROR while compiling conf-gsl.1
Opened this issue Β· 3 comments
marekkowalczyk commented
#=== ERROR while compiling conf-gsl.1 =========================================#
# context 2.0.7 | macos/x86_64 | ocaml-base-compiler.4.10.0 | https://opam.ocaml.org#9e7e7e45
# path ~/.opam/default/.opam-switch/build/conf-gsl.1
# command ~/.opam/opam-init/hooks/sandbox.sh build pkg-config gsl
# exit-code 1
# env-file ~/.opam/log/conf-gsl-64658-0ac68e.env
# output-file ~/.opam/log/conf-gsl-64658-0ac68e.out
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> π«
ββ The following actions failed
β Ξ» build conf-gsl 1
ββ
ββ The following changes have been performed (the rest was aborted)
β β install base v0.13.2
β β install camlp5 7.12
β β install conf-m4 1
β β install conf-ncurses 1
β β install conf-pkg-config 1.2
β β install curses 1.0.6
β β install dune 2.6.0
β β install dune-configurator 2.6.0
β β install dune-private-libs 2.6.0
β β install num 1.3
β β install ocamlfind 1.8.1
β β install sexplib0 v0.13.0
β β install stdio v0.13.0
ββ
The packages you requested declare the following system dependencies. Please make sure they are installed before retrying:
gsl
dertuxmalwieder commented
Solution: Install gsl
.
James-Hudson3010 commented
I have the same problem. Cannot install gsl because gsl requires conf-gsl which cannot be built.
$ opam install conf-gsl --debug-level=5
00:00.002 GSTATE LOAD-GLOBAL-STATE @ /Users/jamesh/.opam
00:00.003 SYSTEM LOCK /Users/jamesh/.opam/lock (none => read)
00:00.003 FILE(config) Read ~/.opam/config in 0.000s
00:00.003 RSTATE LOAD-REPOSITORY-STATE @ /Users/jamesh/.opam
00:00.005 FILE(repos-config) Read ~/.opam/repo/repos-config in 0.002s
00:00.006 SYSTEM LOCK /Users/jamesh/.opam/repo/state.cache (none => read)
00:00.083 RSTATE Loaded /Users/jamesh/.opam/repo/state.cache in 0.077s
00:00.340 SYSTEM LOCK /Users/jamesh/.opam/repo/state.cache (read => none)
00:00.340 RSTATE Cache found
00:00.340 STATE LOAD-SWITCH-STATE @ default
00:00.341 SYSTEM LOCK /Users/jamesh/.opam/default/.opam-switch/lock (none => write)
00:00.341 FILE(switch-config) Read ~/.opam/default/.opam-switch/switch-config in 0.000s
00:00.341 FILE(switch-state) Read ~/.opam/default/.opam-switch/switch-state in 0.000s
00:00.341 FILE(opam) Read ~/.opam/default/.opam-switch/packages/base-bigarray.base/opam in 0.000s
00:00.341 FILE(opam) Read ~/.opam/default/.opam-switch/packages/base-threads.base/opam in 0.000s
00:00.341 FILE(opam) Read ~/.opam/default/.opam-switch/packages/base-unix.base/opam in 0.000s
00:00.342 FILE(opam) Read ~/.opam/default/.opam-switch/packages/conf-ncurses.1/opam in 0.000s
00:00.342 FILE(opam) Read ~/.opam/default/.opam-switch/packages/conf-perl.1/opam in 0.000s
00:00.342 FILE(opam) Read ~/.opam/default/.opam-switch/packages/conf-pkg-config.2/opam in 0.000s
00:00.342 FILE(opam) Read ~/.opam/default/.opam-switch/packages/csexp.1.5.1/opam in 0.000s
00:00.342 FILE(opam) Read ~/.opam/default/.opam-switch/packages/curses.1.0.6/opam in 0.000s
00:00.342 FILE(opam) Read ~/.opam/default/.opam-switch/packages/dune.2.8.5/opam in 0.000s
00:00.343 FILE(opam) Read ~/.opam/default/.opam-switch/packages/dune-configurator.2.8.5/opam in 0.000s
00:00.343 FILE(opam) Read ~/.opam/default/.opam-switch/packages/num.1.4/opam in 0.000s
00:00.343 FILE(opam) Read ~/.opam/default/.opam-switch/packages/ocaml.4.12.0/opam in 0.000s
00:00.343 FILE(opam) Read ~/.opam/default/.opam-switch/packages/ocaml-config.2/opam in 0.000s
00:00.343 FILE(opam) Read ~/.opam/default/.opam-switch/packages/ocaml-system.4.12.0/opam in 0.000s
00:00.343 FILE(opam) Read ~/.opam/default/.opam-switch/packages/ocamlfind.1.9.1/opam in 0.000s
00:00.343 FILE(opam) Read ~/.opam/default/.opam-switch/packages/result.1.5/opam in 0.000s
00:00.389 STATE Detected changed packages (marked for reinstall): {}
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/base-bigarray.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/base-threads.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/base-unix.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/conf-ncurses.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/conf-perl.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/conf-pkg-config.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/csexp.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/curses.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/dune.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/dune-configurator.config
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/num.config
00:00.389 FILE(.config) Read ~/.opam/default/.opam-switch/config/ocaml.config in 0.000s
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/ocaml-config.config
00:00.389 FILE(.config) Read ~/.opam/default/.opam-switch/config/ocaml-system.config in 0.000s
00:00.389 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/ocamlfind.config
00:00.390 FILE(.config) Cannot find /Users/jamesh/.opam/default/.opam-switch/config/result.config
00:00.404 FILE(package-version-list) Cannot find /Users/jamesh/.opam/default/.opam-switch/reinstall
00:00.404 STATE Switch state loaded in 0.064s
00:00.404 FILE(switch-state) Wrote /Users/jamesh/.opam/default/.opam-switch/backup/state-20210428164453.export in 0.000s
00:00.517 CLIENT INSTALL conf-gsl
00:00.545 PROC safe_unlink: /Users/jamesh/.opam/log/command-brew-57624-5a61c5.info
00:00.545 PROC safe_unlink: /Users/jamesh/.opam/log/command-brew-57624-5a61c5.env
00:00.545 PROC safe_unlink: /Users/jamesh/.opam/log/command-brew-57624-5a61c5.out
00:00.773 PROC safe_unlink: /Users/jamesh/.opam/log/command-sw_vers-57624-4bcc67.info
00:00.773 PROC safe_unlink: /Users/jamesh/.opam/log/command-sw_vers-57624-4bcc67.env
00:00.773 PROC safe_unlink: /Users/jamesh/.opam/log/command-sw_vers-57624-4bcc67.out
00:00.785 SYSTEM [log-57624-4438d8] (in 0.016s) sw_vers -productVersion
00:00.789 FILE(environment) Read ~/.opam/default/.opam-switch/environment in 0.000s
00:00.794 PROC safe_unlink: /Users/jamesh/.opam/log/command-ocamlc-57624-ccabea.info
00:00.794 PROC safe_unlink: /Users/jamesh/.opam/log/command-ocamlc-57624-ccabea.env
00:00.794 PROC safe_unlink: /Users/jamesh/.opam/log/command-ocamlc-57624-ccabea.out
00:00.803 SYSTEM [log-57624-dd682e] (in 0.014s) ocamlc -vnum
00:00.948 CLIENT Orphans: (changes: { conf-gsl.1, conf-gsl.2 }, transitive: false) -> full {}, versions {}
00:01.253 SOLVER resolve request=install:(conf-gsl) remove:() upgrade:()
00:01.253 SOLVER cudf_versions_map
00:01.527 SOLVER Load cudf universe: opam2cudf
00:02.130 SOLVER Preload of cudf universe: done in 0.604s
00:02.130 SOLVER Load cudf universe (depopts:false, build:true, post:true)
00:02.249 SOLVER opam2cudf: done in 0.119s
00:02.271 SOLVER Secondary load of cudf universe: done in 0.141s
00:02.271 CUDF resolve request=install:(conf-gsl) remove:() upgrade:()
00:02.271 SOLVER Calling solver builtin-mccs+glpk with criteria -removed,-count[version-lag,request],-count[version-lag,changed],-changed
Can reduce graph.
Initial size: 17016 packages (16 installed, 17000 uninstalled), 3297 virtual packages
Final size: 183 packages (16 installed, 167 uninstalled), 25 virtual packages
Constructing initial basis...
Constructing conflict graph...
Conflict graph has 96 + 44 = 140 vertices
00:02.415 CUDF Solver call done in 0.144
00:02.495 SOLVER Load cudf universe (depopts:true, build:false, post:false)
00:02.590 SOLVER opam2cudf: done in 0.095s
00:02.602 SOLVER Secondary load of cudf universe: done in 0.107s
00:02.602 SOLVER Load cudf universe (depopts:true, build:true, post:false)
00:02.704 SOLVER opam2cudf: done in 0.102s
00:02.722 SOLVER Secondary load of cudf universe: done in 0.120s
00:02.722 CUDF graph_of_actions root_actions={ - β conf-gsl (= 2) }
00:02.730 CUDF Graph generation: 0.000
00:02.731 CUDF Graph generation: 0.000
00:02.734 CUDF Graph generation: 0.000
00:02.737 SOLUTION apply
The following actions will be performed:
β install conf-gsl 2
00:02.746 SOLUTION parallel_apply
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><> π«
00:02.746 PARALLEL Iterate over 1 task(s) with 3 process(es)
00:02.746 PARALLEL Starting job 0 (worker 1/3): 0
00:02.746 ACTION download_package: conf-gsl.2
00:02.746 PARALLEL Job 0 finished
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><> π«
00:02.746 PARALLEL Iterate over 2 task(s) with 15 process(es)
00:02.746 PARALLEL Starting job 230911082 (worker 1/15): Ξ» conf-gsl.2
00:02.746 SYSTEM rmdir /Users/jamesh/.opam/default/.opam-switch/build/conf-gsl.2
00:02.751 SYSTEM mkdir /Users/jamesh/.opam/default/.opam-switch/build/conf-gsl.2
00:02.751 ACTION prepare_package_source: conf-gsl.2 at /Users/jamesh/.opam/default/.opam-switch/build/conf-gsl.2
00:02.752 PARALLEL Next task in job 230911082: /Users/jamesh/.opam/opam-init/hooks/sandbox.sh build pkg-config gsl
Processing 1/2: [conf-gsl: pkg-config gsl]
00:02.787 PARALLEL Collected task for job 230911082 (ret:1)
[ERROR] The compilation of conf-gsl failed at "/Users/jamesh/.opam/opam-init/hooks/sandbox.sh build pkg-config gsl".
00:02.787 PARALLEL Job 230911082 finished
00:02.788 PARALLEL Starting job 447917594 (worker 1/15): β conf-gsl.2
00:02.788 PARALLEL Job 447917594 finished
#=== ERROR while compiling conf-gsl.2 =========================================#
# context 2.0.8 | macos/x86_64 | ocaml-system.4.12.0 | git+https://github.com/ocaml/opam-repository.git
# path ~/.opam/default/.opam-switch/build/conf-gsl.2
# command ~/.opam/opam-init/hooks/sandbox.sh build pkg-config gsl
# exit-code 1
# env-file ~/.opam/log/conf-gsl-57624-42bb52.env
# output-file ~/.opam/log/conf-gsl-57624-42bb52.out
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> π«
ββ The following actions failed
β Ξ» build conf-gsl 2
ββ
βΆβ No changes have been performed
The packages you requested declare the following system dependencies. Please make sure they are installed before retrying:
gsl
00:02.788 SYSTEM LOCK /Users/jamesh/.opam/default/.opam-switch/lock (write => none)
00:02.788 FILE(switch-state) Read ~/.opam/default/.opam-switch/switch-state in 0.000s
00:02.788 SYSTEM rm /Users/jamesh/.opam/default/.opam-switch/backup/state-20210428164453.export
00:02.788 SYSTEM LOCK /Users/jamesh/.opam/repo/lock (none => none)
00:02.788 SYSTEM LOCK /Users/jamesh/.opam/config.lock (none => none)
crvdgc commented
I don't know anything about this project, but just encountered a similar problem today. Here's how I solved it:
From the documentation, the conf-gsl package is a "Virtual package relying on a GSL lib system installation". So you need to install the gsl
system library, instead of installing the ocaml package called gsl
.
For example, on Debian based distros such as Ubuntu, apt install libgsl-dev
.