dbuenzli / webbrowser

Open and reload URIs in browsers from OCaml
http://erratique.ch/software/webbrowser
ISC License
7 stars 2 forks source link

fails to build on 4.02.3 #3

Closed avsm closed 7 years ago

avsm commented 7 years ago

See this set of builds https://travis-ci.org/ocaml/opam-repository/builds/212960819 while processing https://github.com/ocaml/opam-repository/pull/8750

#=== ERROR while installing webbrowser.0.6.1 ==================================#
# opam-version 1.2.2
# os           linux
# command      ocaml pkg/pkg.ml build --pinned false --with-cmdliner true
# path         /home/travis/.opam/system/build/webbrowser.0.6.1
# compiler     system (4.02.3)
# exit-code    1
# env-file     /home/travis/.opam/system/build/webbrowser.0.6.1/webbrowser-8900-3aee7b.env
# stdout-file  /home/travis/.opam/system/build/webbrowser.0.6.1/webbrowser-8900-3aee7b.out
# stderr-file  /home/travis/.opam/system/build/webbrowser.0.6.1/webbrowser-8900-3aee7b.err
### stdout ###
# [...]
# File "test/browse.ml", line 28, characters 8-10:
# Warning 40: Ok was selected from type Rresult.result.
# It is not visible in the current scope, and will not 
# be selected if the type becomes unknown.
# ocamlfind ocamlopt -linkpkg -g -package cmdliner -package rresult -package astring -package bos src/webbrowser.cmx src/webbrowser_cli.cmx test/browse.cmx -o test/browse.native
# + ocamlfind ocamlopt -linkpkg -g -package cmdliner -package rresult -package astring -package bos src/webbrowser.cmx src/webbrowser_cli.cmx test/browse.cmx -o test/browse.native
# File "_none_", line 1:
# Error: No implementations provided for the following modules:
#          Uchar referenced from /home/travis/.opam/system/lib/fmt/fmt.cmxa(Fmt)
# Command exited with code 2.
### stderr ###
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-tag' 'debug'
#      '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
#      'README.md' 'src/webbrowser.a' 'src/webbrowser.cmxs'
#      'src/webbrowser.cmxa' 'src/webbrowser.cma' 'src/webbrowser.cmx'
#      'src/webbrowser.cmi' 'src/webbrowser.mli' 'src/webbrowser_cli.a'
#      'src/webbrowser_cli.cmxs' 'src/webbrowser_cli.cmxa'
#      'src/webbrowser_cli.cma' 'src/webbrowser_cli.cmx'
#      'src/webbrowser_cli.cmi' 'src/webbrowser_cli.mli' 'test/browse.native']: exited with 10
dbuenzli commented 7 years ago

Thanks for the report @avsm. Note that the problem here is due to missing dependencies in fmt's META file. If you wonder why this was not caught by revdeps CI the reason is that the Bos_setup package re-exports the Fmt module which is used by webbrowser so webbrowser itself does not depend on Fmt.