package wiringpi

  1. Overview
  2. Docs
On This Page
  1. Error log

wiringpi 0.0.1

Error log

The package failed to build. The error log from opam follows.

[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
=== install 2 packages
  - install ocamlbuild 0.15.0
  - install wiringpi   0.0.1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved wiringpi.0.0.1  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> installed ocamlbuild.0.15.0
[ERROR] The compilation of wiringpi.0.0.1 failed at "ocaml setup.ml -build".

#=== ERROR while compiling wiringpi.0.0.1 =====================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.14.2 | file:///src
# path                 ~/.opam/4.14/.opam-switch/build/wiringpi.0.0.1
# command              ~/.opam/4.14/bin/ocaml setup.ml -build
# exit-code            1
# env-file             ~/.opam/log/wiringpi-113-087fba.env
# output-file          ~/.opam/log/wiringpi-113-087fba.out
### output ###
# File "./setup.ml", line 318, characters 20-36:
# 318 |     String.compare (String.lowercase s1) (String.lowercase s2)
#                           ^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.lowercase
# Use String.lowercase_ascii/StringLabels.lowercase_ascii instead.
# File "./setup.ml", line 318, characters 42-58:
# 318 |     String.compare (String.lowercase s1) (String.lowercase s2)
#                                                 ^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.lowercase
# Use String.lowercase_ascii/StringLabels.lowercase_ascii instead.
# File "./setup.ml", line 327, characters 14-30:
# 327 |              (String.lowercase s1) = (String.lowercase s2)
#                     ^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.lowercase
# Use String.lowercase_ascii/StringLabels.lowercase_ascii instead.
# File "./setup.ml", line 327, characters 38-54:
# 327 |              (String.lowercase s1) = (String.lowercase s2)
#                                             ^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.lowercase
# Use String.lowercase_ascii/StringLabels.lowercase_ascii instead.
# File "./setup.ml", line 330, characters 25-41:
# 330 |            Hashtbl.hash (String.lowercase s)
#                                ^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.lowercase
# Use String.lowercase_ascii/StringLabels.lowercase_ascii instead.
# File "./setup.ml", line 368, characters 10-26:
# 368 |           String.lowercase buf
#                 ^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.lowercase
# Use String.lowercase_ascii/StringLabels.lowercase_ascii instead.
# File "./setup.ml", line 474, characters 13-29:
# 474 |              String.lowercase
#                    ^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.lowercase
# Use String.lowercase_ascii/StringLabels.lowercase_ascii instead.
# File "./setup.ml", line 1381, characters 23-41:
# 1381 |          let compare = Pervasives.compare
#                               ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "./setup.ml", line 1825, characters 16-33:
# 1825 |     concat dir (String.capitalize base)
#                        ^^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.capitalize
# Use String.capitalize_ascii/StringLabels.capitalize_ascii instead.
# File "./setup.ml", line 1831, characters 16-35:
# 1831 |     concat dir (String.uncapitalize base)
#                        ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: Stdlib.String.uncapitalize
# Use String.uncapitalize_ascii/StringLabels.uncapitalize_ascii instead.
# File "setup.ml", line 2916, characters 10-27:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 2922, characters 10-21:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 2925, characters 23-34:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 2928, characters 20-34:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 2931, characters 10-27:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 2934, characters 16-28:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 2935, characters 15-27:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 2935, characters 32-42:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 2935, characters 48-61:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 2936, characters 16-27:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 2937, characters 16-27:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 2938, characters 16-27:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 3088, characters 4-21:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3107, characters 24-40:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 3109, characters 21-33:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 3110, characters 20-32:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3110, characters 41-53:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3112, characters 20-32:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3112, characters 41-54:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3114, characters 20-32:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3114, characters 50-62:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3116, characters 20-32:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3116, characters 50-63:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3118, characters 20-32:
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "setup.ml", line 3131, characters 15-27:
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "setup.ml", line 3229, characters 16-34:
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "setup.ml", line 5847, characters 11-28:
# Alert deprecated: Stdlib.String.capitalize
# Use String.capitalize_ascii/StringLabels.capitalize_ascii instead.
# File "setup.ml", line 5848, characters 11-30:
# Alert deprecated: Stdlib.String.uncapitalize
# Use String.uncapitalize_ascii/StringLabels.uncapitalize_ascii instead.
# File "setup.ml", line 6484, characters 33-42:
# Warning 6 [labels-omitted]: label what was omitted in the application of this function.
# File "setup.ml", line 6485, characters 36-45:
# Warning 6 [labels-omitted]: label what was omitted in the application of this function.
# + /home/opam/.opam/4.14/bin/ocamlopt.opt unix.cmxa -I /home/opam/.opam/4.14/lib/ocamlbuild /home/opam/.opam/4.14/lib/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /home/opam/.opam/4.14/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# + /home/opam/.opam/4.14/bin/ocamlfind ocamlc -g -c src/WiringPi_stubs.c
# + /home/opam/.opam/4.14/bin/ocamlfind ocamlc -g -c src/WiringPi_stubs.c
# src/WiringPi_stubs.c:9:10: fatal error: wiringPi.h: No such file or directory
#     9 | #include <wiringPi.h>
#       |          ^~~~~~~~~~~~
# compilation terminated.
# Command exited with code 2.
# + /home/opam/.opam/4.14/bin/ocamlopt.opt unix.cmxa -I /home/opam/.opam/4.14/lib/ocamlbuild /home/opam/.opam/4.14/lib/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /home/opam/.opam/4.14/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# File "myocamlbuild.ml", line 155, characters 10-27:
# 155 |           Stream.of_channel chn
#                 ^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 161, characters 10-21:
# 161 |           Stream.from
#                 ^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 164, characters 23-34:
# 164 |                  match Stream.next st with
#                              ^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 167, characters 20-34:
# 167 |                with Stream.Failure -> None)
#                           ^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 170, characters 10-27:
# 170 |           Genlex.make_lexer ["="] st_line
#                 ^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 173, characters 16-28:
# 173 |           match Stream.npeek 3 lexer with
#                       ^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 174, characters 15-27:
# 174 |             | [Genlex.Ident nm; Genlex.Kwd "="; Genlex.String value] ->
#                      ^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 174, characters 32-42:
# 174 |             | [Genlex.Ident nm; Genlex.Kwd "="; Genlex.String value] ->
#                                       ^^^^^^^^^^
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 174, characters 48-61:
# 174 |             | [Genlex.Ident nm; Genlex.Kwd "="; Genlex.String value] ->
#                                                       ^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Genlex
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 175, characters 16-27:
# 175 |                 Stream.junk lexer;
#                       ^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 176, characters 16-27:
# 176 |                 Stream.junk lexer;
#                       ^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 177, characters 16-27:
# 177 |                 Stream.junk lexer;
#                       ^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 518, characters 43-62:
# 518 |                        List.map (fun m -> (String.uncapitalize m) ^ ".cmi")
#                                                  ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: Ocamlbuild_plugin.String.uncapitalize
# Use String.uncapitalize_ascii/StringLabels.uncapitalize_ascii instead.
# File "myocamlbuild.ml", line 531, characters 51-70:
# 531 |                        List.map (fun m -> dir^"/"^(String.uncapitalize m)^".cmi")
#                                                          ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: Ocamlbuild_plugin.String.uncapitalize
# Use String.uncapitalize_ascii/StringLabels.uncapitalize_ascii instead.
# E: Failure("Command ''/home/opam/.opam/4.14/bin/ocamlbuild' src/libWiringPi_stubs.a src/dllWiringPi_stubs.so src/WiringPi.cma src/WiringPi.cmxa src/WiringPi.a src/WiringPi.cmxs -tag debug' terminated with error code 10")



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build wiringpi 0.0.1
+- 
+- The following changes have been performed
| - install ocamlbuild 0.15.0
+- 

<><> wiringpi.0.0.1 troubleshooting <><><><><><><><><><><><><><><><><><><><><><>
=> This package requires WiringPi development files installed.
     Tentative instructions : https://gist.githubusercontent.com/Leonidas-from-XIV/a1a7315ac01f7fbee3f0/raw
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.14/.opam-switch/backup/state-20250203232815.export"
OCaml

Innovation. Community. Security.