[MDEV-14541] 10.2.11 hits gcc bug and does not compile on ubuntu16 arm64 Created: 2017-11-30 Updated: 2018-05-08 Resolved: 2018-02-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Mroonga |
| Affects Version/s: | 10.2.11 |
| Fix Version/s: | 10.1.32, 10.2.14, 10.3.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Thompson (Inactive) | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Epic Link: | arm64 optimization | ||||||||
| Description |
|
Tried to build 10.2.11 from source tag mariadb-10.2.11 and this hits a gcc compiler bug on ubuntu16. This does not occur on centos 7. I also re-verified that mariadb-10.2.10 still builds fine so this appears to be a gcc 5 bug in conjunction with a code change in 10.2.11. This is one of the build failures (will attach the gcc dump file too):
|
| Comments |
| Comment by Sergei Golubchik [ 2017-11-30 ] | |||||||||||||||||||
|
Does it happen in 10.1 too? Groonga sources are mostly the same there. | |||||||||||||||||||
| Comment by David Thompson (Inactive) [ 2017-11-30 ] | |||||||||||||||||||
|
I didn't check that specifically but it builds fine with 10.2.10 so we can conclude the same i think. Workaround for now is to build without mroonga:
This compiles at least. | |||||||||||||||||||
| Comment by Daniel Bartholomew [ 2017-11-30 ] | |||||||||||||||||||
|
Adding this so we don't forget: To compile with autobake-deb.sh, first do the following:
| |||||||||||||||||||
| Comment by Sandeep sethia [ 2017-12-04 ] | |||||||||||||||||||
|
I don’t see any crash on Ubuntu for tag u suggested Details 1)root@ubuntu:/ssd/sandeep/server/BUILD# git branch
2) Compiler used: gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. 3) cmake -DCMAKE_INSTALL_PREFIX=/run1/sandeep/mariadb_v7 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/ssd/sandeep ../ 4) root@ubuntu:/run1/sandeep/mariadb_v7/bin# ./mysqld --help ./mysqld Ver 10.2.11-MariaDB for Linux on aarch64 (Source distribution) Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Starts the MariaDB database server. Usage: ./mysqld [OPTIONS] For more help options (several pages), use mysqld --verbose --help. | |||||||||||||||||||
| Comment by Sandeep sethia [ 2017-12-14 ] | |||||||||||||||||||
|
David/Sergey , Do you still see the issue with the above commands i shared? Can you share your cmake command? | |||||||||||||||||||
| Comment by Sergey Vojtovich [ 2017-12-15 ] | |||||||||||||||||||
|
I confirm I can still reproduce this on 10.2 revision 0e69d0b094365c36d01180d10fcc6534143a25b5.
gcc-5.real (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609 | |||||||||||||||||||
| Comment by David Thompson (Inactive) [ 2018-02-02 ] | |||||||||||||||||||
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882417 fixed in gcc7 ? Also seems to indicate lowering -O3 to -O2 might workaround | |||||||||||||||||||
| Comment by Sergey Vojtovich [ 2018-02-16 ] | |||||||||||||||||||
|
Pushed workaround to 10.1:
|