Re: krita build failure with inlining on ppc64le only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Shaw wrote on 2021/08/22 21:42:
I'm trying to finalize all the builds for OpenEXR/Imath 3.1 in my side tag
but having a tough time with krita getting a few errors[1] like this:

In file included from
/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h:18,
                  from /usr/include/eigen3/Eigen/Core:350,
                  from /usr/include/eigen3/Eigen/Dense:1,
                  from
/builddir/build/BUILD/krita-4.4.5/libs/global/KisBezierUtils.cpp:36:
/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h: In
function 'Eigen::internal::ploadRhsMMA<float, float __vector(4)>(float
const*, float __vector(4)&)void':
/usr/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h:215:28:
error: inlining failed in call to 'always_inline'
'Eigen::internal::ploadRhs<float, float __vector(4)>(float const*)float
__vector(4)': target specific option mismatch

Thoughts?

Please provide task URL, not only build log URL:
https://koji.fedoraproject.org/koji/taskinfo?taskID=74326592

By the way:
https://gitlab.com/libeigen/eigen/-/commit/c29935b323ffb0b903f640111f0a0b0440e94a2e

eigen3 Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h contains
--------------------------------------------
#pragma GCC target("cpu=power10")
--------------------------------------------

but Fedora rawhide ppc64le build flags contains "-mcpu=power8 -mtune=power8", so
there is "target specific option mismatch", I guess.
As the above eigen3 commit shows, I think you should be able to workaround
this by the following, for example (on krita.spec)

--------------------------------------------
%build
%ifarch ppc64 ppc64le
%global optflags_orig %optflags
%global optflags %optflags_orig -DEIGEN_ALTIVEC_DISABLE_MMA
%endif
%cmake_kf5
--------------------------------------------

(see Eigen/src/Core/arch/AltiVec/MatrixProduct.h around the line 22)


Interestingly, and I don't know if it's related or not, but with %check
enabled on vips, it had a failure in one test with ppc64le only.

I don't understand now why you mention vips here, I don't think
krita build failure is related with vips.
However vips "make check" failure is tracked on the following, FYI:
https://bugzilla.redhat.com/show_bug.cgi?id=1917540


Thanks,
Richard

[1] https://kojipkgs.fedoraproject.org//work/tasks/6679/74326679/build.log


Regards,
Mamoru
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux