Bug#995005: xsimd: Built with -march=native

James Cowgill jcowgill at debian.org
Fri Sep 24 17:06:50 BST 2021


Source: xsimd
Version: 7.5.0-1
Severity: serious

Hi,

>From the i386 build log:

...
[  3%] Building CXX object test/CMakeFiles/test_xsimd.dir/main.cpp.o
cd /<<PKGBUILDDIR>>/obj-i686-linux-gnu/test && /usr/bin/c++
-I/<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -march=native -g -fPIC -Wunused-parameter -Wextra
-Wreorder -std=c++11 -o CMakeFiles/test_xsimd.dir/main.cpp.o -c
/<<PKGBUILDDIR>>/test/main.cpp
...

You must not build Debian packages with the -march=native build flag
because then the package will only work on the same CPU architecture as
the build machine.

I would guess that amd64 is also affected (although there is no build
log so I can't check).

Thanks,
James



More information about the debian-science-maintainers mailing list