Package: src:mrpt
Version: 1:1.3.0-1.1
User: sanv...@debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=cmake --parallel
   dh_testdir -i -O--buildsystem=cmake -O--parallel
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- -DCMAKE_INSTALL_PREFIX="/<<PKGBUILDDIR>>/debian/" 
-DCMAKE_INSTALL_LIBDIR="lib/x86_64-linux-gnu" -DCMAKE_VERBOSE_MAKEFILE=ON 
-DCMAKE_BUILD_TYPE=Release -DCMAKE_HOST="x86_64-linux-gnu" 
-DCMAKE_BUILD="x86_64-linux-gnu" -DCMAKE_MRPT_USE_DEB_POSTFIXS="1" 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_C_FLAGS_RELEASE="-g -O2 
-fstack-protector-strong -Wformat -Werror=format-security" 
-DCMAKE_CXX_FLAGS_RELEASE="-g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="-Wl,-z,relro 
-Wl,-z,now" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-Wl,-z,relro -Wl,-z,now" 
-DMRPT_AUTODETECT_SSE=OFF -DDISABLE_SSE2=OFF -DDISABLE_SSE3=ON 
-DDISABLE_SSE4_1=ON -DDISABLE_SSE4_2=ON  -DDISABLE_SSE4_A=ON 
        mkdir -p obj-x86_64-linux-gnu
        cd obj-x86_64-linux-gnu
        cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON 
-DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc 
-DCMAKE_INSTALL_LOCALSTATEDIR=/var 
-DCMAKE_INSTALL_PREFIX=/<<PKGBUILDDIR>>/debian/ 
-DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_VERBOSE_MAKEFILE=ON 
-DCMAKE_BUILD_TYPE=Release -DCMAKE_HOST=x86_64-linux-gnu 
-DCMAKE_BUILD=x86_64-linux-gnu -DCMAKE_MRPT_USE_DEB_POSTFIXS=1 
-DCMAKE_VERBOSE_MAKEFILE=ON "-DCMAKE_C_FLAGS_RELEASE=-g -O2 
-fstack-protector-strong -Wformat -Werror=format-security" 
"-DCMAKE_CXX_FLAGS_RELEASE=-g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security" "-DCMAKE_SHARED_LINKER_FLAGS_RELEASE=-Wl,-z,relro 
-Wl,-z,now" "-DCMAKE_EXE_LINKER_FLAGS_RELEASE=-Wl,-z,relro -Wl,-z,now" 
-DMRPT_AUTODETECT_SSE=OFF -DDISABLE_SSE2=OFF -DDISABLE_SSE3=ON 
-DDISABLE_SSE4_1=ON -DDISABLE_SSE4_2=ON -DDISABLE_SSE4_A=ON
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc

[... snipped ...]

[       OK ] SerializeTestBase.WriteReadToMem (0 ms)
[ RUN      ] SerializeTestBase.CopyOperator
[       OK ] SerializeTestBase.CopyOperator (0 ms)
[ RUN      ] SerializeTestBase.CArray
[       OK ] SerializeTestBase.CArray (0 ms)
[ RUN      ] SerializeTestBase.STL_serialization
[       OK ] SerializeTestBase.STL_serialization (2 ms)
[ RUN      ] SerializeTestBase.CastSmartPointers
[       OK ] SerializeTestBase.CastSmartPointers (0 ms)
[----------] 6 tests from SerializeTestBase (28 ms total)

[----------] Global test environment tear-down
[==========] 139 tests from 24 test cases ran. (8232 ms total)
[  PASSED  ] 132 tests.
[  FAILED  ] 7 tests, listed below:
[  FAILED  ] Pose3DQuatPDFGaussTests.CompositionJacobian
[  FAILED  ] Pose3DQuatPDFGaussTests.Composition
[  FAILED  ] Pose3DQuatPDFGaussTests.InverseComposition
[  FAILED  ] Pose3DQuatPDFGaussTests.ChangeCoordsRef
[  FAILED  ] Pose3DPDFGaussTests.CompositionJacobian
[  FAILED  ] Pose3DPDFGaussTests.AllOperators
[  FAILED  ] Pose3DPDFGaussTests.ChangeCoordsRef

 7 FAILED TESTS
tests/CMakeFiles/run_tests_mrpt_base.dir/build.make:60: recipe for target 
'tests/CMakeFiles/run_tests_mrpt_base' failed
make[4]: *** [tests/CMakeFiles/run_tests_mrpt_base] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
CMakeFiles/Makefile2:5463: recipe for target 
'tests/CMakeFiles/run_tests_mrpt_base.dir/all' failed
make[3]: *** [tests/CMakeFiles/run_tests_mrpt_base.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
CMakeFiles/Makefile2:5832: recipe for target 'tests/CMakeFiles/test.dir/rule' 
failed
make[2]: *** [tests/CMakeFiles/test.dir/rule] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
Makefile:1695: recipe for target 'test' failed
make[1]: *** [test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_test: make -j1 test ARGS+=-j1 returned exit code 2
        cd /<<PKGBUILDDIR>>
debian/rules:44: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.

Reply via email to