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

Error when building Boost on docker #810

Closed
paskino opened this issue Mar 9, 2023 · 4 comments · Fixed by #718
Closed

Error when building Boost on docker #810

paskino opened this issue Mar 9, 2023 · 4 comments · Fixed by #718

Comments

@paskino
Copy link
Contributor

paskino commented Mar 9, 2023

On docker, with miniconda we install whatever latest version of python miniconda comes with. I tried to fix it at 3.9 and got a build error regarding system Boost and python which are incompatible. In fact, system python on ubuntu22.04 is 3.10.

So I set USE_SYSTEM_Boost=OFF and I got several build errors on Gadgetron, of this type:

/opt/SIRF-SuperBuild/sources/Gadgetron/core/io/from_string.h:19:24: error: ‘numeric_limits’ is not a member of ‘std’
   19 |         if (tmp < std::numeric_limits<T>::min() || tmp > std::numeric_limits<T>::max())
      |                        ^~~~~~~~~~~~~~
@KrisThielemans
Copy link
Member

I don't know what errors you saw with system Boost and python incompatibility. I would only expect that when you install boost.python. Indeed, I see you did that in #718. The question is why though. We don't use it. Gadgetron can, but in the good old days, we disabled that in our build, as we don't use Python gadgets.

The error that you quote has nothing to do with boost itself, but other stuff. That one is likely caused by a Gadgetron bug.of missing headers. I've created gadgetron/gadgetron#1207 As from_string.h includes a boost header, it's possible that that header includes <limits> in some boost versions but not others.

By the way, we install a rather old Boost version when building Gadgetron.

if (BUILD_GADGETRON)
# https://github.com/gadgetron/gadgetron/blob/12ffc43debb9bad2e170713006d29dea78d966bf/CMakeLists.txt#L205-L209
set(Boost_REQUIRED_VERSION 1.71.0)

That' s probably a left-over. (Gadgetron's CMake requires boost 1.71.0, but that doesn't mean we should install that version I guess).

@paskino
Copy link
Contributor Author

paskino commented Mar 14, 2023

paskino added a commit that referenced this issue Mar 15, 2023
@KrisThielemans
Copy link
Member

I had to add the build of boost python.

I've raised gadgetron/gadgetron#1211. Maybe you can add more detail if there was anything else, or even do a PR...

@paskino
Copy link
Contributor Author

paskino commented Aug 10, 2023

Should be fixed by gadgetron/gadgetron@9274e7f

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.

2 participants