[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#875850: marked as done (opam fails to build ocamlfind.)



Your message dated Mon, 14 Feb 2022 08:46:11 +0100
with message-id <c06c2be2-c60a-7133-d130-6fe55ae5a25c@debian.org>
and subject line Re: opam fails to build ocamlfind.
has caused the Debian Bug report #875850,
regarding opam fails to build ocamlfind.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
875850: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875850
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: opam
Version: 1.2.2-6
Severity: normal

Dear Maintainer,

the currrent version in unstable of opam fails to build ocamlfind
therefore rendering unusable many opam packages. Compiling opam from
git solves the problem. I invite you to upgrade opam to the latest
release or git snapshot.

This is the log on my machine from a clean opam initialization.

-----------------

$rm -Rf ~/.opam/

$opam init --comp ocaml-base-compiler.4.05.0
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your
    system.
  - you won't be able to use darcs repositories unless you install the darcs command on your
    system.

[default] synchronized from https://opam.ocaml.org

=-=- Fetching repository information =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] synchronized from https://opam.ocaml.org
[NOTE] The repository 'default' will be *permanently* redirected to https://opam.ocaml.org/2.0
       (opam-version >= "2.0~")
[default] synchronized from https://opam.ocaml.org/2.0

In normal operation, OPAM only alters files within ~/.opam.

During this initialisation, you can allow OPAM to add information to two
other files for best results. You can also make these additions manually
if you wish.

If you agree, OPAM will modify:

  - ~/.profile (or a file you specify) to set the right environment
    variables and to load the auto-completion scripts for your shell (bash)
    on startup. Specifically, it checks for and appends the following line:

    test -x /home/abate/.opam/opam-init/init.sh && . /home/abate/.opam/opam-init/init.sh >
/dev/null 2> /dev/null || true


  - ~/.ocamlinit to ensure that non-system installations of `ocamlfind`
    (i.e. those installed by OPAM) will work correctly when running the
    OCaml toplevel. It does this by adding $OCAML_TOPLEVEL_PATH to the list
    of include directories.

If you choose to not configure your system now, you can either configure
OPAM manually (instructions will be displayed) or launch the automatic setup
later by running:

   opam config setup -a


Do you want OPAM to modify ~/.profile and ~/.ocamlinit?
(default is 'no', use 'f' to name a file other than ~/.profile)
    [N/y/f]


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

1. To configure OPAM in the current shell session, you need to run:

      eval `opam config env`

2. To correctly configure OPAM for subsequent use, add the following
   line to your profile file (for instance ~/.profile):

      test -x /home/abate/.opam/opam-init/init.sh && . /home/abate/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

3. To avoid issues related to non-system installations of `ocamlfind`
   add the following lines to ~/.ocamlinit (create it if necessary):

      let () =
        try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
        with Not_found -> ()
      ;;

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ocaml-base-compiler.4.05.0] https://github.com/ocaml/ocaml/archive/4.05.0.tar.gz downloaded

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-> installed base-bigarray.base
-> installed base-threads.base
-> installed base-unix.base
-> installed ocaml-base-compiler.4.05.0
Done.
# Run eval `opam config env` to update the current shell environment

$eval `opam config env`

$opam install ocamlfind
The following actions will be performed:
  - install ocaml-variants 4.06.0+trunk+safe-string     [required by ocaml]
  - install ocaml          4.06.0                       [required by ocamlfind]
  - install conf-m4        1                            [required by ocamlfind]
  - install ocamlfind      1.7.3
===== 4 to install =====
Do you want to continue ? [Y/n] y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ocamlfind.1.7.3] http://download.camlcity.org/download/findlib-1.7.3.tar.gz downloaded
[ocaml-variants.4.06.0+trunk+safe-string] https://github.com/ocaml/ocaml/archive/trunk.tar.gz downloaded

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-> installed ocaml-variants.4.06.0+trunk+safe-string
-> installed ocaml.4.06.0
-> installed conf-m4.1
[ERROR] Bad hash for
        /home/abate/.opam/repo/default/packages/ocamlfind/ocamlfind.1.7.3/files/ocamlfind.install

#=== ERROR while compiling ocamlfind.1.7.3 ====================================#
OpamStd.OpamSys.Exit(66)


=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  - build ocamlfind 1.7.3
The following changes have been performed
  - install conf-m4        1
  - install ocaml          4.06.0
  - install ocaml-variants 4.06.0+trunk+safe-string
# Run eval `opam config env` to update the current shell environment

The former state can be restored with:
    opam switch import
"/home/abate/.opam/ocaml-base-compiler.4.05.0/.opam-switch/backup/state-20170914120019.export"

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages opam depends on:
ii  build-essential  12.3
ii  curl             7.55.1-1
ii  libbz2-1.0       1.0.6-8.1
ii  libc6            2.24-17
ii  opam-docs        1.2.2-6
ii  tar              1.29b-2
ii  unzip            6.0-21
ii  wget             1.19.1-4
ii  zlib1g           1:1.2.8.dfsg-5

Versions of packages opam recommends:
ii  aspcud     1:1.9.1-3
pn  darcs      <none>
ii  git        1:2.14.1-3
pn  mercurial  <none>
ii  ocaml      4.02.3-10
ii  rsync      3.1.2-2

opam suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 2.0.0-5

On Sat, 20 Oct 2018 15:38:21 +0200 Ralf Treinen <treinen@free.fr> wrote:
> I cannot reproduce the bug either (sid, opam 2.0.0-5 which I am about to
> upload). -Ralf.

Closing, then.

-- 
Stéphane

--- End Message ---

Reply to: