[ITK-users] mingw, gcc5: "too many sections" and "undefined reference to vtable" errors

Matt McCormick matt.mccormick at kitware.com
Wed Nov 16 14:13:09 EST 2016


Hello Boris,

On Sun, Oct 23, 2016 at 6:57 PM, Nagaev Boris <bnagaev at gmail.com> wrote:
> On Mon, Oct 24, 2016 at 12:09 AM, Nagaev Boris <bnagaev at gmail.com> wrote:
>> Hello,
>>
>> I need help building ITK 4.8.0. I cross-compile on gcc 5.3.0 from
>> Linux to Windows using MinGW-w64. Everything was Ok on gcc 4.9.4.
>>
>> I get the same errors as in this tread:
>> https://cmake.org/pipermail/insight-users/2015-September/052511.html
>> My log: https://git.io/vPNmf
>>
>> I added -Wa,-mbig-obj flags and the same error:
>> https://cmake.org/pipermail/insight-users/2015-September/052512.html
>> My log: https://git.io/vPNqh
>> I added the flags by adding the following to cmake command:
>> -DCMAKE_C_FLAGS='-Wa,-mbig-obj'
>> -DCMAKE_CXX_FLAGS='-Wa,-mbig-obj'
>>
>> If I add these flags and compile with gcc 4.9.0, it works.
>
> Latest ITK (4.10.1) builds successfully with gcc 6 after disabling
> try-run (https://gist.github.com/starius/b7b1ee84faa76de1f52efe3f1959dc1d).

Thanks for checking and reporting your results.

If WINE is installed -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/wine is
added to the cmake call, does the build complete without needing to
remove the try_run statements?

Thanks,
Matt


More information about the Insight-users mailing list