On Thu, Aug 19, 2021 at 11:24 AM Jerry James <loganjerry@gmail.com> wrote:
On Thu, Aug 19, 2021 at 10:13 AM Luya Tshimbalanga
<luya@fedoraproject.org> wrote:
> Failure occurred at that line:
>
> In file included from /builddir/build/BUILD/OpenShadingLanguage-Release-1.12.1.0-dev/src/liboslexec/oslexec_pvt.h:50,
>                  from /builddir/build/BUILD/OpenShadingLanguage-Release-1.12.1.0-dev/src/liboslexec/oslexec.cpp:12:
> /builddir/build/BUILD/OpenShadingLanguage-Release-1.12.1.0-dev/src/include/OSL/mask.h:7:10: fatal error: immintrin.h: No such file or directory
>     7 | #include <immintrin.h>
>
>
> Possibly a compiler bug.

immintrin.h is an x86-specific header.  It has intrinsics for various
CPU instruction sets (SSE*, AVX*, etc.).  It is correct for it to be
"missing" on non-x86 architectures.

It's been a while since I looked into this but there are a bunch of arch specific intrinsic headers, what you're supposed to do is include the main one and then the correct one (if available) for your arch will be automatically pulled in. It looks like maybe OSL is skipping straight to the x86_64 implementation. They may not even know they're doing it wrong as VFX is usually x86_64 only in production.

Thanks,
Richard