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
Can't build on gentoo #723
Comments
|
Could we maybe encapsulate the boost requirements in a variable, so that you have to throw a specific command line option or set an environmental variable to enable it? Or maybe not mark it as required? For now, I've just removed all of the boost requirements from the CMakelists.txt, and I was able to compile and run. |
|
I don't really know Gentoo that well. If it's got some built-in way for installing a recent version of Boost, then I would hope that would work. If not, then you can manually do what the That should result in all the Boost libraries being available in a place that CMake can find them. |
|
It's not a matter of a recent version of boost, you'll notice they have a more recent version than you do. It's that stacktrace_backtrace is an optional, non-default component. |
|
Ah, OK I see, that explains it. So, yes, my workaround above should do the trick, I hope. |
|
But nobody is going to make a mess of their libs by doing that. |
|
Well, I certainly wouldn't want to advocate making a mess. 😸 On Gentoo, how would you suggest that someone best install an optional, non-default component of Boost? |
|
They would need to rebuild the system boost package with that correct build option. Not sure if Gentoo has a USE flag set up for that or not. |
|
Cool. Let's see if @mikfire has luck with that. |
|
If there's a USE flag, that can be a good option for Gentoo, but it doesn't translate well to binary distros. Arch doesn't have it. Fedora doesn't have it. openSUSE doesn't have it. It appears to require a GCC component that isn't installed by default. Edit: ref https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66570 |
|
I'm hitting the exact same error as @mikfire trying to build 3.0.7 for Fedora. Fedora rawhide has been updated to Boost 1.81 recently. There's a whole bunch of boost packages pulled in when building, but none appears to provide that optional component. I'll check with fellow packagers if there's something I need to change in the package config. But a flag for toggling boost_stacktrace_backtrace on and off would be most welcome. |
|
for now, line 19 at https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=brewtarget#n19 |
|
Thanks! I'll do that if there's no other option (e.g. something providing stacktrace_backtrace). Since the current stable release (F37) does not have a recent enough version of boost, I cannot update Brewtarget at the moment, anyway. Rawhide will become F39 - to be released in fall. Having said that, the upcoming F38 is on Boost 1.78 (same as F37). Is there a way of lowering the required boost version, so F38 can be shipped with the most recent release of Brewtarget? |
Boost.Stacktrace has shipped since 1.65.0 so lowering the requirement should 'just work'. |
|
The issue isn't boost_stacktrace, it's boost_stacktrace_backtrace, which as far as I can tell, only exists in Debianland. As for the version requirement, see https://github.com/Brewtarget/brewtarget/blob/develop/CMakeLists.txt#L631 |
|
Feedback I've got from the libboost package maintainer for Fedora/RHEL: Fedora does not provide libbacktrace, so Boost can't build against it. That leaves me with patching it out as suggested by @Scimmia22, unless this can be changed to make use of the available libraries, which are: More info is available in the downstream bug. |
|
Ah, OK, good to know. Thanks for finding this out. Should be possible to change the build scripts either (a) to detect whether libbacktrace is present and, if not, fall back to something else or (b) accept a config flag to build against one of the other stracktrace libraries. I'll have a look after I'm done with #733. |
|
Thanks. I'm in no hurry and I haven't heard any users yet asking for a package update.
Your locale should handle those. 😜 |
Any suggestions for how to get this build working?
The text was updated successfully, but these errors were encountered: