[Debian-med-packaging] Bug#983948: opensurgsim: ftbfs with -march=x86-64-v3

Matthias Klose doko at debian.org
Wed Mar 3 15:39:18 GMT 2021


Package: src:opensurgsim
Version: 0.7.0-11
Severity: minor
User: debian-gcc at lists.debian.org
Usertags: ftbfs-x86-64-v3

Starting with LLVM 12 and GCC 11 (and backported to gcc-10 for Debian), 
GCC introduces optimizations for new micro-architecture levels from
the x86-64 psABI.  Filing these bug reports for packages building with
the current level (x86-64), but not with x86-64-v3.

To reproduce these issues, append -march=x86-64-v3 to the compiler
flags (CFLAGS, CXXFLAGS, ...).  You also need hardware supporting these.
The easiest way is to call the dynamic linker in glibc 2.33 like
  /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 --help
Otherwise look at the flags in /proc/cpuinfo and compare these with
those from table 3.1 in the System V Application Binary Interface doc:
https://gitlab.com/x86-psABIs/x86-64-ABI/-/wikis/x86-64-psABI

Please don't upload a package setting these flags by default.  The
x86-64 baseline is still unchanged.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc10-v3/opensurgsim_0.7.0-11_unstable_gcc10-v3.log
The last lines of the build log are at the end of this report.

[...]
[----------] 7 tests from AabbTreeTests
[ RUN      ] AabbTreeTests.InitTest
[       OK ] AabbTreeTests.InitTest (0 ms)
[ RUN      ] AabbTreeTests.AddTest
[       OK ] AabbTreeTests.AddTest (0 ms)
[ RUN      ] AabbTreeTests.BuildTest
[       OK ] AabbTreeTests.BuildTest (505 ms)
[ RUN      ] AabbTreeTests.BatchBuildTest
[       OK ] AabbTreeTests.BatchBuildTest (503 ms)
[ RUN      ] AabbTreeTests.EasyIntersectionTest
[       OK ] AabbTreeTests.EasyIntersectionTest (0 ms)
[ RUN      ] AabbTreeTests.MeshIntersectionTest
[       OK ] AabbTreeTests.MeshIntersectionTest (503 ms)
[ RUN      ] AabbTreeTests.SpatialJoinTest
[       OK ] AabbTreeTests.SpatialJoinTest (504 ms)
[----------] 7 tests from AabbTreeTests (2015 ms total)

[----------] 2 tests from BufferedValueTests
[ RUN      ] BufferedValueTests.InitTest
[       OK ] BufferedValueTests.InitTest (0 ms)
[ RUN      ] BufferedValueTests.SafeAndUnsafeGettersTest
[       OK ] BufferedValueTests.SafeAndUnsafeGettersTest (0 ms)
[----------] 2 tests from BufferedValueTests (0 ms total)

[----------] 12 tests from DataGroupTests
[ RUN      ] DataGroupTests.CanConstruct
[       OK ] DataGroupTests.CanConstruct (0 ms)
[ RUN      ] DataGroupTests.CanCreateShared
[       OK ] DataGroupTests.CanCreateShared (0 ms)
[ RUN      ] DataGroupTests.Uninitialized
[       OK ] DataGroupTests.Uninitialized (0 ms)
[ RUN      ] DataGroupTests.PutName
[       OK ] DataGroupTests.PutName (0 ms)
[ RUN      ] DataGroupTests.GetName
[       OK ] DataGroupTests.GetName (0 ms)
[ RUN      ] DataGroupTests.ResetAll
[       OK ] DataGroupTests.ResetAll (0 ms)
[ RUN      ] DataGroupTests.ResetOne
[       OK ] DataGroupTests.ResetOne (0 ms)
[ RUN      ] DataGroupTests.CopyConstruction
[       OK ] DataGroupTests.CopyConstruction (1 ms)
[ RUN      ] DataGroupTests.Assignment
SurgSimDataStructuresTest: /usr/include/eigen3/Eigen/src/Core/DenseStorage.h:128: Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 32>::plain_array() [with T = double; int Size = 16; int MatrixOrArrayOptions = 0]: Assertion `(internal::UIntPtr(eigen_unaligned_array_assert_workaround_gcc47(array)) & (31)) == 0 && "this assertion is explained here: " "http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html" " **** READ THIS WEB PAGE !!! ****"' failed.


14% tests passed, 12 tests failed out of 14

Total Test time (real) =   2.03 sec

The following tests FAILED:
	  1 - SurgSimBlocksTest (Child aborted)
	  2 - SurgSimCollisionTest (Child aborted)
	  3 - SurgSimDataStructuresTest (Child aborted)
	  4 - SurgSimDeviceFiltersTest (Child aborted)
	  5 - IdentityPoseDeviceTest (Child aborted)
	  8 - ReplayPoseDeviceTest (Child aborted)
	  9 - SurgSimDevicesTest (Child aborted)
	 10 - SurgSimFrameworkTest (Child aborted)
	 11 - SurgSimInputTest (Child aborted)
	 12 - SurgSimMathTest (Child aborted)
	 13 - SurgSimParticlesTest (Child aborted)
	 14 - SurgSimPhysicsTest (Child aborted)
Errors while running CTest
make[2]: *** [Makefile:140: test] Error 8
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_test: error: cd obj-x86_64-linux-gnu && make -j4 test ARGS\+=-j4 returned exit code 2
make[1]: *** [debian/rules:47: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list