Skip to content

Feature/macos arm#44

Merged
olivhoenen merged 2 commits intoiterorganization:developfrom
paulotex:feature/macos-arm
Mar 30, 2026
Merged

Feature/macos arm#44
olivhoenen merged 2 commits intoiterorganization:developfrom
paulotex:feature/macos-arm

Conversation

@paulotex
Copy link
Copy Markdown
Contributor

Adding UDA (and capnp) support for macos-arm wheel.

MACOSX_DEPLOYMENT_TARGET = "14.0"
AL_BACKEND_HDF5 = { env = "AL_BACKEND_HDF5", default = "ON" }
AL_BACKEND_UDA = { env = "AL_BACKEND_UDA", default = "ON" }
AL_BACKEND_MDSPLUS = { env = "AL_BACKEND_MDSPLUS", default = "OFF" }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are MDSplus packages for Macs running on Intel silicon: https://www.mdsplus.org/index.php/Latest_Macintosh_Distributions
Could these easily be dropped in?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It says that the apple silicon port is not complete, so I left it out for now.

brew update >&2;
brew install cmake pkg-config boost hdf5 libomp ninja fmt spdlog libxml2 openssl capnp libmemcached >&2;
brew install cmake pkg-config boost hdf5 libomp ninja fmt spdlog libxml2 openssl libmemcached >&2;
git clone -b master https://github.com/capnproto/capnproto.git >&2 &&
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The master branch is not the same as the latest release. Is this what we want to do? What was wrong with the homebrew install? (https://formulae.brew.sh/formula/capnp).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not able to remove the homebrew dependencies from the wheel. The other libs worked fine, but capnp had some deps left over after delocate, that make the wheel fail. I can revisit this again...

Copy link
Copy Markdown
Contributor Author

@paulotex paulotex Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried again using capnp from brew, the error I get when trying to delocate is:

ERROR:delocate.libsana:
@rpath/libkj.1.3.0.dylib not found:
  Needed by: /private/var/folders/7n/qzhf5d250mdck5bq8wmqy_fh0000gn/T/tmp1x_w1hep/wheel/imas_core.libs/libcapnp.1.3.0.dylib
  Search path:

So somehow the brew libs used by capnp could not be delocated properly. There are probably ways to fix this, but compiling capnp from scratch takes one sec, so I went that route.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, then let's not spend more time on this at the moment.

@olivhoenen olivhoenen merged commit a384774 into iterorganization:develop Mar 30, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants