I recently built perl 5.32.1 with -DDEBUGGING & DateTime 1.54 from source (Ports, FreeBSD 13-STABLE).
Now use of DateTime results in "failed to extend arg stack" (a solution seems not likely any time soon, tagged as "low serverity) ...
# perl -MDateTime -e0
panic: XSUB Package::Stash::XS::list_all_symbols (XS.c) failed to exte
+nd arg stack: base=801cff418, sp=801cff480, hwm=801cff440
Compilation failed in require at /usr/local/lib/perl5/site_perl/mach/5
+.32/DateTime/Duration.pm line 12.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/ma
+ch/5.32/DateTime/Duration.pm line 12.
Compilation failed in require at /usr/local/lib/perl5/site_perl/mach/5
+.32/DateTime.pm line 14.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/ma
+ch/5.32/DateTime.pm line 14.
Compilation failed in require.
BEGIN failed--compilation aborted.
What good is -DDEBUGGING now if it XS modules cannot run.
# perl -V
Summary of my perl5 (revision 5 version 32 subversion 1) configuration
+:
Platform:
osname=freebsd
osvers=13.0-stable
archname=amd64-freebsd-thread-multi
uname='freebsd gaia 13.0-stable freebsd 13.0-stable #1 zfs-arc-uni
+t-n246112-d528d2685de: mon jun 28 01:30:03 hst 2021 root@gaia:src-bui
+ldobjsrc-buildsrcamd64.amd64sysinvm-efi amd64 '
config_args='-Darchlib=/usr/local/lib/perl5/5.32/mach -Dcc=cc -Dcf
+_by=mat -Dcf_email=mat@FreeBSD.org -Dcf_time=Sat Jan 23 04:56:40 HST
+2021 -Dinc_version_list=none -Dlibperl=libperl.so.5.32.1 -Dman1dir=/u
+sr/local/lib/perl5/5.32/perl/man/man1 -Dman3dir=/usr/local/lib/perl5/
+5.32/perl/man/man3 -Dprefix=/usr/local -Dprivlib=/usr/local/lib/perl5
+/5.32 -Dscriptdir=/usr/local/bin -Dsitearch=/usr/local/lib/perl5/site
+_perl/mach/5.32 -Dsitelib=/usr/local/lib/perl5/site_perl -Dsiteman1di
+r=/usr/local/lib/perl5/site_perl/man/man1 -Dsiteman3dir=/usr/local/li
+b/perl5/site_perl/man/man3 -Dusenm=n -Duseshrplib -sde -Ui_iconv -Ui_
+malloc -Uinstallusrbinperl -Alddlflags=-L/src-build/ports-build/src-b
+uild/ports/lang/perl5.32/work/perl-5.32.1 -L/usr/local/lib/perl5/5.32
+/mach/CORE -lperl -Dshrpldflags=$(LDDLFLAGS:N-L/src-build/ports-build
+/src-build/ports/lang/perl5.32/work/perl-5.32.1:N-L/usr/local/lib/per
+l5/5.32/mach/CORE:N-lperl) -Wl,-soname,$(LIBPERL:R) -DDEBUGGING -Dopt
+imize=-g -Dusedtrace -Ui_gdbm -Dusemultiplicity=y -Dusemymalloc=n -Du
+sesitecustomize -Dusethreads=y -Accflags=-DUSE_THREAD_SAFE_LOCALE'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_
+LOCALE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-stron
+g -I/usr/local/include'
optimize='-g'
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_
+LOCALE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-stron
+g -I/usr/local/include'
ccversion=''
gccversion='FreeBSD Clang 11.0.1 (git@github.com:llvm/llvm-project
+.git llvmorg-11.0.1-0-g43ff75f2c3fe)'
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 ='-pthread -Wl,-E -fstack-protector-strong -L/usr/local/l
+ib'
libpth=/usr/lib /usr/local/lib /usr/lib/clang/11.0.1/lib /usr/lib
libs=-lpthread -lgdbm -lm -lcrypt -lutil
perllibs=-lpthread -lm -lcrypt -lutil
libc=
so=so
useshrplib=true
libperl=libperl.so.5.32.1
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE'
cccdlflags='-DPIC -fPIC'
lddlflags='-shared -L/usr/local/lib/perl5/5.32/mach/CORE -lperl -
+L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
DEBUGGING
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_TRACK_MEMPOOL
USE_64_BIT_ALL
USE_64_BIT_INT
USE_ITHREADS
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_REENTRANT_API
USE_SITECUSTOMIZE
USE_THREAD_SAFE_LOCALE
Built under freebsd
@INC:
/usr/local/lib/perl5/site_perl/mach/5.32
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.32/mach
/usr/local/lib/perl5/5.32
Is there a way to have perl built with DEBUGGING and XS modules not fail?