Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules

by parv (Parson)
on Jul 25, 2021 at 14:10 UTC ( [id://11135378]=note: print w/replies, xml ) Need Help??


in reply to Re: perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules
in thread perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules

I did built DateTime from source ...

I recently built perl 5.32.1 with -DDEBUGGING & DateTime 1.54 from source ...

... Only after then I had posted here. FreeBSD Ports allows one to do that any time (except for the cases where only the binary blobs are available).

  • Comment on Re^2: perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules

Replies are listed 'Best First'.
Re^3: perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules
by syphilis (Archbishop) on Jul 25, 2021 at 15:12 UTC
    I recently built perl 5.32.1 with -DDEBUGGING

    You built that -DDEBUGGING perl yourself ??
    I took one look at the "config_args" as reported in the "perl -V" output you provided in your original post and decided that this must be a perl provided by FreeBSD Ports.
    When I build perl on FreeBSD 12.0, I specify Configure args of "-des -Duse64bitall -Dprefix=/home/me/perl-5.x.y", and that's all.
    If I wanted a DEBUG perl then I'd just be adding the "-DDEBUGGING" flag to the list I used. (It's a while since I've built a -DDEBUGGING perl, so correct me if there are other flags that need to be added.)

    Try building your perl with a trimmed back list of configure args (like the list that I use) and see if that makes a difference.

    How did you actually build and install DateTime-1.54 from source ? (Seeing the output from that process might be useful.)

    Cheers,
    Rob

      Yes, I had built perl from source with debugging via Potrs (set DEBUG option for the port either in /etc/make.conf or via "dialog" brought up with make config in the port directory); at the end of "perl -V" ...

      ... Characteristics of this binary (from libperl): Compile-time options: DEBUGGING HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE ...

      I had rebuilt DateTime again (from source, with perl with debugging) in case I might not have removed all of its dependencies. No difference.

      I will try later to build perl & DateTime outside of Ports, but does not look like that would help any given the evidence so far.

        I will try later to build perl & DateTime outside of Ports, but does not look like that would help any given the evidence so far.

        It's not exactly the same as what you are doing, but I've just built this -DDEBUGGING perl-5.34.0 on my FreeBSD-12.0 system:
        $ perl -V Summary of my perl5 (revision 5 version 34 subversion 0) configuration +: Platform: osname=freebsd osvers=12.0-release archname=amd64-freebsd uname='freebsd sisbsd.home 12.0-release freebsd 12.0-release r3416 +66 generic amd64 ' config_args='-des -Duse64bitall -Dprefix=/home/sisyphus/perl-5.34. +0-d-DEBUG -DDEBUGGING' hint=recommended useposix=true d_sigaction=define useithreads=undef usemultiplicity=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define Compiler: cc='cc' ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-s +trict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D +_FORTIFY_SOURCE=2' optimize='-O2 -g' cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-s +trict-aliasing -pipe -fstack-protector-strong -I/usr/local/include' ccversion='' gccversion='4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601 +/final 335540)' gccosandvers='' intsize=4 longsize=8 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=16 longdblkind=3 ivtype='long' ivsize=8 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='cc' ldflags ='-Wl,-E -fstack-protector-strong -L/usr/local/lib' libpth=/usr/lib /usr/local/lib /usr/lib/clang/6.0.1/lib libs=-lpthread -lgdbm -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc libc= so=so useshrplib=false libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=so d_dlsymun=undef ccdlflags=' ' cccdlflags='-DPIC -fPIC' lddlflags='-shared -L/usr/local/lib -fstack-protector-strong' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING HAS_TIMES PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_OP_PARENT PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Built under freebsd Compiled at Jul 26 2021 10:50:16 @INC: /home/sisyphus/perl-5.34.0-d-DEBUG/lib/site_perl/5.34.0/amd64-free +bsd /home/sisyphus/perl-5.34.0-d-DEBUG/lib/site_perl/5.34.0 /home/sisyphus/perl-5.34.0-d-DEBUG/lib/5.34.0/amd64-freebsd /home/sisyphus/perl-5.34.0-d-DEBUG/lib/5.34.0
        The Configure args that I specified (config_args) are as shown in that output. Having tested and installed that perl, I prepended its location to $PATH and ran cpan -i DateTime
        That ran successfully, and I can find no problem in running DateTime-1.54:
        $ perl -MDateTime -wle 'print $DateTime::VERSION;' 1.54
        Cheers,
        Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-16 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found