On 7/3/23 19:37, Luya Tshimbalanga wrote:

On 2023-07-03 17:08, Tom Stellard wrote:
On 7/3/23 11:31, Luya Tshimbalanga wrote:
Hello team,

I attempt to build openshadinglanguage with llvm15 as upstream has yet to 
support LLVM 16. Can someone have a pointed how to set a cmake parameter for 
llvm15 and its bitecode validation?

See the spec file on: 
https://src.fedoraproject.org/rpms/openshadinglanguage/blob/rawhide/f/openshadinglanguage.spec


Have you tried changing the BuildRequires from llvm-devel to llvm15-devel and 
clang-devel to clang15-devel?
It may autodetect llvm15 if you do that.


Unfortunately it did not as I had to manually set "-DLLVM_ROOT=%{_libdir}/llvm15 
\".

The compiling led to the following error:

CMake Error at src/cmake/llvm_macros.cmake:43 (message):
   You must have a valid llvm bitcode generator (clang++) somewhere.
Call Stack (most recent call first):
   src/liboslexec/CMakeLists.txt:223 (EMBED_LLVM_BITCODE_IN_CPP)


When I try to build from the rawhide branch, I get:

/usr/include/OpenImageIO/detail/fmt/core.h:1691:7: error: static assertion failed: 
Cannot format an argument. To make type T formattable provide a formatter<T> 
specialization: https://fmt.dev/latest/api.html#udt

This seems like a failure unrelated to clang.  Have you run into this?

-Tom


--
Luya Tshimbalanga
Fedora Design Team
Fedora Design Suite maintainer

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to