-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Fix compilation in OSX Catalina with OMP enabled #3721
Fix compilation in OSX Catalina with OMP enabled #3721
Conversation
SergioRAgostinho
commented
Mar 7, 2020
- Explicitly add linker flags from OMP
This problem managed to escape the macOS CI since OMP was not installed. We should add it the CI will help catch any future errors that may arise. |
Go for it 👍 However, it's not worth to commit the change until we fix the problem. |
Yeah true, we could just add it to this PR since its only one line ( |
I'm not gonna touch this for the time being, so feel free to take over the issue and signal the closing of this PR if you get yours ready. |
07c714e
to
b54ad11
Compare
- Explicitly add linker flags from OMP
b54ad11
to
8a50775
Compare
So unlike all other OSes, Catalina needs OMP to be explicitly linked? This needs to be propagated to downstream packages then :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add libomp
to the brew install step in the CI to make sure we're fixing the error for PCL compilation
I haven't addressed the downstream part yet i.e.: it the project is compiled with OMP and requires linking flags, the assumption is that if the linking flags are not propagated to a downstream project it will have linking issues. Edit: I saw the new issue now. You can merge this and I can try to address it later. At least the user will be able to build PCL. He can later report if he later had linking issues. |
I created an issue to track the potential issue. We can go ahead and merge this |