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

Unable to build debug preset on Windows #2896

Closed
Lestropie opened this issue May 9, 2024 · 2 comments
Closed

Unable to build debug preset on Windows #2896

Lestropie opened this issue May 9, 2024 · 2 comments

Comments

@Lestropie
Copy link
Member

On the current dev branch, in an MSYS2 environment, I am unable to compile using the debug cmake preset (I had hoped to use this to diagnose mrview segfaulting when trying to evaluate #2887). Multiple compilation objects fail with the message "too many sections". I'm confident we've had this before: I believe it's what triggered the reduction of tckmap template utilisation in #252, and I mentioned it in #1267.

It might be worth considering in the context of #2877. Splitting compilation across a greater number of objects and reducing compilation of the same code multiple times is used to speed up compilation there, whereas here the same logic largely applies but in the goal of making computation tractable.

@daljit46
Copy link
Member

daljit46 commented May 9, 2024

On master we are compiling with -Wa,-mbig-obj. The same works with CMake (tested on my Windows laptop):

cmake --preset debug -DCMAKE_CXX_FLAGS="-Wa,-mbig-obj"
cmake --build ../build-mrtrix3-debug

Maybe it's worth adding this to the debug preset or create a separate "debug-windows" preset? We could also add this in the top level CMakeLists.txt using add_compile_options.

@daljit46
Copy link
Member

daljit46 commented Jun 6, 2024

Closed by #2897

@daljit46 daljit46 closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants