http://qs321.pair.com?node_id=11138566


in reply to PDL 2.058 released

I tried to install it by cpanm but failed:
. . .
Extracting Types.pm Warning (mostly harmless): No library found for Use of uninitialized value in concatenation (.) or string at ./Makefil +e.PL line 11. Not building PDL::Graphics::PGPLOT, PGPLOT not installed No support for PDL::Graphics::IIS on win32 platform yet. Will skip bui +ld process Curses capable library not found, not building PDL::IO::Browser Error loading Alien::HDF4: ' *** Can't load dependency information for + Alien::HDF4: Can't locate Alien/HDF4/Install/Files.pm in @INC (you may need to inst +all the Alien::HDF4::Install::Files module) (@INC contains: C:/perl/p +erl/site/lib/MSWin32-x64-multi-thread C:/perl/perl/site/lib C:/perl/p +erl/vendor/lib C:/perl/perl/lib C:/Users/xiaoa/.cpanm/work/1636358758 +.1768/PDL-2.059 C:/Users/xiaoa/.cpanm/work/1636358758.1768/PDL-2.059/ +IO .) at C:/perl/perl/vendor/lib/ExtUtils/Depends.pm line 181. Skipping build of PDL::IO::HDF. Will skip build of PDL::GIS::Proj on this system - no Alien::Proj4 'gsl-config' is not recognized as an internal or external command, operable program or batch file. no GSL link info (libgsl probably not available) 'gsl-config' is not recognized as an internal or external command, operable program or batch file. no GSL include info (libgsl probably not available) 'gsl-config' is not recognized as an internal or external command, operable program or batch file. no GSL version info found (gsl-config not installed?) Not building GSL modules: GSL version UNKNOWN VERSION found, but need +at least 1.3 ExtUtils::F77: Unable to guess and/or validate system/compiler configu +ration ExtUtils::F77: Will try system=MinGW Compiler=GFortran ExtUtils::F77: Unable to guess and/or validate system/compiler configu +ration ExtUtils::F77: Will try system=MinGW Compiler=GFortran ill skip build of PDL::Transform::Proj4 on this system - no Alien::Pro +j4 -> OK Building and testing PDL-2.059 gcc -c "-IC:/Users/xiaoa/.cpanm/work/1636358758.1768/PDL-2.059/Basic/ +Core" -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO + -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS +-DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DV +ERSION=\"2.059\" -DXS_VERSION=\"2.059\" "-IC:\perl\perl\lib\CORE" +pp-log10.c In file included from pp-log10.c:56: ops.pd: In function 'pdl_log10_readdata': ops.pd:321:28: error: no matching function for type-generic call %extra, ^ ops.pd:314:28: error: no matching function for type-generic call $codestr ^ ops.pd:321:29: error: no matching function for type-generic call %extra, ^ ops.pd:314:29: error: no matching function for type-generic call $codestr




I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re^2: PDL 2.058 released
by syphilis (Archbishop) on Nov 08, 2021 at 08:28 UTC
      Unfortunately the line numbers are a bit misleading, and the error is nothing to do with %extra etc. The error is actually happening on a call to log10() when passed a PDL_Byte (unsigned char) and I think PDL_Ushort (unsigned short). I believe it's a compiler/libc bug of some sort.
        In fact, it's due to a new-ish change in GCC-land; on some versions, tgmath (type-generic maths) works fine for log10, but it seems they've changed that. Furthermore, clog10 (the complex version) is actually a GNU extension rather than part of C99, so I've adjusted ops.pd accordingly (and if there's no clog10 available, you can't do log10 on complex numbers, sorry - but it was ever thus).

        I've just released PDL 2.060 which I believe fixes this, so please give it a try.

        I'm sure it's a compiler/libc bug, but the good news is I'm now able to reproduce it locally, so a fix should be available in due course.
Re^2: PDL 2.058 released
by etj (Deacon) on Nov 08, 2021 at 15:30 UTC
    Thanks for the report! Could you share the result of perl -V:gccversion