#1492 reimp fails, reporting invalid or corrupt import library

closed-fixed
nobody
MinGW (57)
2015-03-29
2010-11-27
Glenn Burkhardt
No

I installed the mingw-utils-0.4-1-mingw32.bin files. The 'reimp' program fails on the attached library:

$ reimp emacepl.lib
c:\mingw\bin\reimp.exe: emacepl.lib: invalid or corrupt import library

But, if I compile from source and install, the newly compiled program works.

Discussion

  •  
    Attachments
  • Also, the 0.3 binary release of mingw-utils works.

    $ gcc --version
    gcc.exe (GCC) 3.4.5 (mingw-vista special r3)
    $ uname -a
    MINGW32_NT-6.1 DEPOTRD 1.0.11(0.46/3/2) 2009-07-11 17:46 i686 Msys

     
  • Charles Wilson
    Charles Wilson
    2010-11-30

    • status: open --> closed-fixed
     
  • Charles Wilson
    Charles Wilson
    2010-11-30

    Looks like an optimization bug in gcc-4.5.0. If I compile reimp/ar.c at -O0, it works. (Or, if you use a different version of gcc such as 3.4.5, then it probably works too. mingw-utils-0.3 was undoubtedly compiled using 3.4.5).

    I've checked in a fix, and it will be in mingw-utils-0.5.