[MDEV-23887] build failure on MacOS Created: 2020-10-05 Updated: 2022-11-06 Resolved: 2020-10-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.1.48, 10.2.35, 10.3.26, 10.4.16, 10.5.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Dmitry Shulga | Assignee: | Daniel Black |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Building MariaDB server of any version starting from 10.1 fails on MacOS. Unsupported linker option is added by the following cmake macros
that was introduced by the commit
|
| Comments |
| Comment by Daniel Black [ 2020-10-05 ] | ||||||||||||||||||
|
Can you attach CMakeCache.txt CMakeFiles/CMakeError.log CMakeFiles/CMakeOutput.log? What link options are used cmake --build . --verbose ? | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-05 ] | ||||||||||||||||||
|
CMAKE_REQUIRED_LINK_OPTIONS was introduced only recently. The check has to be rewritten to work without it | ||||||||||||||||||
| Comment by Daniel Black [ 2020-10-06 ] | ||||||||||||||||||
|
Yes, 3.14.0. Check has been reworked to support all versions. Thanks shulga for report, review and testing. | ||||||||||||||||||
| Comment by Daniel Black [ 2020-10-06 ] | ||||||||||||||||||
|
kevg, you where crazy enough to review my original 7473e1841c63 and suggested the CHECK_LINKER_FLAGS in 3.18.0. Can you review this fix please? | ||||||||||||||||||
| Comment by Daniel Black [ 2020-10-06 ] | ||||||||||||||||||
|
https://cmake.org/cmake/help/latest/release/3.14.html#commands is the minimum version based on 'The try_compile() and try_run() commands gained a new LINK_OPTIONS option.'
So effectively the flag wasn't being tested | ||||||||||||||||||
| Comment by Sergei Golubchik [ 2020-10-06 ] | ||||||||||||||||||
|
that's way too complex. Just add put the flag into CMAKE_REQUIRED_LIBRARIES instead of CMAKE_REQUIRED_LINK_OPTIONS. This worked for me both on 2.8.8 and on 3.16.5 | ||||||||||||||||||
| Comment by Daniel Black [ 2020-10-07 ] | ||||||||||||||||||
|
ok done - bb-10.1-danielblack- Works for me on 3.11.4 and 3.17.4 |