Closed ottok closed 3 years ago
I went ahead and uploaded Galera 3 to Debian unstable, and it failed as expected. See https://buildd.debian.org/status/package.php?p=galera-3 -> https://buildd.debian.org/status/fetch.php?pkg=galera-3&arch=arm64&ver=25.3.31-1&stamp=1604344898&raw=0
Please advice.
This looks like a bad CPU capabilities test and should be relatively easy to work around/fix. We will take a look at this asap.
Thanks!
Otto,
I tried this with Sid 20201104 public image on AWS on all three types of arm64 instances and failed to reproduce.
The error itself most likely means that the test for hardware CRC32 support returns true
but attempt to use the corresponding function fails. It looks like a problem with the environment to me. Perhaps the build user or the container does not have sufficient privileges, or hardware CRC32 support is erroneously returned by the kernel.
Could you elaborate on any peculiarities of the environment that may come to mind? Maybe you could get a stacktrace?
As reported above, it is failing both on Launchpad.net builds and on buildd. I am sure they have different hardware. The logs at both Launchpad and Debian buildd are fully public and contain all details of the build environment.
I (or anybody, it's public and free) and upload new builds to Launchpad.net. Is there some debug code you would like me to run at the end of the build to check for hardware stuff?
@ottok this patch should fix the issue: https://gist.github.com/ayurchen/77251795940805f21d4dd53fa04f087e
I applied a modified version of the patch (so that it would apply cleanly) at https://salsa.debian.org/mariadb-team/galera-3/-/commit/cdc1cbba7420246bac4c9455d4492496d3ce5640 for Galera 3.
Launchpad builds passed now:
Same goes for Galera 4: https://salsa.debian.org/mariadb-team/galera-4/-/commit/b20136f3d1f066946d20cddc54355cab8966a19c
So the issue seems indeed to be fixed.
Finally also official Galera 3 build in Debian confirmed this:
https://buildd.debian.org/status/package.php?p=galera-4
Thanks!
While preparing Galera 4 and Galera 3 for upload to Debian, I noticed they failed to build on arm64:
From https://launchpadlibrarian.net/504795654/buildlog_ubuntu-groovy-arm64.galera-4_26.4.6-1~ubuntu20.10.1~1604258955.5df1ff6+master_BUILDING.txt.gz
From https://launchpadlibrarian.net/504795631/buildlog_ubuntu-groovy-arm64.galera-3_25.3.31-1~ubuntu20.10.1~1604258374.f284fcf+master_BUILDING.txt.gz
If you have a quick fix for this, I can hold back the upload to Debian and try to include your fix.