-
Notifications
You must be signed in to change notification settings - Fork 2k
Boost Conan 2.0 compatibility #16222
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
Closed
Closed
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a36619b
Boost Conan 2.0 compatibility
System-Arch 4eb23a2
Use b2 install to copy files to package folder
System-Arch 98d43cd
Restore headers_only package support
System-Arch 6cfab6c
Merge branch 'master' into System-Arch-boost-1
System-Arch d843e39
Bumped required_conan_version
System-Arch 47aac44
Bump required_conan_version
System-Arch 8e0ff5a
Merge branch 'master' into System-Arch-boost-1
System-Arch d7fdf5d
boost: restore test_package
jcar87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
env="conanrun" must not be removed
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.
Hi @SpaceIm,
Please see the conversation with @memsharded (conan-io/conan#13138) where he explains why it should be removed when using Conan to manage the toolchain. In particular, if one is using a host profile to specify the GCC version via a [tool_requires]. we need both the runtime and buildtime environments for dynamically-linked tests to find the G++ runtine (libstdc++.so).
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.
I see, but I think
test()
@memsharded is referring on (CMake.test()
?) is totally different thantest()
of test package andself.run()
command we are running.So I don't say there is not also an issue here when someone has
cmake
intool_requires
, but by default a rawself.run
is executed in build scope, so I don't see how it couldn't lead to a regression. What you want is to inject env vars of cmake into run scope, or inject both build & run scope into this self.runThere 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.
Hi @spacelm,
I agree the circumstances in the thread with @memsharded were slightly different, but they are, in fact, a subset of what we have here. In both instances, the test_package test() method is calling ctest, so we need to be able to find that, which may be provided as part of a Conan-managed toolchain via [tool_requires]. The second issue, and it perhaps suggests that we really do need a [test_requires] feature in the host profile, is that the tests that use dynamic linking need to be able to see the runtime shared libraries provided by the compiler (GCC in this case) but those appear to not be part of the runtime environment when GCC is a [tool_requires]. I will add this new use case to the Conan issue thread to see what insights @memsharded can provide. Thanks.
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.
The removal of the env altogether will cause the tests to fail on Windows when
shared=True
, CI will fail in this instance:where the exit code matches
STATUS_DLL_NOT_FOUND
Based on what you are describing, I believe the changes introduced in #16348 should handle the case where you are expecting the gcc runtime libraries from a
tool_requires
. with an interest of moving forward with this PR, I'll restore this to how it is onmaster
currently, and if there are still issues running tests in this instance, we han investigate separately - as it's something that is not specific to the boost test_package.