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

onetbb: remove shared option + fix tbbmaloc & tbbproxy logic #20897

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Nov 2, 2023


since shared option is True by default, it causes lot of missing packages in c3i. Moreover shared=False is strongly discouraged anyway and totally forbidden in recent versions
@ghost
Copy link

ghost commented Nov 2, 2023

I detected other pull requests that are modifying onetbb/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

Copy link
Contributor

@valgur valgur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I really hope this fixes the issue.

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Nov 2, 2023

Hum, another option I don't like in this recipe: interprocedural_optimization (added by #13386). It shouldn't be an option. There shouldn't be option doing babysitting of compiler/linker flags, there is tools.build.cflags/cxxflags/sharedlinkflags for this, with the benefit of ensuring consistent flags across all dependency graph. And anyway LTO shouldn't be enabled by default in this recipe (well in shared lib it's harmless but still).

@SpaceIm SpaceIm mentioned this pull request Nov 2, 2023
3 tasks
@SpaceIm
Copy link
Contributor Author

SpaceIm commented Nov 2, 2023

@danimtb @uilianries @RubenRBS I'm not even sure it will fix all issues related to missing onetbb packages in v2 pipeline. Since onetbb has dependencies, if I remove shared option of onetbb, it will build onetbb flavor with static dependencies only (I mean, does v2 pipeline still tries to build both -o *:shared=False AND -o *:shared=True even if root recipe doesn't have shared option?)?
So if a downstream recipe has a shared option, it will break with shared=True since conancenter won't have the flavor of onetbb with hwloc shared=True, correct?

@conan-center-bot

This comment has been minimized.

@ghost ghost mentioned this pull request Nov 3, 2023
3 tasks
@uilianries uilianries self-assigned this Nov 6, 2023
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the shared option sounds good to me.

I'll block to discuss first with Conan team, in case of side-effects.

We still could list all affected packages and run an internal CI build to regenerate after merging it, but still need to check what could happen with CI composition, like */*:shared=True/False and even mixed (Conan 1.x) for future PRs.

@uilianries
Copy link
Member

After discussing with Conan team about this situation, indeed the hwloc will cause trouble due Conan 2.x CCI build configuration. So our better shot now is restricting hwloc to a shared library only.

I opened the PR #20976. That PR should be merged first, then we can update this one and merge it too.

Thank you @SpaceIm for not only opening the PR, but also sharing your investigation.

@fschoenm
Copy link
Contributor

fschoenm commented Nov 9, 2023

@uilianries Can this be merged now or is there something left to do?

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Nov 9, 2023

I've triggered a new build, now that #20976 has been merged.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 3 (be9ffd2db81b086eec70eac0a5e5a00fdd564713):

  • onetbb/2021.10.0:
    All packages built successfully! (All logs)

  • onetbb/2021.9.0:
    All packages built successfully! (All logs)

  • onetbb/2021.8.0:
    All packages built successfully! (All logs)

  • onetbb/2021.7.0:
    All packages built successfully! (All logs)

  • onetbb/2021.6.0:
    All packages built successfully! (All logs)

  • onetbb/2021.3.0:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 3 (be9ffd2db81b086eec70eac0a5e5a00fdd564713):

  • onetbb/2021.10.0:
    All packages built successfully! (All logs)

  • onetbb/2021.9.0:
    All packages built successfully! (All logs)

  • onetbb/2021.8.0:
    All packages built successfully! (All logs)

  • onetbb/2021.7.0:
    All packages built successfully! (All logs)

  • onetbb/2021.6.0:
    All packages built successfully! (All logs)

  • onetbb/2021.3.0:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit c75dedf into conan-io:master Nov 10, 2023
39 checks passed
@SpaceIm SpaceIm deleted the onetbb-remove-shared-option branch November 10, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants