New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest Galera 4 (26.4.6) and Galera 3 (25.3.31) fail to build on arm64: CRC32 illegal instruction #582
Comments
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 Could you elaborate on any peculiarities of the environment that may come to mind? |
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. Same goes for Galera 4: 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! |
…ept to run the hardware unit test when not supported. Refs: codership/galera#582 Gbp-Pq: Name arm-crc32-fix.patch
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.
The text was updated successfully, but these errors were encountered: