-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS wheel build fails while repairing wheel with delocate.libsana.DelocationError
#28
Comments
In PR #24
and
so I don't follow why
is happening when the llvm omp should be fine. :? We might need @henryiii to give a debugging direction hint later this week. |
Are you setting MACOSX_DEPLOYMENT_TARGET when building? |
No. I'm going to assume that this is just another example of why Wasserstein/scripts/build-wheels-and-upload.sh Lines 5 to 9 in 0a0fdeb
isn't sufficient and #10 should also include migrating the wheel building to something like |
I didn't know what From reading there, my understanding is that the default Given that the current build has a comparatively high target of
I'm going to assume that means that the version of llvm omp in PR #24 built from - name: Checkout LLVM on macOS
uses: actions/checkout@v4
with:
repository: llvm/llvm-project
ref: release/18.x
path: llvm-project
- name: Build OpenMP on macOS
run: |
cd llvm-project
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$(brew --prefix) \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DLIBOMP_INSTALL_ALIASES=OFF \
-S openmp \
-B build
cmake \
--build build \
--parallel
cmake --install build
cd "$GITHUB_WORKSPACE" is using C++ features that are modern enough to push things up, and so to drop down to a lower target the https://github.com/llvm/llvm-project release branch should be changed to something older than |
Through empirical testing Though with
previously worked in the past. So I don't think I understand enough about what |
You are building this outside of cibuildwheel. So you need to set it manually. |
- name: Build OpenMP on macOS
env:
MACOSX_DEPLOYMENT_TARGET: "10.9"
working-directory: llvm-project
run: |
cmake -Sopenmp -Bbuild \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$(brew --prefix) \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DLIBOMP_INSTALL_ALIASES=OFF \
cmake --build build --parallel 4
cmake --install build |
Resolved in PR #24, given #28 (comment), so closing. |
Related to Issues:
During
Wasserstein/.github/workflows/build-wheels.yml
Lines 75 to 87 in 0a0fdeb
Wasserstein/scripts/build-wheels-and-upload.sh
Line 9 in 0a0fdeb
the build fails in the "Repairing wheel" stage with a
delocate.libsana.DelocationError
so it seems the wrong version of
libomp
is being found even if running on a branch that follows PR #24.The text was updated successfully, but these errors were encountered: