[debian-mysql] Bug#1006702: mariadb-10.6: Baseline violation on at least i386 via CXXFLAGS

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Mar 2 21:30:15 GMT 2022


Source: mariadb-10.6
Version: 1:10.6.7-2
Severity: serious
Justification: baseline violation

Hello!

The file mysys/CMakeFiles.txt overrides the compiler machine flags [1] and
causes mariadb-10.6 to be build with the CPU baseline of the buildd which
results in binaries that will crash on the target platform such as i386.

As can be seen in the build log for i386, the code is being built with
"-msse4.2 -mpclmul" with at least SSE 4.2 which is not available before
Intel Core i7, according to Wikipedia [3].

On ppc64, the code is being built with VSX, Crypto and POWER8 vector instructions
which are all not available on the POWER5 baseline that the ppc64 port in
Debian uses.

I suggest patching out the whole section in mysys/CMakeFiles.txt which may
also help fixing testsuite failures on some architectures.

Thanks,
Adrian

> [1] https://salsa.debian.org/mariadb-team/mariadb-server/-/blob/debian/latest/mysys/CMakeLists.txt#L62
> [2] https://buildd.debian.org/status/fetch.php?pkg=mariadb-10.6&arch=i386&ver=1%3A10.6.7-2&stamp=1646205322&raw=0
> [3] https://en.wikipedia.org/wiki/SSE4#SSE4.2

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the pkg-mysql-maint mailing list