#1669 Assembler returns fata error

OTHER
closed
nobody
gcc (462)
none
No_User_Response
2013-02-04
2012-09-07
bradley tetu
No

Recently we have added build support for compiling our unit test using gcc on
win32. The test compile successfully using Visual Studio, but when we compile
using mingw/gcc we get an error from the assembler like the following:

fatal error: can't write x.obj, file too big

Version Info:
$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\hep-ib\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/hep-ib/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper
.exe
Target: mingw32
Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r
untime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.2 (GCC)

From some research on the web I have seen the others have had the same issue and have worked around it by enabling optimization.

Discussion

  • Earnie Boyd
    Earnie Boyd
    2012-11-09

    Is this still an issue? What binutils version, the assembler compiler is actual from that package.

     
  • Earnie Boyd
    Earnie Boyd
    2012-11-09

    • status: open --> pending-remind
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-04

    • status: pending-remind --> closed
    • resolution: --> none
    • category: --> No_User_Response
    • milestone: --> OTHER