Re: Blender failure to build on all repos

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

 



The errors are not the same across releases.

The complete error on F34 is:

~~~
Error:
Problem: package OpenColorIO-devel-2.0.1-1.fc34.x86_64 requires libOpenColorIO.so.2.0()(64bit), but none of the providers can be installed - package OpenColorIO-devel-2.0.1-1.fc34.x86_64 requires OpenColorIO(x86-64) = 2.0.1-1.fc34, but none of the providers can be installed - cannot install both OpenColorIO-1.1.1-12.fc34.x86_64 and OpenColorIO-2.0.1-1.fc34.x86_64 - package OpenImageIO-2.2.16.0-1.fc34.x86_64 requires libOpenColorIO.so.1()(64bit), but none of the providers can be installed - package OpenImageIO-devel-2.2.16.0-1.fc34.x86_64 requires OpenImageIO(x86-64) = 2.2.16.0-1.fc34, but none of the providers can be installed
  - cannot install the best candidate for the job
~~~

I haven’t looked into this thoroughly enough to determine whether it’s still a problem.

The complete error on F33, F35, and F36 is:

~~~
/builddir/build/BUILD/blender-2.93.3/source/blender/io/usd/intern/usd_writer_abstract.cc: In member function 'pxrInternal_v0_21__pxrReserved__::UsdShadeMaterial blender::io::usd::USDAbstractWriter::ensure_usd_material(Material*)': /builddir/build/BUILD/blender-2.93.3/source/blender/io/usd/intern/usd_writer_abstract.cc:105:53: error: no matching function for call to 'pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(pxrInternal_v0_21__pxrReserved__::UsdShadeShader&, const pxrInternal_v0_21__pxrReserved__::TfToken&)' 105 | usd_material.CreateSurfaceOutput().ConnectToSource(shader, usdtokens::surface); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/pxr/usd/usdShade/nodeGraph.h:39,
                 from /usr/include/pxr/usd/usdShade/material.h:31,
