Package: src:starpu-contrib
Version: 1.2.6+dfsg-5
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules build-arch
dh build-arch --parallel -Bbuild --with autoreconf
   dh_testdir -a -O--parallel -O-Bbuild
   dh_update_autotools_config -a -O--parallel -O-Bbuild
   dh_autoreconf -a -O--parallel -O-Bbuild
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in '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'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,

[... snipped ...]

gcc-7 -DHAVE_CONFIG_H -I. -I../../tests -I../src/common -I../include 
-I../gcc-plugin/include/starpu-gcc -I../starpu-top  -I../../include/ -I../src 
-I../../src/ -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE  -D_FORTIFY_SOURCE=1 
  -Wall  -DSTARPU_OPENCL_DATADIR=/usr/share/starpu/opencl 
-DCL_USE_DEPRECATED_OPENCL_1_1_APIS   -Wall -Werror=implicit 
-Werror=implicit-function-declaration -Wno-unused -O3 -g -O2 
-fdebug-prefix-map=/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -gdwarf-2 -g3 -g  -c 
-o simple_cpu_gpu_sched.o `test -f 'sched_policies/simple_cpu_gpu_sched.c' || 
echo '../../tests/'`sched_policies/simple_cpu_gpu_sched.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<command-line>:0:0: note: this is the location of the previous definition
/bin/bash ../libtool  --tag=CC   --mode=link gcc-7   -Wall  
-DSTARPU_OPENCL_DATADIR=/usr/share/starpu/opencl 
-DCL_USE_DEPRECATED_OPENCL_1_1_APIS   -Wall -Werror=implicit 
-Werror=implicit-function-declaration -Wno-unused -O3 -g -O2 
-fdebug-prefix-map=/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -gdwarf-2 -g3 -g  
-lOpenCL -lcudart -lcublas -lcudart -lstdc++    -Wl,-z,relro -gdwarf-2 -g3 -g  
-o sched_policies/simple_cpu_gpu_sched simple_cpu_gpu_sched.o  
../src/libstarpu-1.2.la -lhwloc -lrt -lcusparse -lrt -lm -lpthread  
libtool: link: gcc-7 -Wall -DSTARPU_OPENCL_DATADIR=/usr/share/starpu/opencl 
-DCL_USE_DEPRECATED_OPENCL_1_1_APIS -Wall -Werror=implicit 
-Werror=implicit-function-declaration -Wno-unused -O3 -g -O2 
-fdebug-prefix-map=/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -gdwarf-2 -g3 -g 
-Wl,-z -Wl,relro -gdwarf-2 -g3 -g -o sched_policies/.libs/simple_cpu_gpu_sched 
simple_cpu_gpu_sched.o  -lOpenCL -lcublas -lcudart -lstdc++ 
../src/.libs/libstarpu-1.2.so -lhwloc -lcusparse -lrt -lm -lpthread
gfortran-7  -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg=. 
-fstack-protector-strong -c -o starpu_mod.o '../../'include/starpu_mod.f90
gfortran-7  -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg=. 
-fstack-protector-strong -c -o init_01.o `test -f 'fortran90/init_01.f90' || 
echo '../../tests/'`fortran90/init_01.f90
/bin/bash ../libtool  --tag=FC   --mode=link gfortran-7  -g -O2 
-fdebug-prefix-map=/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg=. 
-fstack-protector-strong -lOpenCL -lcudart -lcublas -lcudart -lstdc++    
-Wl,-z,relro -gdwarf-2 -g3 -g  -o fortran90/init_01 starpu_mod.o init_01.o  
../src/libstarpu-1.2.la -lhwloc -lrt -lcusparse -lrt -lm -lpthread  
libtool: link: gfortran-7 -g -O2 
-fdebug-prefix-map=/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg=. 
-fstack-protector-strong -Wl,-z -Wl,relro -gdwarf-2 -g3 -g -o 
fortran90/.libs/init_01 starpu_mod.o init_01.o  -lOpenCL -lcublas -lcudart 
-lstdc++ ../src/.libs/libstarpu-1.2.so -lhwloc -lcusparse -lrt -lm -lpthread
make[4]: Leaving directory '/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build/tests'
make[3]: Leaving directory '/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build/tests'
make[2]: Leaving directory '/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build/tests'
Making all in doc
make[2]: Entering directory '/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build/doc'
Making all in doxygen
make[3]: Entering directory 
'/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build/doc/doxygen'
warning: Tag `SYMBOL_CACHE_SIZE' at line 370 of file 
`../../../doc/doxygen/doxygen.cfg' has become obsolete.
         To avoid this warning please remove this line from your configuration 
