If anyone running CygPerl on Windows gets a different result trying to build Text::CSV_XS, please let me know in the thread, thanks
I get something quite different:
Owner@DESKTOP-88J497T /cygdrive/d/s/Text-CSV_XS-1.61
$ make
cp CSV_XS.pm blib/lib/Text/CSV_XS.pm
Running Mkbootstrap for CSV_XS ()
chmod 644 "CSV_XS.bs"
"/cygdrive/c/cygperl-5.40.0-d/bin/perl.exe" -MExtUtils::Command::MM -e
+ 'cp_nonempty' -- CSV_XS.bs blib/arch/auto/Text/CSV_XS/CSV_XS.bs 644
"/cygdrive/c/cygperl-5.40.0-d/bin/perl.exe" "/cygdrive/c/cygperl-5.40.
+0-d/lib/5.40.0/ExtUtils/xsubpp" -typemap '/cygdrive/c/cygperl-5.40.0
+-d/lib/5.40.0/ExtUtils/typemap' CSV_XS.xs > CSV_XS.xsc
mv CSV_XS.xsc CSV_XS.c
gcc -c -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing
+-pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE
+=2 -DUSEIMPORTLIB -O3 -DVERSION=\"1.61\" -DXS_VERSION=\"1.61\" "-I
+/cygdrive/c/cygperl-5.40.0-d/lib/5.40.0/cygwin-thread-multi/CORE" C
+SV_XS.c
rm -f blib/arch/auto/Text/CSV_XS/CSV_XS.dll
g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,-
+-enable-auto-image-base -L/usr/local/lib -fstack-protector-strong CS
+V_XS.o -o blib/arch/auto/Text/CSV_XS/CSV_XS.dll \
/cygdrive/c/cygperl-5.40.0-d/lib/5.40.0/cygwin-thread-multi/CORE/cyg
+perl5_40_0.dll -lpthread -ldl -lcrypt \
chmod 755 blib/arch/auto/Text/CSV_XS/CSV_XS.dll
Manifying 1 pod document
Owner@DESKTOP-88J497T /cygdrive/d/s/Text-CSV_XS-1.61
$ make test
"/cygdrive/c/cygperl-5.40.0-d/bin/perl.exe" -MExtUtils::Command::MM -e
+ 'cp_nonempty' -- CSV_XS.bs blib/arch/auto/Text/CSV_XS/CSV_XS.bs 644
PERL_DL_NONLAZY=1 "/cygdrive/c/cygperl-5.40.0-d/bin/perl.exe" "-MExtUt
+ils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switc
+hes; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/10_base.t ....... ok
t/12_acc.t ........ ok
t/15_flags.t ...... ok
t/16_import.t ..... ok
t/20_file.t ....... ok
t/21_lexicalio.t .. ok
t/22_scalario.t ... ok
t/30_types.t ...... ok
t/40_misc.t ....... ok
t/41_null.t ....... ok
t/45_eol.t ........ ok
t/46_eol_si.t ..... ok
t/47_comment.t .... ok
t/50_utf8.t ....... ok
t/51_utf8.t ....... ok
t/55_combi.t ...... ok
t/60_samples.t .... ok
t/65_allow.t ...... ok
t/66_formula.t .... ok
t/67_emptrow.t .... ok
t/68_header.t ..... ok
t/70_rt.t ......... ok
t/71_strict.t ..... ok
t/75_hashref.t .... ok
t/76_magic.t ...... ok
t/77_getall.t ..... ok
t/78_fragment.t ... ok
t/79_callbacks.t .. ok
t/80_diag.t ....... ok
t/81_subclass.t ... ok
t/85_util.t ....... ok
t/90_csv.t ........ ok
t/91_csv_cb.t ..... ok
t/92_stream.t ..... ok
All tests successful.
Files=34, Tests=52594, 17 wallclock secs ( 1.47 usr 0.34 sys + 12.54
+cusr 2.51 csys = 16.86 CPU)
Result: PASS
And I can't see that suspicious
-ffile-prefix-map.... stuff in my build of the module.
Here is my
perl -V output:
$ perl -V
Summary of my perl5 (revision 5 version 40 subversion 0) configuration
+:
Platform:
osname=cygwin
osvers=3.3.6-341.x86_64
archname=cygwin-thread-multi
uname='cygwin_nt-10.0-22631 desktop-88j497t 3.3.6-341.x86_64 2022-
+09-05 11:15 utc x86_64 cygwin '
config_args='-des -Dusethreads -Dusemultiplicity -Dprefix=/cygdriv
+e/c/cygperl-5.40.0-d -Dlibpth=/lib/gcc/x86_64-pc-cygwin/11'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='gcc'
ccflags ='-U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-alia
+sing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_S
+OURCE=2'
optimize='-O3'
cppflags='-U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -fno-strict-alia
+sing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='11.3.0'
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='g++'
ldflags =' -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,-
+-enable-auto-image-base -fstack-protector-strong -L/usr/local/lib'
libpth=/lib/gcc/x86_64-pc-cygwin/11 /usr/local/lib /usr/lib /usr/l
+ib/w32api /lib
libs=-lpthread -ldl -lcrypt
perllibs=-lpthread -ldl -lcrypt
libc=/usr/lib/libcygwin.a
so=dll
useshrplib=true
libperl=cygperl5_40_0.dll
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=dll
d_dlsymun=undef
ccdlflags=' '
cccdlflags=' '
lddlflags=' --shared -Wl,--enable-auto-import -Wl,--export-all-sy
+mbols -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector
+-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_LONG_DOUBLE
HAS_STRTOLD
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_SIPHASH13
PERL_HASH_USE_SBOX32
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV
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
Built under cygwin
Compiled at Jun 10 2024 15:00:07
@INC:
/cygdrive/c/cygperl-5.40.0-d/lib/site_perl/5.40.0/cygwin-thread-mu
+lti
/cygdrive/c/cygperl-5.40.0-d/lib/site_perl/5.40.0
/cygdrive/c/cygperl-5.40.0-d/lib/5.40.0/cygwin-thread-multi
/cygdrive/c/cygperl-5.40.0-d/lib/5.40.0
Not exactly the same version of perl as yours, and an older gcc (11.3.0) - but I don't think any of that would be relevant to the issue you're facing.
Cheers,
Rob