from /builddir/build/BUILD/blender-2.93.3/source/blender/io/usd/intern/usd_writer_abstract.h:26, from /builddir/build/BUILD/blender-2.93.3/source/blender/io/usd/intern/usd_writer_abstract.cc:19: /usr/include/pxr/usd/usdShade/output.h:277:10: note: candidate: 'bool pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(const pxrInternal_v0_21__pxrReserved__::UsdShadeConnectionSourceInfo&, pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectionModification) const'
  277 |     bool ConnectToSource(
      |          ^~~~~~~~~~~~~~~
/usr/include/pxr/usd/usdShade/output.h:278:45: note: no known conversion for argument 1 from 'pxrInternal_v0_21__pxrReserved__::UsdShadeShader' to 'const pxrInternal_v0_21__pxrReserved__::UsdShadeConnectionSourceInfo&'
  278 |         UsdShadeConnectionSourceInfo const &source,
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/pxr/usd/usdShade/output.h:285:10: note: candidate: 'bool pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(const pxrInternal_v0_21__pxrReserved__::UsdShadeConnectableAPI&, const pxrInternal_v0_21__pxrReserved__::TfToken&, pxrInternal_v0_21__pxrReserved__::UsdShadeAttributeType, pxrInternal_v0_21__pxrReserved__::SdfValueTypeName) const'
  285 |     bool ConnectToSource(
      |          ^~~~~~~~~~~~~~~
/usr/include/pxr/usd/usdShade/output.h:286:39: note: no known conversion for argument 1 from 'pxrInternal_v0_21__pxrReserved__::UsdShadeShader' to 'const pxrInternal_v0_21__pxrReserved__::UsdShadeConnectableAPI&'
  286 |         UsdShadeConnectableAPI const &source,
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/pxr/usd/usdShade/output.h:296:10: note: candidate: 'bool pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(const pxrInternal_v0_21__pxrReserved__::SdfPath&) const'
  296 |     bool ConnectToSource(SdfPath const &sourcePath) const;
      |          ^~~~~~~~~~~~~~~
/usr/include/pxr/usd/usdShade/output.h:296:10: note: candidate expects 1 argument, 2 provided /usr/include/pxr/usd/usdShade/output.h:303:10: note: candidate: 'bool pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(const pxrInternal_v0_21__pxrReserved__::UsdShadeInput&) const'
  303 |     bool ConnectToSource(UsdShadeInput const &sourceInput) const;
      |          ^~~~~~~~~~~~~~~
/usr/include/pxr/usd/usdShade/output.h:303:10: note: candidate expects 1 argument, 2 provided /usr/include/pxr/usd/usdShade/output.h:310:10: note: candidate: 'bool pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(const pxrInternal_v0_21__pxrReserved__::UsdShadeOutput&) const'
  310 |     bool ConnectToSource(UsdShadeOutput const &sourceOutput) const;
      |          ^~~~~~~~~~~~~~~
/usr/include/pxr/usd/usdShade/output.h:310:10: note: candidate expects 1 argument, 2 provided
~~~

In the current sources for https://src.fedoraproject.org/rpms/usd/, check pxr/usd/usdShade/shader.h, line 203, paying particular attention to the comment:

~~~
/// Contructs and returns a UsdShadeConnectableAPI object with this shader.
    ///
/// Note that most tasks can be accomplished without explicitly constructing
    /// a UsdShadeConnectable API, since connection-related API such as
    /// UsdShadeConnectableAPI::ConnectToSource() are static methods, and
    /// UsdShadeShader will auto-convert to a UsdShadeConnectableAPI when
    /// passed to functions that want to act generically on a connectable
    /// UsdShadeConnectableAPI object.
    USDSHADE_API
    UsdShadeConnectableAPI ConnectableAPI() const;
~~~

I’m not taking time to track down why the implicit conversion is not possible here, and I haven’t tried to replicate your COPR in order to test the following patch, but (despite those caveats) I think that adding an explicit call to the above method has a pretty good chance of working:

~~~
diff -Naur blender-2.93.3-original/source/blender/io/usd/intern/usd_writer_abstract.cc blender-2.93.3/source/blender/io/usd/intern/usd_writer_abstract.cc --- blender-2.93.3-original/source/blender/io/usd/intern/usd_writer_abstract.cc 2021-04-20 22:02:39.000000000 -0400 +++ blender-2.93.3/source/blender/io/usd/intern/usd_writer_abstract.cc 2021-08-21 14:06:34.944881162 -0400
@@ -102,7 +102,9 @@
shader.CreateInput(usdtokens::metallic, pxr::SdfValueTypeNames->Float).Set(material->metallic);

   /* Connect the shader and the material together. */
- usd_material.CreateSurfaceOutput().ConnectToSource(shader, usdtokens::surface);
+  usd_material.CreateSurfaceOutput().ConnectToSource(
+      shader.ConnectableAPI(),
+      usdtokens::surface);

   return usd_material;
 }
~~~


On 8/20/21 7:21 PM, Luya Tshimbalanga wrote:
Thank you for pointer. After applying a patch made by a co-maintainer, another issue occurred at that line:

/usr/include/pxr/usd/usdShade/output.h:303:10: note:   candidate expects 1 argument, 2 provided
/usr/include/pxr/usd/usdShade/output.h:310:10: note: candidate: 'bool pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(const pxrInternal_v0_21__pxrReserved__::UsdShadeOutput&) const'
   310 |     bool ConnectToSource(UsdShadeOutput const &sourceOutput) const;
       |          ^~~~~~~~~~~~~~~
/usr/include/pxr/usd/usdShade/output.h:310:10: note:   candidate expects 1 argument, 2 provided
gmake[2]: *** [source/blender/io/usd/CMakeFiles/bf_usd.dir/build.make:107: source/blender/io/usd/CMakeFiles/bf_usd.dir/intern/usd_writer_abstract.cc.o] Error 1
gmake[2]: Leaving directory '/builddir/build/BUILD/blender-2.93.3/redhat-linux-build'

The source build is on https://copr.fedorainfracloud.org/coprs/luya/blender-egl/build/2531231/ including the patch. Unfortunately, the issue is outside my scope.

Luya Tshimbalanga
Fedora Design Suite maintainer
Fedora Design Team
_______________________________________________
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

_______________________________________________
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