-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
boost: be more strict about boost libraries #3999
Conversation
I detected other pull requests that are modifying boost/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. |
Some configurations of 'boost/1.69.0' failed in build 1 (
|
Some configurations of 'boost/1.69.0' failed in build 2 (
|
Some configurations of 'boost/1.69.0' failed in build 3 (
|
All green in build 4 (
|
if self.settings.compiler == "Visual Studio" and self.options.shared and self.options.numa: | ||
raise ConanInvalidConfiguration("Cannot build a shared boost with numa support on Visual Studio") |
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.
@prince-chrismc
The limitation to shared is intentional.
dll's don't allow missing symbols, static libraries allow it.
This means a static numa library can be built, but not a shared library.
I said: it can be built. I didn't say that it will work 😄
Some configurations of 'boost/1.69.0' failed in build 5 (
|
Some configurations of 'boost/1.69.0' failed in build 6 (
|
All green in build 7 (
|
Co-authored-by: Uilian Ries <uilianries@gmail.com>
An unexpected error happened and has been reported. Help is on its way! 🏇 |
All green in build 9 (
|
After this PR, when GitHub Actions are building on macOS, I see a new failure:
Previously, as the description of this PR says, the recipe allowed missing libraries, understanding that Boost.Build would do the right thing for the platform. I understand the rationale for being "explicit/strict about adding libraries", but this PR means that in order to build at all I have to exclude Boost.Fiber with:
and that means a custom build always, not just a download, on all platforms. The custom build would at least be efficient if I could easily specify just Any ideas? |
Are you referring to this? https://github.com/sony/nmos-cpp/runs/1649513648?check_suite_focus=true#step:20:137 In your logs it's wants https://c3i.jfrog.io/artifactory/misc/logs/pr/3999/9/boost/1.72.0/94cf772abbc62fdba36047acf49db3d6d9235ddb-build.txt shows the library being built But this failed to build according to the logs! 😖 //cc @jgsogo @danimtb I think there are missing packages here I do not see this revision added for boost/1.75.0 (at least there's no numa option available) on the website Running a search I get the following You might want to consider using recipe revisions, #3890 (comment) to avoid these kind of issues |
@garethsb-sony |
I was referring to that run; the build error I mentioned is a way down, here: https://github.com/sony/nmos-cpp/runs/1649513648?check_suite_focus=true#step:20:16982
Thanks, @prince-chrismc, that does look helpful... more stuff to learn! |
How about this:
Have I missed a way of specifying only the components I need inclusively rather than specifying the ones I don't need? |
Issue was also reported #4097 |
Specify library name and version: boost/all
After this pr, the libraries are added more stricter.
Before, it allowed missing libraries.
Now we/I better understand how boost builds libraries (or does not), it is possible to be more explicit/strict about adding libraries.
Most importantly, this will result in clearer error messages.
The situation this pr hopes to fix is the following:
Because Boost.Build silently doesn't build boost libraries when some precondition fails, some boost component/module could become unavailable and some conan dependencies not used.
This results in unclear error messages, see #3992
Also, added
numa
option forboost_fiber_numa
library.conan-center hook activated.