Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lower bound] Error compiling tls.0.10.1 #18986

Open
mseri opened this issue Jul 1, 2021 · 1 comment
Open

[lower bound] Error compiling tls.0.10.1 #18986

mseri opened this issue Jul 1, 2021 · 1 comment

Comments

@mseri
Copy link
Member

mseri commented Jul 1, 2021

The error is

#=== ERROR while compiling tls.0.10.1 =========================================#
# context              2.1.0~rc2 | linux/x86_64 | ocaml-base-compiler.4.03.0 | file:///src
# path                 ~/.opam/4.03/.opam-switch/build/tls.0.10.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pinned false --tests false --with-lwt true --with-mirage false
# exit-code            1
# env-file             ~/.opam/log/tls-19-3a3a8d.env
# output-file          ~/.opam/log/tls-19-3a3a8d.out
### output ###
# ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/4.03/lib/ocamlbuild /home/opam/.opam/4.03/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/4.03/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/tracing.mli > lib/tracing.mli.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/tracing.cmi lib/tracing.mli
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/tracing.cmi lib/tracing.mli
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/tracing.ml > lib/tracing.ml.depends
# ocamlfind ocamldep -package ppx_sexp_conv -package 'cstruct nocrypto result x509 sexplib' -modules lib/ciphersuite.ml > lib/ciphersuite.ml.depends
# ocamlfind ocamldep -package ppx_cstruct -package 'cstruct nocrypto result x509 sexplib' -modules lib/packet.ml > lib/packet.ml.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_cstruct -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/packet.cmo lib/packet.ml
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_cstruct -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/packet.cmo lib/packet.ml
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package ppx_sexp_conv -package 'cstruct nocrypto result x509 sexplib' -modules lib/core.ml > lib/core.ml.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_sexp_conv -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/ciphersuite.cmo lib/ciphersuite.ml
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_sexp_conv -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/ciphersuite.cmo lib/ciphersuite.ml
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml, /home/opam/.opam/4.03/lib/ocaml/compiler-libs
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/reader.mli > lib/reader.mli.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_sexp_conv -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/core.cmo lib/core.ml
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_sexp_conv -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/core.cmo lib/core.ml
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml, /home/opam/.opam/4.03/lib/ocaml/compiler-libs
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/reader.cmi lib/reader.mli
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/reader.cmi lib/reader.mli
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package ppx_sexp_conv -package 'cstruct nocrypto result x509 sexplib' -modules lib/reader.ml > lib/reader.ml.depends
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/control.ml > lib/control.ml.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/control.cmo lib/control.ml
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/control.cmo lib/control.ml
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/writer.mli > lib/writer.mli.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/writer.cmi lib/writer.mli
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/writer.cmi lib/writer.mli
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/writer.ml > lib/writer.ml.depends
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/utils.ml > lib/utils.ml.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/utils.cmo lib/utils.ml
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/utils.cmo lib/utils.ml
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/config.mli > lib/config.mli.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/config.cmi lib/config.mli
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/config.cmi lib/config.mli
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package ppx_sexp_conv -package 'cstruct nocrypto result x509 sexplib' -modules lib/config.ml > lib/config.ml.depends
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/engine.mli > lib/engine.mli.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/engine.cmi lib/engine.mli
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/engine.cmi lib/engine.mli
# findlib: [WARNING] Interface config.cmi occurs in several directories: lib, /home/opam/.opam/4.03/lib/ocaml/compiler-libs
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml/compiler-libs, /home/opam/.opam/4.03/lib/ocaml
# ocamlfind ocamldep -package ppx_sexp_conv -package 'cstruct nocrypto result x509 sexplib' -modules lib/engine.ml > lib/engine.ml.depends
# ocamlfind ocamldep -package 'cstruct nocrypto result x509 sexplib' -modules lib/crypto.ml > lib/crypto.ml.depends
# ocamlfind ocamldep -package ppx_sexp_conv -package 'cstruct nocrypto result x509 sexplib' -modules lib/state.ml > lib/state.ml.depends
# ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_sexp_conv -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/state.cmo lib/state.ml
# + ocamlfind ocamlc -c -g -bin-annot -safe-string -package ppx_sexp_conv -for-pack Tls -package 'cstruct nocrypto result x509 sexplib' -w +A-4-9-41-42-44-45 -color always -I lib -I lwt -o lib/state.cmo lib/state.ml
# findlib: [WARNING] Interface config.cmi occurs in several directories: lib, /home/opam/.opam/4.03/lib/ocaml/compiler-libs
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/opam/.opam/4.03/lib/ocaml, /home/opam/.opam/4.03/lib/ocaml/compiler-libs
# File "lib/state.ml", line 222, characters 0-14:
# Error: Multiple definition of the type name t.
#        Names must be unique in a given structure or signature.
# Command exited with code 2.
# + ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/4.03/lib/ocamlbuild /home/opam/.opam/4.03/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/4.03/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# File "myocamlbuild.ml", line 4, characters 34-46:
# Warning 40: dependencies was selected from type Ocamlbuild_plugin.Findlib.package.
# It is not visible in the current scope, and will not 
# be selected if the type becomes unknown.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
#      '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
#      'README.md' 'lib/tls.cmi' 'lib/tls.a' 'lib/tls.cmxs' 'lib/tls.cmxa'
#      'lib/tls.cma' 'lib/tls.cmx' 'lwt/tls-lwt.a' 'lwt/tls-lwt.cmxs'
#      'lwt/tls-lwt.cmxa' 'lwt/tls-lwt.cma' 'lwt/x509_lwt.cmx'
#      'lwt/x509_lwt.cmi' 'lwt/x509_lwt.mli' 'lwt/tls_lwt.cmx'
#      'lwt/tls_lwt.cmi' 'lwt/tls_lwt.mli']: exited with 10

