Skip to content

Fails to build with boost >= 1.87 #208

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
berolinux opened this issue Dec 14, 2024 · 5 comments · Fixed by #210
Closed

Fails to build with boost >= 1.87 #208

berolinux opened this issue Dec 14, 2024 · 5 comments · Fixed by #210

Comments

@berolinux
Copy link
Contributor

Boost versions up to 1.86 are ok.
Building with boost 1.87 results in

In file included from /home/bero/abf/luceneplusplus/BUILD/lucene++-3.0.9-build/LucenePlusPlus-rel_3.0.9/src/core/document/NumericField.cpp:1:
In file included from /home/bero/abf/luceneplusplus/BUILD/lucene++-3.0.9-build/LucenePlusPlus-rel_3.0.9/build/src/core/cotire/lucene++_CXX_prefix.hxx:4:
In file included from /home/bero/abf/luceneplusplus/BUILD/lucene++-3.0.9-build/LucenePlusPlus-rel_3.0.9/build/src/core/cotire/lucene++_CXX_prefix.cxx:4:
In file included from /home/bero/abf/luceneplusplus/BUILD/lucene++-3.0.9-build/LucenePlusPlus-rel_3.0.9/src/core/include/LuceneInc.h:23:
In file included from /home/bero/abf/luceneplusplus/BUILD/lucene++-3.0.9-build/LucenePlusPlus-rel_3.0.9/include/lucene++/Lucene.h:26:
In file included from /usr/include/boost/variant.hpp:17:
In file included from /usr/include/boost/variant/variant.hpp:2308:
/usr/include/boost/variant/detail/variant_io.hpp:57:14: error: invalid operands to binary expression ('std::basic_ostream<wchar_t>' and 'const boost::shared_ptr<Lucene::Reader>')
   57 |         out_ << operand;
      |         ~~~~ ^  ~~~~~~~
@StormBytePP
Copy link

Attaching full build log (Gentoo system, compiling with llvm-19 and using boost-1.87.0)
build.log

bob-beck pushed a commit to openbsd/ports that referenced this issue Dec 16, 2024
This isn't good enough to build with 1.87, but it's a piece of the puzzle.
luceneplusplus/LucenePlusPlus#208
@StormBytePP
Copy link

Any updates on this? It is preventing me a system update :(

@christian-heusel
Copy link
Contributor

@StormBytePP Could you test the MR that I have linked? I tried my best to port this to the new boost API but I'm not too sure that all is correct 😅
This was done because lucene++ was one of the missing packages in the Arch Linux boost 1.87.0 bost todo: https://archlinux.org/todo/boost-1870-rebuild/

@StormBytePP
Copy link

StormBytePP commented Jan 22, 2025

This bug seems unrelated, as I've applied the patch from #210 and still getting OP's error (or maybe more port is needed?)

@christian-heusel
Copy link
Contributor

Yes I maybe should have clarified that I have also backported the mentioned boost fix (boostorg/smart_ptr@e7433ba) to our version of boost.

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 a pull request may close this issue.

3 participants