Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Can't compile XS code

by syphilis (Chancellor)
on Oct 27, 2012 at 05:18 UTC ( #1001163=note: print w/replies, xml ) Need Help??


in reply to Re^4: Can't compile XS code
in thread Can't compile XS code

Are you using the "MSI Installer" version of that distro ? According to this page, it's SHA1 digest should be:
e67728ddd89777815271ac7416cff32653d387bf
Is that what you have ? (I get that SHA1 digest for the distro that I just downloaded - so that part looks fine to me.)
If you get a different SHA1 digest for the distro you downloaded then, either you've grabbed a different distro, or you've got a corrupted distro.

When I install that distro and run:
objdump -t C:/strawberry/perl/lib/CORE/libperl516.a >dump.txt
I get no errors ... so I'm thinking that you must be running a different objdump. Where is it coming from ? You need to run the objdump that's in C:/strawberry/c/bin ... so try:
C:/strawberry/c/bin/objdump -t C:/strawberry/perl/lib/CORE/libperl516. +a >dump.txt
Does that make any difference for you ?
Finally, the various digests I get for libperl516.a are:
Enter the filename (full path): C:/strawberry/perl/lib/CORE/libperl516 +.a MD5: e53826b93afd80de2e44038da93e63ba SHA1: 68737f9536907c5a37833b94e26685a10d9c5ce0 SHA256: c66d4ad43a583304b800e22966de0ab5baa6000ccb956643559b8e76f62e84 +dc
Does that match what you get ? (No need to check all 3 - any one will do.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^6: Can't compile XS code
by nglenn (Beadle) on Oct 27, 2012 at 19:12 UTC
    SHA1 was correct. When I checked where objdump was, however, I found it in two places: my separate MSYS installation, and the strawberry one. Once I removed all of the MINGW stuff from the path, strawberry no longer had any trouble compiling XS stuff. Maybe I had a wrong version of MINGW or something; either way, I'm happy it works now. Thanks!
      Maybe I had a wrong version of MINGW

      It's probably a 32-bit version of MinGW - which will still work fine on your 64-bit system, btw.
      But there are incompatibilities between the 32-bit binaries it builds/uses and the 64-bit binaries that Strawberry builds/uses - and it's one or more of those incompatibilities that has bitten you in this instance.

      I'm pleased it's finally working. Thank you for the feedback.

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001163]
help
Chatterbox?
[Corion]: choroba: Yeah - I basically have the same for regenerating README and README.mkdown already, except that I do that in Makefile.PL, but I guess one or the other thing should somehow work ;)
[ambrus]: was this bug: https://rt.cpan. org/Public/Bug/ Display.html?id= 59814
[Corion]: ambrus: Oh - that one would be much harder to automate... The SYNOPSIS section should mostly be a runnable program IMO, but I write only small snippets in my documentation for single functions/methods, and creating the appropriate environment for ...
[Corion]: ... those in an automated fashion seems somewhat hard to me. Although it should do wonders for the test coverage ;)
[haukex]: Corion: I once wrote an automated thingy for that here
[haukex]: here's the code that uses it

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-02-27 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.