Package Details: cycles-standalone 4.3.0-1

Git Clone URL: https://aur.archlinux.org/cycles-standalone.git (read-only, click to copy)
Package Base: cycles-standalone
Description: Blender Cycles rendering engine, standalone version
Upstream URL: https://github.com/blender/cycles.git
Licenses: Apache
Provides: cycles
Submitter: howetuft
Maintainer: howetuft
Last Packager: howetuft
Votes: 3
Popularity: 0.000183
First Submitted: 2021-01-02 20:57 (UTC)
Last Updated: 2024-12-11 05:20 (UTC)

Latest Comments

1 2 Next › Last »

howetuft commented on 2024-12-11 05:22 (UTC)

Hello @solonovamax, Thank you for your report. I've updated package to 4.3.0

solonovamax commented on 2024-12-09 20:47 (UTC) (edited on 2024-12-09 20:49 (UTC) by solonovamax)

Hi, the package is currently out of date due to cycles having been updated to 4.3.0. Further, the package build is broken. Here is a patch file which updates to 4.3.0 (& because of that fixes the build issue):

From 48c845bd01965d3a374398056e9218331b260563 Mon Sep 17 00:00:00 2001
From: solonovamax <solonovamax@12oclockpoint.com>
Date: Mon, 9 Dec 2024 15:16:54 -0500
Subject: [PATCH] Update to cycles 4.3.0

- Updates cycles to 4.3.0
- Fixes issue with patch file due to update
- Updates SRCINFO
---
 .SRCINFO       |  8 ++++----
 PKGBUILD       |  9 ++++-----
 usd24_05.patch | 10 +++++-----
 3 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 361549a..53fe607 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = cycles-standalone
    pkgdesc = Blender Cycles rendering engine, standalone version
-   pkgver = 4.1.1
+   pkgver = 4.3.0
    pkgrel = 1
    url = https://github.com/blender/cycles.git
    arch = x86_64
@@ -30,11 +30,11 @@ pkgbase = cycles-standalone
    optdepends = cuda
    optdepends = optix
    provides = cycles
-   source = git+https://github.com/blender/cycles.git#commit=b364692812269d7a67e7ebccc5dd02f53e79ef48
+   source = git+https://github.com/blender/cycles.git#tag=v4.3.0
    source = usd24_05.patch
    source = cycles_wrap.sh
-   sha256sums = 75436b6474b97850717b8eb0903c21f01b6e14ec0c8381012070c658d5167da7
-   sha256sums = 3e2958d5cd9de9c5ca77024c4682179ecdc5aae4fcc2007d50ef225a2be03cd4
+   sha256sums = 165dbd7d8a1904aa556d97b57bd485b5ead3f7a4495a6fedfd3f43b0bfe2eb29
+   sha256sums = 0667696595ae1d8759522408825b04babfbfab3c69d9a9b89877a75a80838c99
    sha256sums = 00afc4aab5541d147b013c31ab91d78e272654a75cae60b39cf70c23a2612c96

 pkgname = cycles-standalone
diff --git a/PKGBUILD b/PKGBUILD
index 69009c5..5fcacbc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@
 [[ -v CUDA_HOST_COMPILER ]] && _cuda_host_compiler=(${CUDA_HOST_COMPILER})

 pkgname=cycles-standalone
-pkgver=4.1.1
+pkgver=4.3.0
 pkgrel=1
 pkgdesc="Blender Cycles rendering engine, standalone version"
 arch=(x86_64)
