Your message dated Fri, 26 Apr 2019 05:33:21 +0000
with message-id <e1hjtu9-0002yu...@fasolo.debian.org>
and subject line Bug#926935: fixed in arpack 3.7.0-2
has caused the Debian Bug report #926935,
regarding arpack: FTBFS (does not honor parallel=n in DEB_BUILD_OPTIONS)
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 ow...@bugs.debian.org
immediately.)


-- 
926935: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926935
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:arpack
Version: 3.7.0-1
Severity: serious
Tags: ftbfs patch

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-arch
dh build-arch
   dh_update_autotools_config -a
   dh_autoreconf -a
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:12: installing 'build-aux/compile'
configure.ac:17: installing 'build-aux/config.guess'

[... snipped ...]

make[4]: Leaving directory '/<<PKGBUILDDIR>>/PARPACK/SRC/MPI'
Making check in .
make[4]: Entering directory '/<<PKGBUILDDIR>>/PARPACK'
make[4]: Nothing to be done for 'check-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/PARPACK'
Making check in TESTS/MPI
make[4]: Entering directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
make  issue46 
make[5]: Entering directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
mpif77  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-c -o issue46.o issue46.f
/bin/bash ../../../libtool  --tag=F77   --mode=link mpif77  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong  -Wl,-z,relro -o 
issue46 issue46.o ../../../PARPACK/SRC/MPI/libparpack.la -llapack -lblas 
libtool: link: mpif77 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wl,-z -Wl,relro -o .libs/issue46 issue46.o  
../../../PARPACK/SRC/MPI/.libs/libparpack.so -llapack -lblas
make[5]: Leaving directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
make  check-TESTS
make[5]: Entering directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
make[6]: Entering directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
FAIL: issue46
============================================================================
Testsuite summary for ARPACK-NG 3.7.0
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See PARPACK/TESTS/MPI/test-suite.log
Please report to https://github.com/opencollab/arpack-ng/issues/
============================================================================
make[6]: *** [Makefile:830: test-suite.log] Error 1
make[6]: Leaving directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
make[5]: *** [Makefile:938: check-TESTS] Error 2
make[5]: Leaving directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
make[4]: *** [Makefile:1026: check-am] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/PARPACK/TESTS/MPI'
make[3]: *** [Makefile:387: check-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/PARPACK'
make[2]: *** [Makefile:509: check-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:15: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------

This used to work ok in all my autobuilders in version 3.5.0+real-2, but
it started to fail in some of them in version 3.6.3-1.

I've put a bunch of build logs here:

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

The problem seems to be that the Makefiles wrongly assume that the
system has at least 2 CPUs, which may or may not be the case.

A simple solution that seems to work is to set 'LOG_FLAGS = -n 1' in
both PARPACK/EXAMPLES/MPI/Makefile.am and PARPACK/TESTS/MPI/Makefile.am,
but it would be even better to honor parallel=n setting in DEB_BUILD_OPTIONS
when there is one, as in the patch below.

I did not find a simple way to reproduce this in any system.
The usual recipe is to try "taskset -c 0 dpkg-buildpackage" but
this does not seem to work here, so if you need a test machine to
reproduce the failure please contact me privately and I will gladly
provide one.

Thanks.

--- a/PARPACK/EXAMPLES/MPI/Makefile.am
+++ b/PARPACK/EXAMPLES/MPI/Makefile.am
@@ -12,7 +12,7 @@ check_PROGRAMS = $(SNDRV) $(DNDRV) $(SSDRV) $(DSDRV) $(CNDRV) 
$(ZNDRV)
 
 # Run MPI tests with "mpirun -n 2"
 LOG_COMPILER = mpirun
-LOG_FLAGS = -n 2
+LOG_FLAGS = -n $(NUMJOBS)
 
 TESTS = $(check_PROGRAMS)
 
--- a/PARPACK/TESTS/MPI/Makefile.am
+++ b/PARPACK/TESTS/MPI/Makefile.am
@@ -3,7 +3,7 @@ LDADD = 
$(top_builddir)/PARPACK/SRC/MPI/libparpack$(LIBSUFFIX).la $(LAPACK_LIBS)
 
 # Run MPI tests with "mpirun -n 2"
 LOG_COMPILER = mpirun
-LOG_FLAGS = -n 2
+LOG_FLAGS = -n $(NUMJOBS)
 
 SISS = issue46
 
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,12 @@
 %:
        dh $@
 
+export NUMJOBS = $(shell nproc)
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+  NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
 override_dh_auto_configure:
        # Enforce generic BLAS (to avoid tying to ATLAS or OpenBLAS)
        dh_auto_configure --  --enable-mpi --with-blas=blas

--- End Message ---
--- Begin Message ---
Source: arpack
Source-Version: 3.7.0-2

We believe that the bug you reported is fixed in the latest version of
arpack, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 926...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ghislain Antony Vaillant <ghisv...@gmail.com> (supplier of updated arpack 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 25 Apr 2019 00:34:46 +0200
Source: arpack
Binary: libarpack2 libarpack2-dev libparpack2 libparpack2-dev
Architecture: source
Version: 3.7.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Ghislain Antony Vaillant <ghisv...@gmail.com>
Description:
 libarpack2 - Fortran77 subroutines to solve large scale eigenvalue problems
 libarpack2-dev - Fortran77 subroutines to solve large scale eigenvalue 
problems (d
 libparpack2 - Parallel subroutines to solve large scale eigenvalue problems
 libparpack2-dev - Parallel subroutines to solve large scale eigenvalue 
problems (de
Closes: 926935
Changes:
 arpack (3.7.0-2) unstable; urgency=medium
 .
   * Team upload.
   * Fix FTBFS on single core builders
     - New patch 0001-Run-MPI-tests-on-a-single-cpu.patch
     Thanks to Santiago Vila (Closes: #926935)
Checksums-Sha1:
 bb3303952b49d8405ddc01e2ffda3426ec157499 2183 arpack_3.7.0-2.dsc
 bfa610de2fc3ba6b33ac1953b89d41e4519f7f34 9212 arpack_3.7.0-2.debian.tar.xz
Checksums-Sha256:
 07cd2bb12dd05de066093267ac1fdaa354133497c742b442142154534fb63da8 2183 
arpack_3.7.0-2.dsc
 aa4522861be6464eb94bcb27f051cd93689246bfd8bf6359a43f80b4feccf159 9212 
arpack_3.7.0-2.debian.tar.xz
Files:
 2f288be803bfd38b2366d53debb8526a 2183 math optional arpack_3.7.0-2.dsc
 fa72d36debc4a775637483a4e8ec603c 9212 math optional 
arpack_3.7.0-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJCBAEBCAAsFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAlzCk08OHHRpbGxlYUBy
a2kuZGUACgkQV4oElNHGRtFZOg//ZXWg4wnSXyKIX0FG3TCQtIvLEwv0DsNdGtZm
+pWMlVuj2lnEholg5YezOOICmb1Zuj7pyBLjJ66ZgClflQTuZ1LfVpMXEFesI8Kk
GJ60KEjA9sn6KcBlXktH9VHHy5lHVbs06qxe9Rlf118ZC6Y4gCdtCPcP7xUR9KqX
1o4Q2Frr82e0TobHx/gphUeFZrZDctFFIXgyjHqAphQ8y1rBH/mlLUhON/V0sinZ
xxZphb/jE59ED3M1Is7AC4PFnTS0pVM9muUZItzgJis7EUej7IB6Psu3EOCcc9Rj
x+W54Sk3cQE1X/FPAtQfnD9Iwx8LZYW78ys5CwRfy6u8QCBRFtai8KNVHvDxSGoC
YhY+gSZURE3GUWVrmDeN16BERVM6LCUl8kw38/eOnewLEBM7a8OWkLAtU27mIKEK
xXl6PcuYW2Metk1qoicci7lUPdFgjCov+6Kc4vdTvOUpY2BelYiPUtAXKaFw2gXL
2bLT5jg6k1u4hdwIY+SnN1UxS3cplQTNJk6Ibbv1OcSxbnXqDyJgnYQzTyUq7q2C
UBeosgKWvOYMbLX9OAownyb7q10rLjs8KorXUaoCP71j8zUuXIS/0TySxVkflhr1
p9PlMsDhu9bMduv61fPlUYgsERVOSVhyEXGsmU2kNt6RU7t+yQxuMFni2FzrRy/v
oCVII4I=
=YnGv
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to