[MDEV-22862] compilation failure on centos74-aarch64 Created: 2020-06-10 Updated: 2020-06-13 Resolved: 2020-06-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.5 |
| Fix Version/s: | 10.5.4 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Sergei Golubchik | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
|
| Comments |
| Comment by Marko Mäkelä [ 2020-06-11 ] | ||||||||||||||||||||
|
I think that we should primarily address this by trying to update the compiler, like we recently did on POWER. If that is really impossible, we could add some preprocessor magic to lower the optimization level or to simplify some code. The build failure is most likely related to the increased the use of inline functions that access std::atomic data, in | ||||||||||||||||||||
| Comment by Daniel Bartholomew [ 2020-06-11 ] | ||||||||||||||||||||
|
marko and serg Which gcc version should I go with? We don't want to introduce new incompatibilities, but this might be a chance to have at least one builder with a much more modern toolchain. For reference, on the centos74-aarch64-build VM we currently have: gcc 4.8.5-16, binutils 2.27-11, and cmake 3.14.0 | ||||||||||||||||||||
| Comment by Daniel Bartholomew [ 2020-06-11 ] | ||||||||||||||||||||
|
Tried a test build with cmake . -DBUILD_CONFIG=mysql_release -DCMAKE_COMMAND_DEP=cmake -DRPM=centos74 -O2, but that didn't work. Same error as in the description. I'll try some builds editing out a workaround to see if that helps, and I'll also try with a newer gcc. | ||||||||||||||||||||
| Comment by Daniel Bartholomew [ 2020-06-11 ] | ||||||||||||||||||||
|
When using gcc 4.9.4, the main part of the build completes, but the cpack packaging step fails with the following:
| ||||||||||||||||||||
| Comment by Daniel Bartholomew [ 2020-06-12 ] | ||||||||||||||||||||
|
Looks like the errors are fixed in the latest pushes into 10.5: https://buildbot.askmonty.org/buildbot/builders/kvm-rpm-centos74-aarch64/builds/8265 | ||||||||||||||||||||
| Comment by Daniel Bartholomew [ 2020-06-12 ] | ||||||||||||||||||||
|
I'm guessing this commit from marko is what fixed it. | ||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-06-13 ] | ||||||||||||||||||||
|
Yes, it seems that
|