[opensuse-packaging] OSL fails to compile on Tumbleweed
Dear Stefan, Factory fails to compile OSL 1.10.7 due to some LLVM issues on the surface: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage Well, I updated to 1.10.9, removed your patch, that was applied upstream (well the alternative one at least), and tried a couple of combinations here: https://build.opensuse.org/package/show/home:frispete:blender/ OpenShadingLanguage using a pattern similar to: %if 0%{?suse_version} > 1500 BuildRequires: clang7-devel BuildRequires: gcc7-c++ %else BuildRequires: clang-devel >= 4 BuildRequires: gcc-c++ %endif Interestingly, no combination of LLVM 10, 9, 8 nor gcc7 does work, but the build is failing due to various issues (up to some unsupported -flto=auto arguments). This bears the question, does our TW build chain or some library, that OSL relies on has an issue here? OIIO seems pretty outdated, we are using 1.8.17, while upstream is at 2.1.13.0 now. Any reason, why we lagged behind so far? Thanks, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Samstag, 18. April 2020, 19:59:45 CEST schrieb Hans-Peter Jansen:
Dear Stefan,
Factory fails to compile OSL 1.10.7 due to some LLVM issues on the surface: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage
Well, I updated to 1.10.9, removed your patch, that was applied upstream (well the alternative one at least), and tried a couple of combinations here:
https://build.opensuse.org/package/show/home:frispete:blender/ OpenShadingLanguage
Reintroduced your patch, clearly superior to the upstream solution. The TW issues persist nonetheless. Cheers, Pete -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 18.04.20 um 19:59 schrieb Hans-Peter Jansen:
Factory fails to compile OSL 1.10.7 due to some LLVM issues on the surface: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage
Ok, I can talk about some of the errors: error: 'std::index_sequence' has not been declared This one is due to -std=c++11, LLVM requires -std=c++14 now. See also <https://en.cppreference.com/w/cpp/utility/integer_sequence>. This should also be the reason for the other errors coming from LLVM headers. But it seems a patch in your branch addresses that already: <https://build.opensuse.org/package/view_file/home:frispete:blender/OpenShadingLanguage/0001-LLVM-10-odds-and-ends-1135.patch>
Interestingly, no combination of LLVM 10, 9, 8 nor gcc7 does work, but the build is failing due to various issues (up to some unsupported -flto=auto arguments). The -flto=auto won't work with older GCC versions. But I'd recommend to go with the default version anyway. Could you elaborate a bit more what doesn't work, because the Tumbleweed build in your branch looks successful to me.
By the way, to fix the Leap builds in your branch try wrapping the lines adding -lclang-cpp into "%if %{pkg_vcmp llvm-devel >= 9.0}". That's when the Clang build switched from component libraries to one big library for everything. Best regards, Aaron -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 24.04.20 um 00:22 schrieb Aaron Puchert:
The -flto=auto won't work with older GCC versions. But I'd recommend to go with the default version anyway. Could you elaborate a bit more what doesn't work, because the Tumbleweed build in your branch looks successful to me. Nevermind, I just saw that your mail predates the first successful build in Tumbleweed. So I guess you just figured it out on your own.
Best regards, Aaron -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 18/04/2020 19:59, Hans-Peter Jansen wrote:
Dear Stefan,
Factory fails to compile OSL 1.10.7 due to some LLVM issues on the surface: https://build.opensuse.org/package/show/graphics/OpenShadingLanguage
Well, I updated to 1.10.9, removed your patch, that was applied upstream (well the alternative one at least), and tried a couple of combinations here:
https://build.opensuse.org/package/show/home:frispete:blender/ OpenShadingLanguage
using a pattern similar to:
%if 0%{?suse_version} > 1500 BuildRequires: clang7-devel BuildRequires: gcc7-c++ %else BuildRequires: clang-devel >= 4 BuildRequires: gcc-c++ %endif
Interestingly, no combination of LLVM 10, 9, 8 nor gcc7 does work, but the build is failing due to various issues (up to some unsupported -flto=auto arguments).
This bears the question, does our TW build chain or some library, that OSL relies on has an issue here? OIIO seems pretty outdated, we are using 1.8.17, while upstream is at 2.1.13.0 now. Any reason, why we lagged behind so far?
Thanks, Pete
The lowering of clang/llvm versions didn't work 100% even with patches from git. All fixed now by the long time maintainer of blender, it was my second ever package that I became maintainer of. Thanks everyone for o9ffering to help. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Aaron Puchert
-
Dave Plater
-
Hans-Peter Jansen