Package: src:opam
Version: 2.2.1-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with ocaml
   debian/rules build-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu/ocaml/5.2.0 \
        --enable-certificate-check
checking for ocamlc... ocamlc
OCaml version is 5.2.0
OCaml library path is /usr/lib/x86_64-linux-gnu/ocaml/5.2.0
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocaml... ocaml
checking for ocamldep... ocamldep
checking for ocamldep.opt... ocamldep.opt
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamldoc.opt... ocamldoc.opt
checking for ocamlbuild... no
checking OCaml Sys.os_type... Unix
checking for gawk... no
checking for mawk... mawk
checking for compiler type... cc
checking for compiler architecture... amd64
checking for compiler system... linux
checking for compiler target... x86_64-pc-linux-gnu
checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-gcc  -O2 
-fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 
-Werror=implicit-function-declaration  -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-pthread  -D_FILE_OFFSET_BITS=64 -Wdate-time
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-linux-gnu-gcc  -O2 -fno-strict-aliasing -fwrapv 
-pthread -fPIC -g -O2 -Werror=implicit-function-declaration  
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -pthread  -D_FILE_OFFSET_BITS=64 
-Wdate-time accepts -g... yes
checking for x86_64-linux-gnu-gcc  -O2 -fno-strict-aliasing -fwrapv -pthread 
-fPIC -g -O2 -Werror=implicit-function-declaration  -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-pthread  -D_FILE_OFFSET_BITS=64 -Wdate-time option to enable C11 features... 
none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for acl/libacl.h... no
checking for library containing acl_get_perm... no
checking for ocamlobjinfo... ocamlobjinfo
checking for ocamlfind... ocamlfind
checking for curl... curl
checking for dune... dune
checking for patch... patch
checking for bunzip2... bunzip2
checking for linking method... shared

checking for OCaml findlib package unix... found
checking for OCaml findlib package re 1.9.0 or later... found 1.11.0
checking for OCaml findlib package base64 3.1.0 or later... found [unspecified]
checking for OCaml findlib package cmdliner... found
checking for OCaml findlib package ocamlgraph... found
checking for OCaml findlib package cudf 0.7 or later... found 0.10
checking for OCaml findlib package dose3.common 6.1 or later... found 7.0.0
checking for OCaml findlib package dose3.algo 6.1 or later... found 7.0.0
checking for OCaml findlib package opam-file-format 2.1.4 or later... found 
2.1.6
checking for OCaml findlib package spdx_licenses... found
checking for OCaml findlib package opam-0install-cudf 0.4 or later... found 
0.5.0
checking for OCaml findlib package jsonm... found
checking for OCaml findlib package uutf... found
checking for OCaml findlib package sha... found
checking for OCaml findlib package swhid_core... found
checking for OCaml findlib package mccs 1.1+17 or later... found 1.1+18
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether g++ really is a C++ compiler... yes

configure: creating ./config.status
config.status: creating Makefile.config
config.status: creating src/ocaml-flags-configure.sexp
config.status: creating src/stubs/c-flags.sexp
config.status: creating src/stubs/libacl/c-libraries.sexp

Opam will be built WITH its default built-in solver

Executables will be installed in /usr/bin
Manual pages will be installed in /usr/share/man
touch .configure_stamp
HOME=/home/user /usr/bin/make
make[2]: Entering directory '/<<PKGBUILDDIR>>'
dune build --profile=release --root . --verbose --promote-install-files -- 
opam-installer.install opam.install
Shared cache: disabled
Shared cache location: /home/user/.cache/dune/db
Workspace root: /<<PKGBUILDDIR>>
Auto-detected concurrency: 2
Dune context:
 { name = "default"
 ; kind = "default"
 ; profile = Release
 ; merlin = true
 ; fdo_target_exe = None
 ; build_dir = In_build_dir "default"
 ; instrument_with = []
 }