file or upgrade it using "doxygen -u"
warning: Tag `XML_SCHEMA' at line 1507 of file 
`../../../doc/doxygen/doxygen.cfg' has become obsolete.
         To avoid this warning please remove this line from your configuration 
file or upgrade it using "doxygen -u"
warning: Tag `XML_DTD' at line 1513 of file `../../../doc/doxygen/doxygen.cfg' 
has become obsolete.
         To avoid this warning please remove this line from your configuration 
file or upgrade it using "doxygen -u"
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/api/codelet_and_tasks.doxy:673:
 warning: explicit link request to 'STARPU_TASK_TYPE_INTERNAL' could not be 
resolved
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/api/codelet_and_tasks.doxy:675:
 warning: explicit link request to 'STARPU_TASK_TYPE_NORMAL' could not be 
resolved
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/api/data_management.doxy:391:
 warning: explicit link request to 'STARPU_ACQUIRE_NO_NODE_LOCK_ALL' could not 
be resolved
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/include/starpu_stdlib.h:59: warning: 
The following parameters of starpu_memory_allocate(unsigned node, size_t size, 
int flags) are not documented:
  parameter 'flags'
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/000_introduction.doxy:25:
 warning: included file foreword.html is not found. Check your EXAMPLE_PATH
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/000_introduction.doxy:306:
 warning: unable to resolve reference to `ModuleDocumentation' for \ref command
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/000_introduction.doxy:307:
 warning: unable to resolve reference to `FileDocumentation' for \ref command
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/000_introduction.doxy:25:
 warning: included file foreword.html is not found. Check your EXAMPLE_PATH
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/000_introduction.doxy:306:
 warning: unable to resolve reference to `ModuleDocumentation' for \ref command
/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/doc/doxygen/chapters/000_introduction.doxy:307:
 warning: unable to resolve reference to `FileDocumentation' for \ref command
pdflatex latex/refman.tex
mv latex/refman.pdf ../../doc/doxygen/starpu.pdf
mv: cannot stat 'latex/refman.pdf': No such file or directory
make[3]: *** [Makefile:949: ../../doc/doxygen/starpu.pdf] Error 1
make[3]: Leaving directory 
'/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build/doc/doxygen'
make[2]: *** [Makefile:590: all-recursive] Error 1
make[2]: Leaving directory '/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build/doc'
make[1]: *** [Makefile:1002: all-recursive] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/starpu-contrib-1.2.6+dfsg/build'
dh_auto_build: cd build && make -j1 returned exit code 2
make: *** [debian/rules:52: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------

Full build logs available here:

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

In addition to the PDF not being generated, there is a violation of
Debian Policy 4.6 (error trapping in Makefiles) here:

https://www.debian.org/doc/debian-policy/ch-source.html#error-trapping-in-makefiles

In this case, a well written Makefile should have stopped as soon as
the PDF is not generated correctly. Instead, it continued and tried to
"mv" a file which does not exist.

I've traced this to lines 303 to 310 in doc/doxygen/Makefile.am. One way to fix 
this
would be to use && as suggested by Debian Policy. Another way to fix it would be
to move the whole pdf generation stuff to a simple shell script and just call 
the script
from the Makefile.

Thanks.

Reply via email to