The packages involved are

The following actions will be performed:
  - install mirage-no-xen           1
  - install conf-gmp                3
  - install mirage-no-solo5         1
  - install conf-m4                 1
  - install conf-perl               1
  - install ocamlbuild              0.14.0
  - install jbuilder                1.0+beta20.2
  - install ocamlfind               1.8.1
  - install zarith                  1.11
  - install topkg                   1.0.3
  - install sexplib                 113.33.00+4.03
  - install ppx_tools               5.0+4.03.0
  - install ocamlfind-secondary     1.8.1
  - install base-bytes              base
  - install ppx_core                113.33.01+4.03
  - install dune                    2.9.0
  - install astring                 0.8.3
  - install ppx_optcomp             113.33.00+4.03
  - install seq                     0.2.2
  - install result                  1.5
  - install ppx_derivers            1.2.1
  - install ocaml-syntax-shims      1.0.0
  - install mmap                    1.1.0
  - install cstruct                 3.7.0
  - install csexp                   1.5.1
  - install cpuid                   0.1.2
  - install cppo                    1.6.7
  - install ocb-stubblr             0.1.1-1
  - install ppx_driver              113.33.02+4.03
  - install ptime                   0.8.5
  - install irc-client              0.6.2
  - install ocaml-migrate-parsetree 1.8.0
  - install dune-configurator       2.9.0
  - install ocplib-endian           1.1
  - install asn1-combinators        0.2.0
  - install ppxfind                 1.4
  - install ppx_tools_versioned     5.4.0
  - install lwt                     5.4.1
  - install ppx_deriving            4.5
  - install ppx_cstruct             3.7.0
  - install cstruct-lwt             3.7.0
  - install ppx_type_conv           113.33.02+4.03
  - install ppx_sexp_conv           113.33.01+4.03
  - install nocrypto                0.5.4-2
  - install x509                    0.6.1
  - install tls                     0.10.1
@mseri
Copy link
Member Author

mseri commented Jul 1, 2021

Seen on #18987

@github-actions github-actions bot added the Stale label Sep 29, 2021
@mseri mseri added persist and removed Stale labels Oct 6, 2021
@ocaml ocaml deleted a comment from github-actions bot Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants