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

Fix compilation in OSX Catalina with OMP enabled #3721

Merged
merged 3 commits into from
Apr 15, 2020

Conversation

SergioRAgostinho
Copy link
Member

  • Explicitly add linker flags from OMP

@shrijitsingh99
Copy link
Contributor

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.

@SergioRAgostinho
Copy link
Member Author

Go for it 👍 However, it's not worth to commit the change until we fix the problem.

@shrijitsingh99
Copy link
Contributor

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 (brew install libomp) added to build-macos.yml.

@SergioRAgostinho
Copy link
Member Author

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.

@kunaltyagi kunaltyagi mentioned this pull request Mar 15, 2020
@taketwo taketwo added needs: more work Specify why not closed/merged yet platform: macos labels Mar 20, 2020
@SergioRAgostinho SergioRAgostinho marked this pull request as draft April 10, 2020 11:51
- Explicitly add linker flags from OMP
@taketwo
Copy link
Member

taketwo commented Apr 11, 2020

So unlike all other OSes, Catalina needs OMP to be explicitly linked? This needs to be propagated to downstream packages then :(

Copy link
Member

@kunaltyagi kunaltyagi left a 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

@SergioRAgostinho SergioRAgostinho marked this pull request as draft April 12, 2020 17:12
@kunaltyagi kunaltyagi removed the needs: more work Specify why not closed/merged yet label Apr 13, 2020
@kunaltyagi kunaltyagi self-requested a review April 13, 2020 06:30
@kunaltyagi kunaltyagi added the changelog: fix Meta-information for changelog generation label Apr 15, 2020
@SergioRAgostinho
Copy link
Member Author

SergioRAgostinho commented Apr 15, 2020

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.

@SergioRAgostinho SergioRAgostinho marked this pull request as ready for review April 15, 2020 07:54
@kunaltyagi kunaltyagi added the needs: code review Specify why not closed/merged yet label Apr 15, 2020
@kunaltyagi
Copy link
Member

kunaltyagi commented Apr 15, 2020

I created an issue to track the potential issue. We can go ahead and merge this

@SergioRAgostinho SergioRAgostinho merged commit 8ffaa90 into PointCloudLibrary:master Apr 15, 2020
truhoang pushed a commit to truhoang/pcl that referenced this pull request Jun 30, 2020
)

* Add omp to osx ci dependencies
* Add OMP as library dependency if target exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: cmake needs: code review Specify why not closed/merged yet platform: macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants