Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788982 - media-gfx/blender-2.83.12: farmhash.h:1305:39: error: ‘Rotate32’ is not a member of ‘OpenImageIO_v2_2::farmhash’; did you mean ‘OpenImageIO_v2_2::farmhash::inlined::Rotate32’?
Summary: media-gfx/blender-2.83.12: farmhash.h:1305:39: error: ‘Rotate32’ is not a mem...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-08 20:58 UTC by Samuel Bernardo
Modified: 2021-05-31 23:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,258.51 KB, text/x-log)
2021-05-08 20:58 UTC, Samuel Bernardo
Details
emerge info (emerge.info,9.35 KB, text/plain)
2021-05-08 21:00 UTC, Samuel Bernardo
Details
emerge -pqv (emerge.pqv,599 bytes, text/plain)
2021-05-08 21:00 UTC, Samuel Bernardo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2021-05-08 20:58:30 UTC
Created attachment 706650 [details]
build log

In file included from /usr/include/OpenImageIO/strutil.h:29,
                 from /usr/include/OpenImageIO/typedesc.h:29,
                 from /usr/include/OpenImageIO/attrdelegate.h:13,
                 from /usr/include/OpenImageIO/paramlist.h:17,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../util/util_param.h:23,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node_enum.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node_type.h:19,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node.h:19,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../render/geometry.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../render/hair.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/bvh.cpp:20:
/usr/include/OpenImageIO/detail/farmhash.h: In function ‘uint32_t OpenImageIO_v2_2::farmhash::farmhashsu::Hash32(const char*, size_t)’:
/usr/include/OpenImageIO/detail/farmhash.h:1305:39: error: ‘Rotate32’ is not a member of ‘OpenImageIO_v2_2::farmhash’; did you mean ‘OpenImageIO_v2_2::farmhash::inlined::Rotate32’?
 1305 |     a = NAMESPACE_FOR_HASH_FUNCTIONS::Rotate32(a, 21);
      |                                       ^~~~~~~~
In file included from /usr/include/OpenImageIO/strutil.h:29,
                 from /usr/include/OpenImageIO/typedesc.h:29,
                 from /usr/include/OpenImageIO/attrdelegate.h:13,
                 from /usr/include/OpenImageIO/paramlist.h:17,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../util/util_param.h:23,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node_enum.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node_type.h:19,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node.h:19,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../render/geometry.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../render/hair.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/bvh.cpp:20:
