Skip to content
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::geometry compilation failing with LLVM 19 #101

Open
Jean-Romain opened this issue Jun 15, 2024 · 14 comments
Open

boost::geometry compilation failing with LLVM 19 #101

Jean-Romain opened this issue Jun 15, 2024 · 14 comments

Comments

@Jean-Romain
Copy link

I received an email from Prof Bryan Ripley

LLVM 19 is under preparation (18.1.7 is final), and a large number of
C++-using packages are failing to install with the current snapshot (and
have for a couple of months). Most of these are from a broken
StanHeaders headers, but others can be seen at
https://www.stats.ox.ac.uk/pub/bdr/clang19/ (which contains a
README.txt). Those new since 18.1.7 are

In my specific case I have no control on the error. It comes from boost::geometry which itself is using boost::qvm https://www.stats.ox.ac.uk/pub/bdr/clang19/lidR.log Do you know if there is any plan for a boost update in a close future? Otherwise my only option will be to get rid of the features.

@Jean-Romain Jean-Romain changed the title boost::geometry failing with LLVM 19 boost::geometry compilation failing with LLVM 19 Jun 15, 2024
@eddelbuettel
Copy link
Owner

I tend to update BH once a year in December, hitting one out of every three releases.

If you need a submodule sooner I suggest a local copy in your package until BH can catch up.

(Sorry for any delays I was gone for two days of cycling.)

@Jean-Romain
Copy link
Author

Thank you for your reply. So I'll disable the feature. I checked boost 1.85 and there is not fix and I don't know how to fix it anyway.

@dcooley
Copy link

dcooley commented Sep 18, 2024

I've posted this on boost::qvm so hopefully it will get resolved upstream.

@dcooley
Copy link

dcooley commented Sep 19, 2024

Update: qvm is being fixed

@eddelbuettel
Copy link
Owner

Let's hope it gets into the December release that will be the basis of the next BH release (following the pattern).

@dcooley
Copy link

dcooley commented Sep 20, 2024

yep; although a few of us have until 9th October to fix this, so we'll have to go down the 'local copy' route until then.

@eddelbuettel
Copy link
Owner

Oh, sorry to hear. Just had three of those myself in the last two weeks. And yes, local copy is best.

@dcooley
Copy link

dcooley commented Sep 20, 2024

qvm now fixed in their develop branch

@JeremyGelb
Copy link

Hello ! I am one of the lucky guys that have the same problem with the geometry lib. Could one of you explain me how to have a local copy of the library in my package ? It would be very appreciated !

@eddelbuettel
Copy link
Owner

eddelbuettel commented Sep 20, 2024

In src/Makevars (and src/Makevars.win) declare an additional include directory, maybe below src/ itself. Store what you need from updated upstream Boost (as opposed to what my BH has from their last December's release) in it.

@JeremyGelb
Copy link

Thank you @eddelbuettel, I will give it a try.

@eddelbuettel
Copy link
Owner

Let us know how it goes, and if we can help. It would be good to have a worked example.

@JeremyGelb
Copy link

it seems to work if I use the whole boost library locally. However, I would like to use only the required parts. I am stuck at compiling the tool "bcp" that is supposed to extract all the dependencies of a boost submodule.

@eddelbuettel
Copy link
Owner

If you can use for example a Docker container, you can use that to get a Boost binary installation from a Linux distribution and use its bcp binary.

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

No branches or pull requests

4 participants