@@ -20,12 +20,11 @@ depends=(pugixml opencolorio boost-libs python gflags openimageio intel-oneapi-t
 makedepends=(cmake git boost llvm python)
 optdepends=(google-glog cuda optix)
 provides=(cycles)
-_commit=b364692812269d7a67e7ebccc5dd02f53e79ef48
-source=("git+https://github.com/blender/cycles.git#commit=${_commit}"
+source=("git+https://github.com/blender/cycles.git#tag=v${pkgver}"
         usd24_05.patch
         cycles_wrap.sh)
-sha256sums=('75436b6474b97850717b8eb0903c21f01b6e14ec0c8381012070c658d5167da7'
-            '3e2958d5cd9de9c5ca77024c4682179ecdc5aae4fcc2007d50ef225a2be03cd4'
+sha256sums=('165dbd7d8a1904aa556d97b57bd485b5ead3f7a4495a6fedfd3f43b0bfe2eb29'
+            '0667696595ae1d8759522408825b04babfbfab3c69d9a9b89877a75a80838c99'
             '00afc4aab5541d147b013c31ab91d78e272654a75cae60b39cf70c23a2612c96')

 prepare() {
diff --git a/usd24_05.patch b/usd24_05.patch
index 1c61a59..f737337 100644
--- a/usd24_05.patch
+++ b/usd24_05.patch
@@ -1,17 +1,17 @@
-commit b7ef061ce3e25becc26f5a72bfb7cc2313459799
+commit ef50769f4fd0dab1403a33dc4b56570f62df3121
 Author: howetuft <howetuft@gmail.com>
 Date:   Thu Jul 11 13:13:07 2024 +0200

     usd24.05

 diff --git a/src/hydra/instancer.cpp b/src/hydra/instancer.cpp
-index 2b9590373..904123f7b 100644
+index ae7ced42e..859b5c46d 100644
 --- a/src/hydra/instancer.cpp
 +++ b/src/hydra/instancer.cpp
-@@ -60,16 +60,16 @@ void HdCyclesInstancer::SyncPrimvars()
-       continue;
+@@ -61,16 +61,16 @@ void HdCyclesInstancer::SyncPrimvars()
      }

+ #if PXR_VERSION < 2311
 -    if (desc.name == HdInstancerTokens->translate) {
 +    if (desc.name == HdInstancerTokens->instanceTranslations) {
        _translate = value.Get<VtVec3fArray>();
@@ -28,4 +28,4 @@ index 2b9590373..904123f7b 100644
 +    else if (desc.name == HdInstancerTokens->instanceTransforms) {
        _instanceTransform = value.Get<VtMatrix4dArray>();
      }
-   }
+ #else
--
2.47.1

With this patch, the package successfully builds on my machine.

FabioLolix commented on 2023-08-17 13:00 (UTC)

Building with gcc12 works

howetuft commented on 2023-08-17 12:07 (UTC)

@FabioLolix Thanks for the devtools tip, I bow low before your science of packaging!

Bad news, however, about the issue: it seems to be directly related to cuda12.2 and gcc13:

https://forums.developer.nvidia.com/t/identifier-float32-is-undefined-etc-cuda-12-2-0-gcc-13-1/258930

https://forums.developer.nvidia.com/t/seeking-workaround-for-compiling-code-in-a-system-with-gcc-13/262333

As a temporary workaround, I suggest using gcc12, which is still available in the repo (prefixing with CC=cc-12 CXX=g++-12). Can you check it's ok for you?

FabioLolix commented on 2023-08-17 10:23 (UTC)

@howetuft you can reproduce by adding cuda and optix to makedepends and build with devtools which will build in a chroot instead of your system

howetuft commented on 2023-08-17 10:22 (UTC) (edited on 2023-08-17 10:22 (UTC) by howetuft)

Hello @adro,

I cannot reproduce, but I use a previous version of cuda (11), due to old GPU.

To investigate, can you please:

  1. Report your version of cuda compiler: /opt/cuda/bin/nvcc --version

  2. Paste bin the full error log?

Thank you!

FabioLolix commented on 2023-08-16 14:48 (UTC)

Can confirm that fails to build when cuda and optix are installed, without builds fine

adro commented on 2023-08-16 14:21 (UTC) (edited on 2023-08-16 14:24 (UTC) by adro)

Hi, could you try building the package with an updated system? I'm getting these errors:

/usr/include/stdlib.h(141): error: identifier "_Float32" is undefined extern _Float32 strtof32 (const char __restrict __nptr, ^ /usr/include/stdlib.h(147): error: identifier "_Float64" is undefined extern _Float64 strtof64 (const char __restrict __nptr, ^ /usr/include/stdlib.h(153): error: identifier "_Float128" is undefined extern _Float128 strtof128 (const char *__restrict __nptr, ^ Error limit reached. 100 errors detected in the compilation of "/home/adro/.cache/yay/cycles-standalone/src/cycles/src/kernel/device/cuda/kernel.cu". Compilation terminated.

michimussato commented on 2023-07-18 21:00 (UTC)

Worked! Thanks!

==> Creating package "cycles-standalone"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: cycles-standalone 3.6.0-0 (Tue 18 Jul 2023 10:58:28 PM CEST)
==> Cleaning up...
Finished with result: success

FabioLolix commented on 2023-07-18 21:00 (UTC)

can you confirm package builds ok for you without usd?

Yes it build fine without it

But I didn't catch the point about usd: what is an "an automagic depends"?

It is a depends that is being enabled at build time but is not present in depends=()

see this https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies

That is also happening because packages not build in an isolated environment (not build with devtools) dinamically pick-up libraries

Pratical example https://aur.archlinux.org/packages/strawberry-qt5?O=10#comment-806553

To be honest the risk with usd is very low because there are several problems building that package