Actual targets:
- _build/default/opam-installer.install
- _build/default/opam.install
Running[1]: (cd _build/default/src && /usr/bin/ocaml ../shell/context_flags.ml 
flags) > _build/default/src/ocaml-context-flags.sexp
Running[2]: (cd _build/default/src/client && /usr/bin/sh -c 'git describe --exact 
HEAD || echo [dev]') > _build/default/src/client/git-describe 2> /dev/null
Running[3]: (cd _build/default/src/client && /usr/bin/sh -c 'git rev-parse --quiet 
--verify HEAD || echo .') > _build/default/src/client/git-sha 2> /dev/null
Running[4]: (cd _build/default && /usr/bin/ocamldep.opt -modules -impl 
doc/man/dune_man.ml) > _build/default/doc/man/.dune_man.eobjs/dune__exe__Dune_man.impl.d

[...]

Running[403]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w 
+a-4-40-42-44-48 -safe-string -g -o src/client/opamMain.exe 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/ocamlgraph/graph.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/re/re.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/unix/unix.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/sha/sha.cmxa -I 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/sha 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/uutf/uutf.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/jsonm/jsonm.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/swhid_core/swhid_core.cmxa 
src/core/opam_core.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/opam-file-format/opam-file-format.cmxa 
src/format/opam_format.cmxa src/repository/opam_repository.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/spdx_licenses/spdx_licenses.cmxa 
src/state/opam_state.cmxa /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/extlib/extlib.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/cudf/cudf.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/re/pcre/re_pcre.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/dose3/common/dose_common.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/dose3/algo/dose_algo.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/0install-solver/zeroinstall_solver.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/opam-0install-cudf/opam_0install_cudf.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/glpk/shared/mccs_hostglpk_shared.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/mccs.cmxa -I 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs src/solver/opam_solver.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/base64/base64.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/cmdliner/cmdliner.cmxa 
src/client/opam_client.cmxa src/client/.opamMain.eobjs/native/dune__exe__OpamMain.cmx)
File "src/client/dune", line 15, characters 15-23:
15 |   (name        opamMain)
                    ^^^^^^^^
Command [403] exited with code 2:
$ (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w +a-4-40-42-44-48 
-safe-string -g -o src/client/opamMain.exe 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/ocamlgraph/graph.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/re/re.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/unix/unix.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/sha/sha.cmxa -I 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/sha 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/uutf/uutf.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/jsonm/jsonm.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/swhid_core/swhid_core.cmxa 
src/core/opam_core.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/opam-file-format/opam-file-format.cmxa 
src/format/opam_format.cmxa src/repository/opam_repository.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/spdx_licenses/spdx_licenses.cmxa 
src/state/opam_state.cmxa /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/extlib/extlib.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/cudf/cudf.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/re/pcre/re_pcre.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/dose3/common/dose_common.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/dose3/algo/dose_algo.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/0install-solver/zeroinstall_solver.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/opam-0install-cudf/opam_0install_cudf.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/glpk/shared/mccs_hostglpk_shared.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/mccs.cmxa -I 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs src/solver/opam_solver.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/base64/base64.cmxa 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/cmdliner/cmdliner.cmxa 
src/client/opam_client.cmxa src/client/.opamMain.eobjs/native/dune__exe__OpamMain.cmx)
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::objective_value() [clone .localalias]':
(.text+0x1cd): undefined reference to `glp_mip_obj_val'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::get_solution(CUDFVersionedPackage*)':
(.text+0x1f3): undefined reference to `glp_mip_col_val'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::begin_objectives()':
(.text+0x222): undefined reference to `glp_set_obj_dir'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::end_objectives()':
(.text+0x28c): undefined reference to `glp_set_col_bnds'
/usr/bin/ld: (.text+0x2a0): undefined reference to `glp_set_col_name'
/usr/bin/ld: (.text+0x2b3): undefined reference to `glp_set_col_kind'
/usr/bin/ld: (.text+0x340): undefined reference to `glp_set_col_bnds'
/usr/bin/ld: (.text+0x34e): undefined reference to `glp_set_col_name'
/usr/bin/ld: (.text+0x361): undefined reference to `glp_set_col_kind'
/usr/bin/ld: (.text+0x404): undefined reference to `glp_set_col_bnds'
/usr/bin/ld: (.text+0x412): undefined reference to `glp_set_col_name'
/usr/bin/ld: (.text+0x425): undefined reference to `glp_set_col_kind'
/usr/bin/ld: (.text+0x47d): undefined reference to `glp_set_obj_coef'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::add_constraint_geq(long long)':
(.text+0x544): undefined reference to `glp_add_rows'
/usr/bin/ld: (.text+0x564): undefined reference to `glp_set_row_bnds'
/usr/bin/ld: (.text+0x57b): undefined reference to `glp_set_mat_row'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::add_constraint_leq(long long)':
(.text+0x5b4): undefined reference to `glp_add_rows'
/usr/bin/ld: (.text+0x5d4): undefined reference to `glp_set_row_bnds'
/usr/bin/ld: (.text+0x5eb): undefined reference to `glp_set_mat_row'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::add_constraint_eq(long long)':
(.text+0x624): undefined reference to `glp_add_rows'
/usr/bin/ld: (.text+0x644): undefined reference to `glp_set_row_bnds'
/usr/bin/ld: (.text+0x65b): undefined reference to `glp_set_mat_row'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::init_solver(std::vector<CUDFVersionedPackage*, 
std::allocator<CUDFVersionedPackage*> >*, int)':
(.text+0x728): undefined reference to `glp_create_prob'
/usr/bin/ld: (.text+0x737): undefined reference to `glp_add_cols'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::~glpk_solver()':
(.text+0x8db): undefined reference to `glp_delete_prob'
/usr/bin/ld: (.text+0x8e0): undefined reference to `glp_free_env'
/usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/ocaml/5.2.0/mccs/libmccs_stubs.a(glpk_solver.o): in 
function `glpk_solver::solve(int)':
(.text+0x99f): undefined reference to `glp_init_iocp'
/usr/bin/ld: (.text+0xa25): undefined reference to `glp_cpx_basis'
/usr/bin/ld: (.text+0xa62): undefined reference to `glp_mip_obj_val'
/usr/bin/ld: (.text+0xac1): undefined reference to `glp_set_obj_coef'
/usr/bin/ld: (.text+0xb15): undefined reference to `glp_set_obj_coef'
/usr/bin/ld: (.text+0xb3d): undefined reference to `glp_add_rows'
/usr/bin/ld: (.text+0xb5d): undefined reference to `glp_set_row_bnds'
/usr/bin/ld: (.text+0xb7a): undefined reference to `glp_set_mat_row'
/usr/bin/ld: (.text+0xb9a): undefined reference to `glp_intopt'
/usr/bin/ld: (.text+0xc59): undefined reference to `glp_mip_status'
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking (exit code 1)
make[2]: *** [Makefile:138: build-opam] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:28: build-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:13: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202409/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to