Package: src:lua-torch-torch7
Version: 0~20170926-g89ede3b-4
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules build-arch
dh build-arch --buildsystem=lua --with=lua
   dh_update_autotools_config -a -O--buildsystem=lua
   dh_autoreconf -a -O--buildsystem=lua
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ln -s . torch
# configure libluaT.so
dh_auto_configure --buildsystem=cmake --builddirectory=luaT.build -- \
        ../lib/luaT -DLUA=/usr/bin/lua5.1 -DLUA_INCDIR=/usr/include/lua5.1 
-DLUA_LIBDIR=/usr/lib -DLUA_BINDIR=/usr/bin -DLIBDIR=/usr/lib -DLUALIB=lua5.1 
-DTorch_INSTALL_BIN_SUBDIR=bin/ 
-DTorch_INSTALL_LIB_SUBDIR=lib/x86_64-linux-gnu/ 
-DTorch_INSTALL_INCLUDE_SUBDIR=include/ -DCMAKE_VERBOSE_MAKEFILE=ON 
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DWITH_BLAS=generic \
        -DTorch_INSTALL_CMAKE_SUBDIR=/usr/share/libtorch-luat-dev/
        cd luaT.build && cmake -DCMAKE_INSTALL_PREFIX=/usr 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None 
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var 
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run 
"-GUnix Makefiles" ../lib/luaT -DLUA=/usr/bin/lua5.1 
-DLUA_INCDIR=/usr/include/lua5.1 -DLUA_LIBDIR=/usr/lib -DLUA_BINDIR=/usr/bin 
-DLIBDIR=/usr/lib -DLUALIB=lua5.1 -DTorch_INSTALL_BIN_SUBDIR=bin/ 
-DTorch_INSTALL_LIB_SUBDIR=lib/x86_64-linux-gnu/ 
-DTorch_INSTALL_INCLUDE_SUBDIR=include/ -DCMAKE_VERBOSE_MAKEFILE=ON 
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DWITH_BLAS=generic 
-DTorch_INSTALL_CMAKE_SUBDIR=/usr/share/libtorch-luat-dev/ ..
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0

[... snipped ...]

[ 76%] Building C object CMakeFiles/torch.dir/Storage.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/Storage.c.o   -c "/<<PKGBUILDDIR>>/Storage.c"
[ 79%] Building C object CMakeFiles/torch.dir/Tensor.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/Tensor.c.o   -c "/<<PKGBUILDDIR>>/Tensor.c"
[ 82%] Building C object CMakeFiles/torch.dir/Timer.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/Timer.c.o   -c "/<<PKGBUILDDIR>>/Timer.c"
[ 84%] Building C object CMakeFiles/torch.dir/utils.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/utils.c.o   -c "/<<PKGBUILDDIR>>/utils.c"
[ 87%] Building C object CMakeFiles/torch.dir/init.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/init.c.o   -c "/<<PKGBUILDDIR>>/init.c"
[ 89%] Building C object CMakeFiles/torch.dir/TensorOperator.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/TensorOperator.c.o   -c 
"/<<PKGBUILDDIR>>/TensorOperator.c"
[ 92%] Building C object CMakeFiles/torch.dir/TensorMath.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/TensorMath.c.o   -c 
"/<<PKGBUILDDIR>>/luaT.build/TensorMath.c"
[ 94%] Building C object CMakeFiles/torch.dir/random.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/random.c.o   -c 
"/<<PKGBUILDDIR>>/luaT.build/random.c"
[ 97%] Building C object CMakeFiles/torch.dir/Generator.c.o
/usr/bin/cc -Dtorch_EXPORTS -I"/<<PKGBUILDDIR>>/lib/luaT" 
-I"/<<PKGBUILDDIR>>/luaT.build/lib/TH" -I"/<<PKGBUILDDIR>>/lib/TH" 
-I/usr/include/lua5.1 -I"/<<PKGBUILDDIR>>/luaT.build" -I"/<<PKGBUILDDIR>>"  -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 
-Werror=implicit-function-declaration -Werror=format -fopenmp -O3 -DNDEBUG 
-fPIC   -o CMakeFiles/torch.dir/Generator.c.o   -c 
"/<<PKGBUILDDIR>>/Generator.c"
[100%] Linking C shared module libtorch.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/torch.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time 
-D_FORTIFY_SOURCE=2 -Werror=implicit-function-declaration -Werror=format 
-fopenmp -O3 -DNDEBUG -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -shared  -o 
libtorch.so CMakeFiles/torch.dir/DiskFile.c.o CMakeFiles/torch.dir/File.c.o 
CMakeFiles/torch.dir/MemoryFile.c.o CMakeFiles/torch.dir/PipeFile.c.o 
CMakeFiles/torch.dir/Storage.c.o CMakeFiles/torch.dir/Tensor.c.o 
CMakeFiles/torch.dir/Timer.c.o CMakeFiles/torch.dir/utils.c.o 
CMakeFiles/torch.dir/init.c.o CMakeFiles/torch.dir/TensorOperator.c.o 
CMakeFiles/torch.dir/TensorMath.c.o CMakeFiles/torch.dir/random.c.o 
CMakeFiles/torch.dir/Generator.c.o 
-Wl,-rpath,"/<<PKGBUILDDIR>>/luaT.build/lib/luaT:/<<PKGBUILDDIR>>/luaT.build/lib/TH:"
 lib/luaT/libluaT.so.0 lib/TH/libTH.so.0 -llua5.1 -lblas -llapack -lrt -lm 
