alpaka-group / alpaka

Abstraction Library for Parallel Kernel Acceleration :llama:
https://alpaka.readthedocs.io
Mozilla Public License 2.0
337 stars 69 forks source link

fix macOS CI error at brew link step: "Target already exists" #2244

Closed mehmetyusufoglu closed 4 months ago

mehmetyusufoglu commented 4 months ago

CI error at compilation 14.3.1. CI needs to run script for libomp. The script alpaka/script/homebrew/14.3.1/libomp.rb tries to install python again and a "target already exists" error is created. As a solution before calling the script the links are removed; to solve the issue.

- ERROR at CI of macos_xcode 14.3.1

==> Installing libomp dependency: python@3.12 ==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/manifests/3.12.2_1 Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/db6a7027cff95a641d6d0c07e00f7b8fa26b0733b6d215c3752b745a381ebcb8--python@3.12-3.12.2_1.bottle_manifest.json ==> Pouring python@3.12--3.12.2_1.ventura.bottle.tar.gz Error: The brew link step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/2to3 Target /usr/local/bin/2to3 already exists.

A quick-fix is provided since the issue is blocking. The fix is similar to a previous fix. In fact, changing /libomp.rb could be a proper fix.

bernhardmgruber commented 4 months ago

Given all the troubles we had with OpenMP on MacOS in the past, I would consider just dropping support for it.