/usr/include/OpenImageIO/detail/farmhash.h:316:24: note: ‘OpenImageIO_v2_2::farmhash::inlined::Rotate32’ declared here
  316 | STATIC_INLINE uint32_t Rotate32(uint32_t val, int shift) {
      |                        ^~~~~~~~
In file included from /usr/include/OpenImageIO/strutil.h:29,
                 from /usr/include/OpenImageIO/typedesc.h:29,
                 from /usr/include/OpenImageIO/attrdelegate.h:13,
                 from /usr/include/OpenImageIO/paramlist.h:17,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../util/util_param.h:23,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node_enum.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node_type.h:19,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../graph/node.h:19,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../render/geometry.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/../render/hair.h:20,
                 from /var/tmp/portage/media-gfx/blender-2.83.12/work/blender-2.83.12/intern/cycles/bvh/bvh.cpp:20:
/usr/include/OpenImageIO/detail/farmhash.h: At global scope:
/usr/include/OpenImageIO/detail/farmhash.h:1499:46: error: declaration of ‘__m128i Rotate32(__m128i, int)’ not in a namespace surrounding ‘OpenImageIO_v2_2::farmhash::inlined’
 1499 | STATIC_INLINE __m128i Rotate(__m128i x, int c) {
      |                                              ^
/usr/include/OpenImageIO/detail/farmhash.h:1499:46: error: ‘__m128i OpenImageIO_v2_2::farmhash::inlined::Rotate32(__m128i, int)’ should have been declared inside ‘OpenImageIO_v2_2::farmhash::inlined’
/usr/include/OpenImageIO/detail/farmhash.h: In function ‘__m128i OpenImageIO_v2_2::farmhash::inlined::Rotate32(__m128i, int)’:
/usr/include/OpenImageIO/detail/farmhash.h:1500:10: error: ‘Or’ was not declared in this scope
 1500 |   return Or(_mm_slli_epi32(x, c),
      |          ^~
/usr/include/OpenImageIO/detail/farmhash.h:1500:10: note: suggested alternatives:
/usr/include/OpenImageIO/detail/farmhash.h:1276:23: note:   ‘OpenImageIO_v2_2::farmhash::farmhashsu::Or’
 1276 | STATIC_INLINE __m128i Or(__m128i x, __m128i y) { return _mm_or_si128(x, y); }
      |                       ^~
/usr/include/OpenImageIO/detail/farmhash.h:1496:23: note:   ‘OpenImageIO_v2_2::farmhash::farmhashsa::Or’
 1496 | STATIC_INLINE __m128i Or(__m128i x, __m128i y) { return _mm_or_si128(x, y); }
      |                       ^~
/usr/include/OpenImageIO/detail/farmhash.h: In function ‘uint32_t OpenImageIO_v2_2::farmhash::farmhashsa::Hash32(const char*, size_t)’:
/usr/include/OpenImageIO/detail/farmhash.h:1525:39: error: ‘Rotate32’ is not a member of ‘OpenImageIO_v2_2::farmhash’; did you mean ‘OpenImageIO_v2_2::farmhash::inlined::Rotate32’?
 1525 |     a = NAMESPACE_FOR_HASH_FUNCTIONS::Rotate32(a, 21);
      |                                       ^~~~~~~~
/usr/include/OpenImageIO/detail/farmhash.h:1499:23: note: ‘OpenImageIO_v2_2::farmhash::inlined::Rotate32’ declared here
 1499 | STATIC_INLINE __m128i Rotate(__m128i x, int c) {
      |                       ^~~~~~
ninja: build stopped: subcommand failed.
 * ERROR: media-gfx/blender-2.83.12::gentoo failed (compile phase):
 *   ninja -v -j14 -l13 failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3401:  Called cmake_src_compile
 *   environment, line 1503:  Called cmake_build
 *   environment, line 1472:  Called eninja
 *   environment, line 1924:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
Comment 1 Samuel Bernardo 2021-05-08 21:00:07 UTC
Created attachment 706656 [details]
emerge info
Comment 2 Samuel Bernardo 2021-05-08 21:00:41 UTC
Created attachment 706659 [details]
emerge -pqv
Comment 3 Brian G. Olson 2021-05-10 16:33:50 UTC
I have the same problem as Samuel. FYI: I have media-libs/openimageio-2.2.12.0 installed.

[ebuild   R   ] media-libs/openimageio-2.2.12.0  USE="X ffmpeg gif opengl qt5 truetype -dicom -doc -field3d -jpeg2k -opencv -openvdb -ptex (-python) -raw" CPU_FLAGS_X86="aes avx avx2 f16c sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"
Comment 4 kevinmbecause 2021-05-12 16:53:01 UTC
This is a bug in media-libs/openimageio that is fixed in version 2.2.13.0. I copied the ebuild and updated the version and both openimageio and blender installed without error.
Comment 5 Samuel Bernardo 2021-05-16 10:57:14 UTC
Thank you Brian G. Olson  and kevinmbecause@gmail.com for your advises.
I just created the following PRs for gentoo main overlay, also thinking on future blender upgrades:
https://github.com/gentoo/gentoo/pull/20830
https://github.com/gentoo/gentoo/pull/20831
https://github.com/gentoo/gentoo/pull/20832

openimageio 2.2.13.0 and 2.2.13.1 works with current stable version of blender-2.83.12
Comment 6 Samuel Bernardo 2021-05-16 11:35:55 UTC
Forget to mention in previous message that I keep both 2.2.13.0 and 2.2.13.1 because python 3.10 is only supported in 2.2.13.0.
Comment 7 jwh1981 2021-05-26 20:25:49 UTC
I actually found a workaround to this but I am unsure where the issue lies. A few days ago I installed Blender 2.83.12 on my old workstation (Precision T5400 with Core2 generation of Xeons). No issue at all.

I use -march=native and -mtune=native in /etc/portage/make.conf.

Today, I tried to install on my HP Z240 with a Haswell generation Xeon. Same issue as Samuel/Brian. I thought, what gives? So I changed my make.conf (on this Haswell Xeon) to -march=core2 and -mtune=core2. Blender compiled and installed without any issue.

So, I then removed the -mtune=core2 and changed -march back to native. Blender still fails to compile.

So, it has to be something with the instructions or optimizations that cause Blender to fail when using march/mtune set to native.
Comment 8 jwh1981 2021-05-26 20:31:45 UTC
I also tested with -march=haswell and -march=ivybridge. Both fail.
Comment 9 Larry the Git Cow gentoo-dev 2021-05-31 23:47:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2508c7b4c9c0cfa9b1f7aec0fbaba8b843fd8c94

commit 2508c7b4c9c0cfa9b1f7aec0fbaba8b843fd8c94
Author:     Samuel Bernardo <samuelbernardo.mail@gmail.com>
AuthorDate: 2021-05-16 10:49:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-31 23:45:35 +0000

    media-libs/openimageio: Add openimageio 2.2.14.0 required for blender 2.92
    
    Bug: https://bugs.gentoo.org/788982
    Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/20832
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openimageio/Manifest                    |   1 +
 media-libs/openimageio/openimageio-2.2.14.0.ebuild | 155 +++++++++++++++++++++
 2 files changed, 156 insertions(+)

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

commit bc47c48d49462537f1d852a4ede62e3cfdafd18d
Author:     Samuel Bernardo <samuelbernardo.mail@gmail.com>
AuthorDate: 2021-05-16 10:41:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-31 23:45:26 +0000

    media-libs/openimageio: Add openimageio 2.2.13.1
    
    This also works with current stable blender version.
    
    Bug: https://bugs.gentoo.org/788982
    Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/20831
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openimageio/Manifest                    |   1 +
 media-libs/openimageio/openimageio-2.2.13.1.ebuild | 155 +++++++++++++++++++++
 2 files changed, 156 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f1ba589719a75a9c5dd7e7a63857e16e2775ab3

commit 5f1ba589719a75a9c5dd7e7a63857e16e2775ab3
Author:     Samuel Bernardo <samuelbernardo.mail@gmail.com>
AuthorDate: 2021-05-16 10:36:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-31 23:25:12 +0000

    media-libs/openimageio: Add openimageio 2.2.13.0 required for Blender
    
    Bug: https://bugs.gentoo.org/788982
    Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openimageio/Manifest                    |   1 +
 media-libs/openimageio/openimageio-2.2.13.0.ebuild | 155 +++++++++++++++++++++
 2 files changed, 156 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2021-05-31 23:49:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cd25486dba87f22f11ef0840ff8b8fdcc742784

commit 5cd25486dba87f22f11ef0840ff8b8fdcc742784
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-31 23:48:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-31 23:48:41 +0000

    media-gfx/blender: tighten lower bound on openimageio
    
    Closes: https://bugs.gentoo.org/788982
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/blender/blender-2.83.12.ebuild | 2 +-
 media-gfx/blender/blender-2.91.2.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit c18a73b82d4b575c34ff50108e62031c207d4b43
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-31 23:49:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-31 23:49:30 +0000

    media-libs/openimageio: forward stable keywords to 2.2.13.1
    
    Contains several build fixes and not much else.
    
    Bug: https://bugs.gentoo.org/788982
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openimageio/openimageio-2.2.13.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)