[MDEV-18513] Compile fails on Mac OS X 10.13 Created: 2019-02-08  Updated: 2021-03-19

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.1, 10.2, 10.3, 10.4
Fix Version/s: 10.1

Type: Bug Priority: Major
Reporter: Rasmus Johansson (Inactive) Assignee: Sergei Petrunia
Resolution: Unresolved Votes: 1
Labels: compile, mac
Environment:

Mac OS X 10.13



 Description   

Compile fails on Mac OS X 10.13. Example from building 10.4:

/sql/item_func.cc:4235:7: error: use of undeclared identifier 'debug_sync_set_action'



 Comments   
Comment by Otto Kekäläinen [ 2020-03-19 ]

Here is how 10.4 for Mac OS X is build on Homebrew: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mariadb.rb

Should be quite easy to fix. While at it, please also ask dbart to install proper build dependencies on the Mac OS X builder so that it would at least start, and then ensure that the build completes. Now build fails as cmake is missing: http://buildbot.askmonty.org/buildbot/builders/mac-1012-pkg/builds/4656/steps/compile/logs/stdio

Comment by Daniel Bartholomew [ 2020-03-20 ]

Some notes:

  1. I've fixed the ownership of the various homebrew directories (`/usr/local/Homebrew/`, `/usr/local/Cellar`, and other dirs) on the mac-1012 builder so that the admin user can update and install packages via the `brew` command
  2. I've run `brew update` and `brew upgrade` to update all installed homebrew packages
  3. cmake is installed (and has been for years) at `/usr/local/bin/cmake`, but for some reason buildbot's path according to the build log linked in Otto's comment is only showing "PATH=/usr/bin:/bin", it needs to be set to "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin", but not sure what needs to be done to enable that as the buildbot user has `/usr/local/bin` in their path by default
Generated at Thu Feb 08 08:44:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.