Skip to content

Fix windows debug#398

Open
simonlegrand wants to merge 2 commits into
FreeFem:developfrom
simonlegrand:fix_windows_debug
Open

Fix windows debug#398
simonlegrand wants to merge 2 commits into
FreeFem:developfrom
simonlegrand:fix_windows_debug

Conversation

@simonlegrand

@simonlegrand simonlegrand commented May 31, 2026

Copy link
Copy Markdown
Contributor

Fix of the compilation errors like:

(.pdata$_ZNK10E_F_F0_OptI6ResizeI2KNIPKN5Fem2D4MeshEEEPS6_Lb1EEclEPv+0x0): relocation truncated to fit: IMAGE_REL_AMD64_ADDR32NB against `.text$_ZNK10E_F_F0_OptI6ResizeI2KNIPKN5Fem2D4MeshEEEPS6_Lb1EEclEPv'

on Windows in Debug mode. According to the doc, the address space of the 'relocation section' is only 32 bits large. Since some symbols couldn't fit into this section, it led to many subsequent 'undefined reference'. Adding the "-Wa,-mbig-obj" assembler flag fixes the problem by increasing the size of the relocation section.
There are still errors during the 'make check' phase, but it seems a good beginning, we can debug under Windows.

I also removed unused ff_nocygwin variable

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 this pull request may close these issues.

1 participant