Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^8: Perl XS binding to a struct with an array of chars*

by syphilis (Archbishop)
on Nov 24, 2022 at 23:26 UTC ( [id://11148365]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Perl XS binding to a struct with an array of chars*
in thread Perl XS binding to a struct with an array of chars*

Ideas?

It can take a few minutes to run through the test suite, but 30 minutes is a bit extreme.

I see you've got a 32-bit build of Strawberry Perl. That's a little uncommon these days, but should not be an issue.
I've just installed Inline-C-0.82 on a 32-bit SP-5.32.1.1 using cpanm, and it all went fine.
Try turning on verbosity (cpanm -vi Inline::C). That should at least show us where the hang is happening.

Cheers,
Rob

Replies are listed 'Best First'.
Re^9: Perl XS binding to a struct with an array of chars*
by GrandFather (Saint) on Nov 25, 2022 at 04:02 UTC

    Hi Rob, I have had endless trouble installing "interesting" modules on my work machine. No Idea why, but I've found it impossible to install Tk against any version of Strawberry Perl I care to try and a multitude of other modules (which I don't remember) have given grief. I installed Win32::IPC and rerun the Inline::C install. It at least completes now, but fails most of its tests. So I installed it with force. Your sample code then at least starts running, but fails with:

    "C:\STRAWB~2\perl\bin\perl.exe" -MExtUtils::Command -e mv -- noname_pl +_cf1b.xsc noname_pl_cf1b.c gcc -c -iquote"D:/Scratch~~/PerlScratch" -DWIN32 -D__USE_MINGW_ANSI_S +TDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_ +SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 + -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" "-IC:\STRAWB~2\perl\lib\CO +RE" noname_pl_cf1b.c cc1.exe: error: unrecognized command line option "-iquoteD:/Scratch~~/ +PerlScratch" gmake: *** [Makefile:333: noname_pl_cf1b.o] Error 1 A problem was encountered while attempting to compile and install your + Inline C code. The command that failed was: "gmake" with error code 2 ...

    I'm not going to pursue this at work, but I may pick it up again at home.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
      I'm not going to pursue this at work, but I may pick it up again at home.

      That "work" environment seems pretty weird to me.
      Things might improve there if, rather than using the .msi version they've provided, you installed and ran the "portable" 32-bit SP-5.32.1.1 build on that machine. (I believe you can do that as User.)
      Similarly, on your home PC I recommend installing the portable version over the .msi option.

      And I do encourage people to install and use Inline::C.
      It's the ideal way of doing C and perl API experiments to investigate and tweak the things that will/won't work in the XS environment.

      Cheers,
      Rob.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148365]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-25 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found