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

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?

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

Re^4: trying to build PAR-Packer-1.002
by syphilis (Archbishop) on Mar 17, 2010 at 22:01 UTC
    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.

        The idea of installing the latest binutils was just to update the "binutils" component of your MinGW compiler - since that seems to be the component that's making all the unwanted noise. Now that you've removed all of MinGW, you'll need to do more than just install the binutils package.

        Not to worry ... just run 'ppm remove MinGW' then 'ppm install MinGW' and then unpack binutils-2.20.1 to the C:/Perl/site/lib/auto/MinGW folder. That will overwrite the existing binutils-2.19.1 files with the binutils-2.20.1 files. Then see what happens ... I'm not all that confident it will solve the problem, but it's one thing to try.

        What version of perl are you running ? - the output of perl -v (that's lower case 'v') will tell us all we need to know. If you're using an older build of ActivePerl, there could be some bug there that's preventing the build. If you're running an older 5.8.x build of ActivePerl, you could try upgrading by installing build 827 over the top of it. For older 5.10.x builds, install build 1007 over the top.

        You should find a file named dmake.exe in both C:/Perl/site/bin and C:/Perl/site/lib/auto/dmake. If that's not the case then you need to ppm install it again. (You don't want 'make'.)

        Cheers,
        Rob