[MDEV-26136] Build fails when using gcc installed by homebrew Created: 2021-07-13 Updated: 2022-04-18 Resolved: 2022-04-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.6 |
| Fix Version/s: | 10.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Kento Takeuchi | Assignee: | Daniel Black |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
macOS BigSur 11.4 |
||
| Description |
|
Build fails when using gcc installed by homebrew. Environments:
Build:
https://opensource.apple.com/source/xnu/xnu-4570.41.2/bsd/sys/_types/_timeval.h.auto.html The reason is that the data type of the tv_usec member of the timeval structure used by gcc installed by homebrew is __darwin_suseconds_t, and __darwin_suseconds_t is declared as __int32_t. |
| Comments |
| Comment by Marko Mäkelä [ 2021-09-10 ] | ||||
|
For the record, a similar warning is reported when building on IBM AIX:
| ||||
| Comment by Daniel Black [ 2022-04-01 ] | ||||
|
shulga, kento-takeuchi, I'm fairly sure https://github.com/MariaDB/server/pull/2079 is right, however if you could test it that would be appreciated. | ||||
| Comment by Daniel Black [ 2022-04-04 ] | ||||
|
Fix pushed. Thanks kento-takeuchi for the bug report. Please reopen if it doesn't work for some reason. | ||||
| Comment by Kento Takeuchi [ 2022-04-11 ] | ||||
|
danblack Thank you. I'll check it in my machine | ||||
| Comment by Kento Takeuchi [ 2022-04-18 ] | ||||
|
danblack I confirmed this fix and build completes successfully. Thank you! | ||||
| Comment by Daniel Black [ 2022-04-18 ] | ||||
|
kento-takeuchi thanks for confirming. Happy compilations. |