[ITK-users] Compilation error when building ITK 4.9.0 with MinGW

Matt McCormick matt.mccormick at kitware.com
Fri Feb 19 12:00:42 EST 2016


Hi Franscisco,

According to this thread:

 https://cmake.org/pipermail/insight-users/2015-September/052511.html

adding the flags

   -Wa,-mbig-obj

helps at least with the build error.  Does it help in your case?

Thanks,
Matt

On Thu, Feb 18, 2016 at 6:22 PM, Francisco Lopez de la Franca
<franciscolopezdelafranca at gmail.com> wrote:
> Hi,
> I've downloaded the last stable ITK version, 4.9.0, for Windows and compile
> it by using MinGW-64.
> When the compilation reaches almost the 100%, it gives the error:
>
> [ 98%] Building CXX object
> Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFactoryBase.cxx.obj
> C:/MINGW/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/as.exe:
> CMakeFiles\ITKIOTransformBase.dir\itkTransformFactoryBase.cxx.obj: too many
> sections (33106)
> C:\Users\User~1\AppData\Local\Temp\ccrJIGis.s: Assembler messages:
> C:\Users\User~1\AppData\Local\Temp\ccrJIGis.s: Fatal error: can't write
> CMakeFiles\ITKIOTransformBase.dir\itkTransformFactoryBase.cxx.obj: File too
> big
>
> I've been searching for a solution on the web for several hours and all the
> attempts to solve it have not fix it.
>
> Has anyone ever faced this problem and fix it?
>
> Thanks a lot.
> Best regards.
> /Francisco
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list