in reply to trying to build PAR-Packer-1.002

C:\Perl\site\lib\auto\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: BFD (GNU Binutils) 2.19.1 assertion fail ../../binutils-2.19.1/bfd/coffgen.c:375

That's a bit odd - up to that point I get the same output as you.

Precisely where (full path) is ../../binutils-2.19.1/bfd/coffgen.c located ?
I can't find any such file in my MinGW installations - and I'm struggling to understand how such a file has become relevant to the building of PAR-Packer-1.002.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: trying to build PAR-Packer-1.002
by almut (Canon) on Mar 17, 2010 at 11:59 UTC
    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...

      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