Skip to content
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

CI Fix: macOS OMP #3465

Merged
merged 1 commit into from
Oct 14, 2022
Merged

CI Fix: macOS OMP #3465

merged 1 commit into from
Oct 14, 2022

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Oct 13, 2022

Fix:

$ cmake -S . -B build_dp ...
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
...
CMake Error at /usr/local/Cellar/cmake/3.24.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
-- Configuring incomplete, errors occurred!
  Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
libomp 14.0.6 is already installed but outdated (so it will be upgraded).
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/manifests/15.0.2
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/blobs/sha256:a4e0796616d09221e2a486c95f9aa7c12d3c617e594b1d463a8f479bd4fa45c2
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a4e0796616d09221e2a486c95f9aa7c12d3c617e594b1d463a8f479bd4fa45c2?se=2022-10-13T20%3A50%3A00Z&sig=a68J671xfsvWip4TqYo5%2B2E0U5AswwCQDocHLNc6XXE%3D&sp=r&spr=https&sr=b&sv=2019-12-12
==> Upgrading libomp
  14.0.6 -> 15.0.2

==> Pouring libomp--15.0.2.big_sur.bottle.tar.gz
==> Caveats
libomp is keg-only, which means it was not symlinked into /usr/local,
because it can override GCC headers and result in broken builds.

For compilers to find libomp you may need to set:
  export LDFLAGS="-L/usr/local/opt/libomp/lib"
  export CPPFLAGS="-I/usr/local/opt/libomp/include"

==> Summary
🍺  /usr/local/Cellar/libomp/15.0.2: 7 files, 1.7MB
==> Running `brew cleanup libomp`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/libomp/14.0.6... (7 files, 1.6MB)
Removing: /Users/runner/Library/Caches/Homebrew/libomp--14.0.6... (548.8KB)

@ax3l ax3l added bug Something isn't working component: tests Tests and CI component: third party Changes in WarpX that reflect a change in a third-party library machine / system Machine or system-specific issue labels Oct 13, 2022
@ax3l ax3l requested review from RemiLehe and RTSandberg October 13, 2022 21:12
@ax3l ax3l force-pushed the fix-ci-macos-omp-libomp branch 6 times, most recently from 8fdf3ca to 4451b52 Compare October 13, 2022 23:08
Fix:
```
$ cmake -S . -B build_dp ...
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
...
CMake Error at /usr/local/Cellar/cmake/3.24.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
-- Configuring incomplete, errors occurred!
  Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
```

```
libomp 14.0.6 is already installed but outdated (so it will be upgraded).
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/manifests/15.0.2
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/blobs/sha256:a4e0796616d09221e2a486c95f9aa7c12d3c617e594b1d463a8f479bd4fa45c2
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a4e0796616d09221e2a486c95f9aa7c12d3c617e594b1d463a8f479bd4fa45c2?se=2022-10-13T20%3A50%3A00Z&sig=a68J671xfsvWip4TqYo5%2B2E0U5AswwCQDocHLNc6XXE%3D&sp=r&spr=https&sr=b&sv=2019-12-12
==> Upgrading libomp
  14.0.6 -> 15.0.2

==> Pouring libomp--15.0.2.big_sur.bottle.tar.gz
==> Caveats
libomp is keg-only, which means it was not symlinked into /usr/local,
because it can override GCC headers and result in broken builds.

For compilers to find libomp you may need to set:
  export LDFLAGS="-L/usr/local/opt/libomp/lib"
  export CPPFLAGS="-I/usr/local/opt/libomp/include"

==> Summary
🍺  /usr/local/Cellar/libomp/15.0.2: 7 files, 1.7MB
==> Running `brew cleanup libomp`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/libomp/14.0.6... (7 files, 1.6MB)
Removing: /Users/runner/Library/Caches/Homebrew/libomp--14.0.6... (548.8KB)
```
@ax3l ax3l force-pushed the fix-ci-macos-omp-libomp branch from 4451b52 to f4282ff Compare October 13, 2022 23:09
@ax3l ax3l changed the title [WIP] CI Fix: macOS OMP CI Fix: macOS OMP Oct 14, 2022
@ax3l ax3l enabled auto-merge (squash) October 14, 2022 01:08
@ax3l ax3l merged commit 912af3a into ECP-WarpX:development Oct 14, 2022
@ax3l ax3l deleted the fix-ci-macos-omp-libomp branch October 14, 2022 21:58
dpgrote pushed a commit to dpgrote/WarpX that referenced this pull request Nov 22, 2022
Fix:
```
$ cmake -S . -B build_dp ...
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
...
CMake Error at /usr/local/Cellar/cmake/3.24.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
-- Configuring incomplete, errors occurred!
  Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
```

```
libomp 14.0.6 is already installed but outdated (so it will be upgraded).
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/manifests/15.0.2
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/blobs/sha256:a4e0796616d09221e2a486c95f9aa7c12d3c617e594b1d463a8f479bd4fa45c2
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a4e0796616d09221e2a486c95f9aa7c12d3c617e594b1d463a8f479bd4fa45c2?se=2022-10-13T20%3A50%3A00Z&sig=a68J671xfsvWip4TqYo5%2B2E0U5AswwCQDocHLNc6XXE%3D&sp=r&spr=https&sr=b&sv=2019-12-12
==> Upgrading libomp
  14.0.6 -> 15.0.2

==> Pouring libomp--15.0.2.big_sur.bottle.tar.gz
==> Caveats
libomp is keg-only, which means it was not symlinked into /usr/local,
because it can override GCC headers and result in broken builds.

For compilers to find libomp you may need to set:
  export LDFLAGS="-L/usr/local/opt/libomp/lib"
  export CPPFLAGS="-I/usr/local/opt/libomp/include"

==> Summary
🍺  /usr/local/Cellar/libomp/15.0.2: 7 files, 1.7MB
==> Running `brew cleanup libomp`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/libomp/14.0.6... (7 files, 1.6MB)
Removing: /Users/runner/Library/Caches/Homebrew/libomp--14.0.6... (548.8KB)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: tests Tests and CI component: third party Changes in WarpX that reflect a change in a third-party library machine / system Machine or system-specific issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants