Closed YuryPakhomov closed 2 years ago
I compile on Slackware64-current with lastest libraries: gcc-10.2.0_multilib-x86_64-4alien glibc-2.33_multilib-x86_64-1alien perl-pdl-2.033-x86_64-1PDL/PP/PDLCode.pm
I found that line numeration is changed in new PDL version. PDL/PP/PdlParObj.pm, PDL/PP/PDLCode.pm and others. PDL/Drawing/Prima/Utils.c should be changed too.
This was fixed in PDL 2.037.
As mentioned by @mohawk2, this arose from a change in PDL itself. PDL was later changed so that this is no longer a bug. As of PDL v2.072 and PDL::Drawing::Prima v0.13, everything compiles fine. Thanks for reporting the issue, and I apologize for not responding more promptly!
/usr/local/lib64/perl5/PDL/PP/PdlParObj.pm: In function 'pdl_trim_collated_min_readdata': /usr/local/lib64/perl5/PDL/PP/PdlParObj.pm:440:143: error: invalid operands to binary < (have 'PDL_CFloat' {aka '_Complex float'} and 'PDL_CFloat' {aka '_Complex float'}) /usr/local/lib64/perl5/PDL/PP/PdlParObj.pm:440:143: error: invalid operands to binary < (have 'PDL_CDouble' {aka '_Complex double'} and 'PDL_CDouble' {aka '_Complex double'}) /usr/local/lib64/perl5/PDL/PP/PdlParObj.pm: In function 'pdl_trim_collated_max_readdata': /usr/local/lib64/perl5/PDL/PP/PdlParObj.pm:440:143: error: invalid operands to binary > (have 'PDL_CFloat' {aka '_Complex float'} and 'PDL_CFloat' {aka '_Complex float'}) /usr/local/lib64/perl5/PDL/PP/PdlParObj.pm:440:143: error: invalid operands to binary > (have 'PDL_CDouble' {aka '_Complex double'} and 'PDL_CDouble' {aka '_Complex double'}) error building lib/PDL/Drawing/Prima/Utils.o from 'lib/PDL/Drawing/Prima/Utils.c' at /usr/share/perl5/ExtUtils/CBuilder/Base.pm line 185.