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

Make boost dependency symmetric with the rest. #334

Open
brettviren opened this issue Aug 26, 2024 · 0 comments
Open

Make boost dependency symmetric with the rest. #334

brettviren opened this issue Aug 26, 2024 · 0 comments

Comments

@brettviren
Copy link
Member

Out of laziness, the waf tool boost was used copied into waf-tools/ in order to build against Boost. It is full featured but works differently from the rest. In particular, if one has a prefix with all dependencies one can not do:

$ ./wcb configure --prefix=$PREFIX

But, instead one must specifically notify the boost tool with:

$ ./wcb configure --prefix=$PREFIX \
     --boost-mt --boost-libs=$PREFIX/lib \
     --boost-include=$PREFIX/include

When boost is not correctly directed will pick up the system install and the only indication is if the user notices a version match. Eg on Debian 12 we see

Checking boost includes                     : 1.74.0

instead of the desired Spack version:

Checking boost includes                     : 1.85.0

Probably the best solution it to hack boost.py tool to:

  • use "standard" --with-* type flags
  • make --boost-mt set by default
  • honor --prefix value as a potential location
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

3 participants
@brettviren and others