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

Hi Rob,

Thanks for your reply.

I have removed and re-installed MinGW and then overwrote the C:/Perl/site/lib/auto/MinGW files with those in the binutils tar file. Unfortunately, this gave me the same result.

I am running PERL v5.10.1 build 1007 [291969] provided by ActiveState

I do have dmake.exe in those two locations, here are the file properties of it in those locations.:

Directory of C:\Perl\site\bin 18/03/2010 15:01 24,576 dmake.exe Directory of C:\Perl\site\lib\auto\dmake 18/03/2010 15:00 155,648 dmake.exe

Is there anything else you can suggest I look at please?

Thanks, Richard.

Replies are listed 'Best First'.
Re^8: trying to build PAR-Packer-1.002
by syphilis (Archbishop) on Mar 19, 2010 at 07:45 UTC
    Sorry - I'm completely stumped.
    I guess it wouldn't hurt to check that your g++ is basically functional. Try building this script:
    // try.cpp // #include <iostream> int main(void) { printf("Hello World"); return 0; }
    Build by running 'g++ -o try.exe try.cpp'. Even if that *doesn't* work, I would be unsure what to make of it :-)
    Are there any other modules you've been unable to build because of similar errors ?

    Only other thing I can think of is to try posting to the PAR mailing list - perhaps someone there has come across this before and knows what's needed.

    Cheers,
    Rob
      Hi Rob,

      Thanks for that.

      I was able to build and run try.cpp successfully.

      I'd like to try other modules, how can I find out which ones require the 'C' compiler? as I want to build a module that has the same compiler requirements as PAR-Packer

      I have been in dialogle with CPAN before I came to perlmonks and they suggested I had a corrupt installation of MingW, which I re-installed, but still had the problem

      CPAN said that the files mentioned in the error messages (C:\Perl\site\lib\auto\MinGW\lib\libmsvcrt.a) were installed by MingW and have no connection to PAR and PAR::Packer.

      Please could you let me know of an alternative package I can try to build

      Thanks

      Richard

        I'd like to try other modules, how can I find out which ones require the 'C' compiler?

        Any module whose source contains .xs files will require the C compiler. However, the particular failure here seems to be related to the building of an executable (par.exe) using g++.exe ... and I don't know of any modules OTTOMH that will do the same.

        they suggested I had a corrupt installation of MingW

        That's what it looks to me, too ... but we haven't yet managed to uncorrupt it.

        If you can be bothered, provide me with a copy'n'paste of the outputs of the following:
        1) gcc -v
        2) g++ -v
        3) dmake -V
        and I'll make sure that I get the exact same packages. Maybe then I'll be able to reproduce the failure ... and if I can do that, then we should be able to come up with a fix.

        However, I'm about to go to bed now, and I won't be back around on perlmonks for approximately another 20 hours ... so there's no real hurry to provide those details :-)

        Cheers,
        Rob