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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to