Thomas - 2023-09-15

Hello,

under Arch Linux
https://metacpan.org/pod/PDL
using
https://metacpan.org/pod/Alien::FreeImage
throws
see log below

Any ideas how to tackle this?

Thanks a lot, Thomas

sudo cpanm Alien::FreeImage # first
(used by: sudo cpanm PDL::IO::Image # second)
...
Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow dynamic exception specifications
2150 | Vec4<t>::normalizedExc () const throw (IEX_NAMESPACE::MathExc)
| ^~~~~
In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108,
from Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40,
from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49:
Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’:
Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
462 | register int e = (x.i >> 23) & 0x000001ff;
| ^
Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
473 | register int m = x.i & 0x007fffff;
| ^
make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1</t>

ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33.

-> FAIL Installing Alien::FreeImage failed. See /root/.cpanm/work/1694702761.20233/build.log for details. Retry with --force to force install it.