Bug#893509: petsc: FTBFS with make 4.1

James Cowgill jcowgill at debian.org
Mon Mar 19 14:20:32 UTC 2018


Source: petsc
Version: 3.8.3+dfsg1-6
Severity: serious
Tags: sid buster

Hi,

petsc FTBFS with this error on the architectures with make 4.1 (others
have make 4.2.1):
> dh_auto_build -plibpetsc-real3.8-dbg -ppetsc3.8-doc --  \
>   PETSC_DIR=/<<BUILDDIR>>/petsc-3.8.3+dfsg1 PETSC_ARCH=i386-linux-gnu-real-debug \
>   CFLAGS="-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3+dfsg1=." CXXFLAGS="-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3+dfsg1=." \
>   FCFLAGS="-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3+dfsg1=."  FFLAGS="-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3+dfsg1=."
> 	make -j4 -O PETSC_DIR=/<<BUILDDIR>>/petsc-3.8.3\+dfsg1 PETSC_ARCH=i386-linux-gnu-real-debug CFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3\+dfsg1=. CXXFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3\+dfsg1=. FCFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3\+dfsg1=. FFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.8.3\+dfsg1=.
> make[2]: Entering directory '/<<BUILDDIR>>/petsc-3.8.3+dfsg1'
> ********************* ERROR **********************
> PETSc toplevel makefile does not support -j option.
> Instead - use: "make MAKE_NP=<np>". Current value of MAKE_NP is 4.
> **************************************************
> /<<BUILDDIR>>/petsc-3.8.3+dfsg1/lib/petsc/conf/rules:19: recipe for target 'chk_makej' failed
> make[2]: *** [chk_makej] Error 1

On the architectures with make 4.2.1, the build succeeds incorrectly (at
least according to the intention of the -jX check). This happens because
the check in lib/petsc/conf/rules checks for " -j " (with spaces) in
MAKEFLAGS. In make 4.2.1 the behavior was changed to include the number
of parallel jobs in MAKEFLAGS which causes this test to never report a
parallel build.

I think you either need to use -j1, or remove the upstream -jX check if
it is invalid for some reason.

James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20180319/c6a2a433/attachment.sig>


More information about the debian-science-maintainers mailing list