[ITK] [ITK-users] Compilation error when building ITK 4.9.0 with MinGW
Francisco Lopez de la Franca
franciscolopezdelafranca at gmail.com
Fri Feb 19 17:56:39 EST 2016
Hello Matt,
I had already tested the -Wa,-mbig-obj options in CMAKE_CXX_FLAGS and in
CMAKE_C_FLAGS and the answer was:
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/as.exe:
unrecognized option `-mbig-obj'
So, I'm stuck at this point, and I'm thinking to change from Mingw to
Visual Studio or another one. But it is very strange that ITK wasn't be
prepared to be compiled via MinGW.
Thanks for answering and if you have any suggestion, it wiil be very well
received.
/Francisco
2016-02-19 18:00 GMT+01:00 Matt McCormick <matt.mccormick at kitware.com>:
> 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160219/d1b4d54d/attachment-0001.html>
-------------- next part --------------
_____________________________________
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 Community
mailing list