-
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
[package] boost/1.74.0: build error for Android #3890
Comments
I'm currently trying to find a workaround in my project, want to pin the previous version in the requirements, but this is not working...
Would need to clear the cache before running it, and need to set |
OK, I'm trying this, looks good (why self.options["boost"].without_log = True # TODO android: "These libraries were not used in conan components"
self.options["boost"].without_locale = True # TODO android: require 'libiconv' not used in components requires |
We're having problems at DL as well, in a nightly job that worked until the last two nights. Here's what we're seeing.
Looking at the PR, at surface level, this is interesting in
Locale requires either
Defining |
Additional info: a teammate reports the same issue for iOS! |
As a fellow CCI (enterprise) consumer I would strongly recommend working with recipe revisions along with lockfiles if you need reproducible builds. including the recipe revision like @madebr I know you are working on more fixes/changes in the 1.75.0 PR is this something related some of your changes? |
Yeah, I recently watched the videos in JFrog Academy, and I learned about that. Not sure yet how this will fit into our current project setup. If I remember right, there can only be one revision (of the same version) in Conan cache, right? What if 2 projects uses different revisions? How to handle this? And using revisions requires a client configuration change, otherwise the revision is ignored (I tried it and it looks like that to me). Overall, this is one of the newer features I have to learn about. |
Probably, this is the next issue on the list to look at. |
This is a good idea, however, we've run into strange problems in requirements resolution, where the caching in the requirements resolver stumbles if you require a recipe revision and a transitive requirement doesn't. Our solution was to create a
|
Sadly, yes. The trick is when your
Option Onealways run UPDATE: you need list all of you transitive dependencies in the I've deployed this at scale for ~6 months and I've avoid this exact headache which lead to me to find a few bugs 🐛 in components generator. Option TwoLockfiles: the workflow was explained to me here, conan-io/docs#1904 I think this will the only reasonable way moving forward if you want to have a short minimal |
Thanks @prince-chrismc for giving really useful suggestions to the right way. I think I have to postpone my rethinking about using lock files, revision, etc. But it is a must, definitely, to freeze not only the packages, but even the recipe versions. Was no issue until now. My projects are CMake based, and I run conan commands using One question: the lockfiles should be stored with the project in git, right? So we have generated files in git. |
Yes! My "base lockfile" can be found here https://github.com/prince-chrismc/user-management/blob/d6fb746a2ab03e6a12610687bbf04cc9e14942ee/backend/conan.lock For working locally I let cmake create the lockfiles https://github.com/prince-chrismc/user-management/blob/d6fb746a2ab03e6a12610687bbf04cc9e14942ee/backend/cmake/conan-setup.cmake#L16 however in CI to create a conan package it needs to be done before the CMake configurration https://github.com/conan-io/cmake-conan offered a few good helpers |
@andioz I see that boost is unable to detect libiconv for the locale module. So on android, the locale module should not be used.
Can you please verify? |
Great, I'm looking forward for the updated recipe! Regarding locale: maybe we should disable it internally for platforms where it's not available? I see such a behavior in OpenCV for example. I think it would be cool if a recipe could be used on any supported platform without "required options". Which sounds weird 😵 Edit: I will try tomorrow |
@ohanar please test the PR this way we and merge quickly! |
OK, here we go, looks good! First I tried
Works, nice. Then I used my regular project on this recipe, even with disabling my workarounds, and it works too! So, from my point of view, it looks good. Just for understanding: the
Great work! ⭐⭐⭐⭐⭐ |
I'd like to nominate madebr as community member of the month! |
Thanks for the nomination, I just fixed (:crossed_fingers: ) fibers and nowide, which might cause problems for your use cases. |
Today's check still working 👍 |
With the newest recipe, Android build fails.
Sorry for the short information here, but I'm currently not able to test it in detail, here is the relevant output from our CI runner:
I guess it has todo with the latest changes, and with the Android specific log parts?
The text was updated successfully, but these errors were encountered: