Re: openshadinglanguage 1.11.15 failed with llvm 12 and up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 3, 2021 at 3:28 AM Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> wrote:
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

Looks like F_None is (was) a compatibility spelling, I didn't dig but I bet what it should be changed to is in here somewhere:

https://reviews.llvm.org/D101650

 
/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;
      |             ^~~~~~~~~~~~~~~~~~~~~~

Looks like this was removed/renamed as well:

https://reviews.llvm.org/D103048

Thanks,
Richard
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux