in reply to Re: trying to build PAR-Packer-1.002
in thread trying to build PAR-Packer-1.002

I can't find any such file in my MinGW installations

coffgen.c is a source file of the GNU linker (ld — which is part of the binutils).  One would have to look in that line 375 in order to find out what the assertion is testing and why it might be failing...

Replies are listed 'Best First'.
Re^3: trying to build PAR-Packer-1.002
by rich_d_thomas (Sexton) on Mar 17, 2010 at 16:28 UTC
    Hi Rob and Almut,

    Thanks for your replies.

    I searched my compter for the coffgen.c file and it does not exist anywhere on it.

    So I did a "find in files" for the text "coffgen.c" and it appears in the C:\Perl\site\lib\auto\MinGW\lib\libbfd.a file.

    Any ideas how I can get to the coffgen.c file, so that I can look at line 375?

      how I can get to the coffgen.c file

      It's part of the binutils package I linked to above (21MB tarball).

      Anyhow, in the meantime I had already taken a look at that line. The assertion reads:

      BFD_ASSERT (sym->_n._n_n._n_offset >= STRING_SIZE_SIZE);

      Unforunately, the reason the assertion fails seems to be just another indication of the same problem which is being reported later as

      ...\libmsvcrt.a(diwcs00633.o): local symbol ` ' has no section

      (At least that's my guess.)  I have no hypothesis where this strange empty '     ' symbol comes from, and I can't replicate the issue here.  I'm sorry I can't help any further.

      It's very odd - I have the same version of gcc (3.4.5) and binutils (2.19.1) as you, and there's no problem for me.

      Things you could try:
      1) Reinstall binutils - or try a different version. Just go to http://sourceforge.net/projects/mingw/files/ and grab the latest binutils package, then unpack it to C:/Perl/site/lib/auto/MinGW.
      2) Reinstall MinGW. I gather you've installed it using ppm, so run 'ppm remove MinGW' followed by 'ppm install MinGW'.

      Cheers,
      Rob
        Hi syphilis,

        Thank you for your advice.

        I tried 2) first, by doing:

        ppm remove MinGW ppm remove dmake ppm install dmake ppm install MinGW
        Unfortunately, that gave me the same result.

        I then had a go at 1), again I removed MinGW and dmake to make it clean.

        I had a look around on the mingwfiles area of sourceforge and found http://sourceforge.net/projects/mingw/files/GNU%20Binutils/binutils-2.20.1/binutils-2.20.1-2-mingw32-bin.tar.gz/download which I downloaded and extracted to C:/Perl/site/lib/auto/MinGW

        I had a search for make and dmake in the resulting folders and sub-folders and cannot find either of them.

        Please could you look at the binutils I tried and let me know of there is a different one I should be using.

        Thanks again,

        Richard.