make[4]: Leaving directory '/<<PKGBUILDDIR>>/luaT.build'
[100%] Built target torch
make[3]: Leaving directory '/<<PKGBUILDDIR>>/luaT.build'
/usr/bin/cmake -E cmake_progress_start "/<<PKGBUILDDIR>>/luaT.build/CMakeFiles" 0
make[2]: Leaving directory '/<<PKGBUILDDIR>>/luaT.build'
# build the rest lua stuff with dh-lua
dh_auto_build --buildsystem=lua
        make --no-print-directory -f 
/usr/share/dh-lua/make/dh-lua.Makefile.multiple build

Making target build for debian/lua5.1.dh-lua.conf
libtool --silent --tag=CC --mode=compile cc -c -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr//include/lua5.1 
-I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/generic -I/usr/include/lua5.1 
-I/<<PKGBUILDDIR>>/lib/luaT -I/<<PKGBUILDDIR>>/lib/TH 
-I/<<PKGBUILDDIR>>/TH.build/ -Wall -Wextra -o 
/<<PKGBUILDDIR>>/5.1-torch-torch7/DiskFile.lo DiskFile.c 
X/<<PKGBUILDDIR>>/5.1-torch-torch7/DiskFile.lo
libtool: warning: libobj name '/<<PKGBUILDDIR>>/5.1-torch-torch7/DiskFile.lo' 
may not contain shell special characters.
In file included from general.h:9,
                 from DiskFile.c:1:
/<<PKGBUILDDIR>>/lib/TH/TH.h:4:10: fatal error: THGeneral.h: No such file or 
directory
 #include "THGeneral.h"
          ^~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/share/dh-lua/make/dh-lua.Makefile.single:436: 
/<<PKGBUILDDIR>>/5.1-torch-torch7/DiskFile.lo] Error 1
make[2]: *** [/usr/share/dh-lua/make/dh-lua.Makefile.multiple:12: build] Error 1
dh_auto_build: make --no-print-directory -f 
/usr/share/dh-lua/make/dh-lua.Makefile.multiple build returned exit code 2
make[1]: *** [debian/rules:74: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:43: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------

The build was made with "dpkg-buildpackage -B" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/lua-torch-torch7.html

where you can get a full build log if you need it.

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