-
Notifications
You must be signed in to change notification settings - Fork 69
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
"Could NOT find Threads" during cmake build in mac #1183
Comments
@psychocoderHPC @j-stephan May you be able to help as you have been working on related parts in #866 ? |
@BenjaminW3 The issue #866 is different from this one. For some reason PThread at all can not be found. Where in #866 we try to solve the problem that we should set @kakwok I do not have access to a MACOSX system so I can only guess. Is it possible that you install a modern clang compiler on your system? From the logs I see that you uses clang 4.0.1. |
@kakwok is the workaround
working for you? Source of the workaround: alicevision/geogram#2 (comment) |
Could you paste the contents of |
@psychocoderHPC @j-stephan Here're the log files: |
I believe this may be the cause of your issues. Your CMakeError.log indicates that CMake is indeed picking up Anaconda's clang (which is ancient) but then tries to link to the system libraries - the latter presumably being built with much newer clang versions. This causes weird linker errors, in this case resulting in pthread being unlinkable. This seems to be a common issue with Anaconda on macOS. By default Anaconda silently and permanently overrides important environment variables (CC, CXX, ...). That is a very questionable choice by the Anaconda developers. I suggest you file a bug report on their issue tracker. You have two choices to fix this:
|
@kakwok The best way to avoid this issue is to have a separate environment without anaconda to build and work with alpaka and an environment to post-process stuff with python where you load you anaconda environment. As @j-stephan wrote, anaconda is often introducing side effects. |
@kakwok Is this still an issue on your side? |
Closing due to user inactivity (and it doesn't seem to be an issue on our side). |
Hi,
I am following the installation instructions from [1], but when I reach the step:
I get the following error:
System info:
============================
From googling the CMAKE error, I found a workaround by putting the following snippet in the
CMakeLists.txt
in thealpaka
directoryBut I'm not sure if this is supposed to be the right way to configure the build
[1]https://alpaka.readthedocs.io/en/latest/basic/install.html#
The text was updated successfully, but these errors were encountered: