Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 865191

Summary: sci-libs/pdal-2.4.0-r1 - /usr/include/bits/mathcalls.h:143:1: note: no known conversion for argument 1 from 'const __vector(4) float' to 'double'
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Thomas Bettler <thomas.bettler>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, sci-geosciences
Priority: Normal    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 251464, 858098    
Attachments: build.log (ppc, 2.4.0)
emerge --info

Description ernsteiswuerfel archtester 2022-08-15 01:20:14 UTC
Created attachment 799641 [details]
build.log (ppc, 2.4.0)

[...]
/usr/include/bits/mathcalls.h:143:1: note:   no known conversion for argument 1 from 'const __vector(4) float' to 'double'
  143 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^
ninja: build stopped: subcommand failed.
 * ERROR: sci-libs/pdal-2.4.0-r1::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
Comment 1 ernsteiswuerfel archtester 2022-08-15 01:20:35 UTC
Created attachment 799643 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 01:25:56 UTC
Could you apply https://gitlab.com/libeigen/eigen/-/commit/9e0afe0f02173042ea03c10a6f896632fe84c6ff to dev-cpp/eigen and try again?
Comment 4 ernsteiswuerfel archtester 2022-08-15 11:40:48 UTC
(In reply to Sam James from comment #3)
> (In reply to Sam James from comment #2)
> > Could you apply
> > https://gitlab.com/libeigen/eigen/-/commit/
> > 9e0afe0f02173042ea03c10a6f896632fe84c6ff to dev-cpp/eigen and try again?
> 
> may need them in this order:
Unfortunately the 3 patches or the single patch don't apply.

Also I don't quite see the point as dev-cpp/eigen is no dep for pdal or gdal. Or am I missing something here?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 12:16:35 UTC
(In reply to ernsteiswuerfel from comment #4)
> (In reply to Sam James from comment #3)
> > (In reply to Sam James from comment #2)
> > > Could you apply
> > > https://gitlab.com/libeigen/eigen/-/commit/
> > > 9e0afe0f02173042ea03c10a6f896632fe84c6ff to dev-cpp/eigen and try again?
> > 
> > may need them in this order:
> Unfortunately the 3 patches or the single patch don't apply.
> 
> Also I don't quite see the point as dev-cpp/eigen is no dep for pdal or
> gdal. Or am I missing something here?

FAILED: [0mCMakeFiles/pdal_base.dir/filters/ApproximateCoplanarFilter.cpp.o 
/usr/bin/powerpc-unknown-linux-gnu-g++ -DUNIX -Dpdal_base_EXPORTS -I/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/gtest/include -I/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/gtest -I/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src -I/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src_build/include -I/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor -I/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/eigen -I/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/nlohmann -I/usr/include/libxml2 -I/usr/include/gdal  -O2 -mcpu=7450 -mtune=7450 -pipe -fPIC -Wno-implicit-fallthrough -Wno-int-in-bool-context -Wno-dangling-else -Wno-noexcept-type -Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wno-error=parentheses -Wno-error=cast-qual -Wredundant-decls -Wno-unused-parameter -Wno-unused-variable -Wno-long-long -Wno-unknown-pragmas -Wno-deprecated-declarations -std=c++17 -MD -MT CMakeFiles/pdal_base.dir/filters/ApproximateCoplanarFilter.cpp.o -MF CMakeFiles/pdal_base.dir/filters/ApproximateCoplanarFilter.cpp.o.d -o CMakeFiles/pdal_base.dir/filters/ApproximateCoplanarFilter.cpp.o -c /var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/filters/ApproximateCoplanarFilter.cpp
In file included from /var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/eigen/Eigen/Core:203,
                 from /var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/eigen/Eigen/Dense:1,
                 from /var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/pdal/private/MathUtils.hpp:45,
                 from /var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/filters/ApproximateCoplanarFilter.cpp:39:
/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h: In function 'Packet Eigen::internal::psqrt(const Packet&) [with Packet = Eigen::internal::eigen_packet_wrapper<__vector(8) short unsigned int, 0>]':
/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1296:32: error: 'vec_sqrt' was not declared in this scope; did you mean 'vec_rsqrt'?
 1296 |   BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
      |                                ^~~~~~~~
/var/tmp/portage/sci-libs/pdal-2.4.0-r1/work/PDAL-2.4.0-src/vendor/eigen/Eigen/src/Core/arch/AltiVec/PacketMath.h:1262:22: note: in definition of macro 'BF16_TO_F32_UNARY_OP_WRAPPER'
 1262 |   Packet4f op_even = OP(a_even);\
      |                      ^~

But oops. It's bundled. I was too tired last night. Ugh.
Comment 6 Larry the Git Cow gentoo-dev 2023-05-06 03:52:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=324f77b829f28c3cb6d1948ab287b115b9fa5704

commit 324f77b829f28c3cb6d1948ab287b115b9fa5704
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-06 03:52:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-06 03:52:10 +0000

    profiles/arch/powerpc/ppc32: mask sci-libs/pdal
    
    Closes: https://bugs.gentoo.org/865191
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/powerpc/ppc32/package.mask     | 6 +++++-
 profiles/arch/powerpc/ppc32/package.use.mask | 4 ++++
 2 files changed, 9 insertions(+), 1 deletion(-)