Hello team,
Building the latest stable osl 1.11.15 failed on all Fedora version except Release 33 due
to error caused by llvm 12.
The following result from Rawhide highlight the cause:
~~~
/builddir/build/BUILD/OpenShadingLanguage-Release-1.11.15.0/src/liboslexec/llvm_util.cpp:
In member function 'void OSL_v1_11::pvt::LLVM_Util::write_bitcode_file(const char*,
std::string*)':
/builddir/build/BUILD/OpenShadingLanguage-Release-1.11.15.0/src/liboslexec/llvm_util.cpp:2992:69:
error: 'F_None' is not a member of 'llvm::sys::fs'; did you mean
'OF_None'?
2992 | llvm::raw_fd_ostream out (filename, local_error, llvm::sys::fs::F_None);
| ^~~~~~
| OF_None
/builddir/build/BUILD/OpenShadingLanguage-Release-1.11.15.0/src/liboslexec/llvm_util.cpp:
In member function 'bool OSL_v1_11::pvt::LLVM_Util::ptx_compile_group(llvm::Module*,
const string&, std::string&)':
/builddir/build/BUILD/OpenShadingLanguage-Release-1.11.15.0/src/liboslexec/llvm_util.cpp:3054:13:
error: 'class llvm::TargetOptions' has no member named
'StackAlignmentOverride'
3054 | options.StackAlignmentOverride = 0;
| ^~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [src/liboslexec/CMakeFiles/oslexec.dir/build.make:576:
src/liboslexec/CMakeFiles/oslexec.dir/llvm_util.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
~~~
COPR build is located on
https://copr.fedorainfracloud.org/coprs/luya/blender-egl/build/2680435/
Patch or suggestion welcome.
Thanks in advance,
Luya