Building Blender on Fedora 20, OSL compilation failing due to LLVM/Clang (mismatch) issues -
getting current blender master git , running ./blender/build_files/build_environment/install_deps.sh
works fine on fedora 20 scheme until open shading language compilation comes up, failing next error:
/opt/lib/llvm-3.3/bin/llvm-as: /home/simonrepp/src/blender-deps/openshadinglanguage-1.4.0/build/src/liboslexec/llvm_ops.s:112:59: error: invalid utilize of function-only attribute define void @osl_sin_dfdf(i8* nocapture %r, i8* nocapture readonly %a) #2 {
investigation led me this, suggesting there's version mismatch between local llvm (3.3)
build installer sets , globally installed clang (3.4)
. tried explicitly tell installer go llvm 3.4
- /blender/build_files/build_environment/install_deps.sh --ver-llvm=3.4
- leading me time, different error:
cmake error: next variables used in project, set notfound. please set them or create sure set , tested correctly in cmake files: llvm_mcjit_library linked target "oslexec" in directory /home/simonrepp/src/blender-deps/openshadinglanguage-1.4.0/src/liboslexec
i not hold of explanation this, neither contrive working solution myself, went yet approach, down-grading , version-locking global llvm
, clang
packages 3.3
, , time telling installer explicitly go llvm (3.3)
- /blender/build_files/build_environment/install_deps.sh --ver-llvm=3.3
- time resulting in installer aborting due not beingness able upgrade version-locked packages 3.4
... argh.
so more or less stuck, , looking out-of-the-box solution, or understands what's llvm_mcjit_library
stuff , how can dealt with?
update: here described error in dependency installer script has been fixed meanwhile (https://developer.blender.org/rbf3f991c80fa92ccb7a831b8e8449ff5f21065a9d) :)
ok tried remove globally installed llvm
, clang
packages on scheme , ran installer again, leading failure due unavailability of any clang
, caught attention, in installer console gibberish says somewhere llvm (clang included!)
, where's clang? found .tar.gz installer downloading before compilation (src/blender-deps/clang-3.3.tar.gz
) empty - 0 bytes - , digging install_deps.sh
revealed llvm_clang_source="http://llvm.org/releases/$llvm_version/clang-$llvm_version.src.tar.gz"
, translates http://llvm.org/releases/3.3/clang-3.3.src.tar.gz refers wrong download url.
the right url clang 3.3 sources http://llvm.org/releases/3.3/cfe-3.3.src.tar.gz, manually downloaded it, renamed , replaced src/blender-deps/clang-3.3.tar.gz
, , after failing run of installer went in tarball , renamed folder within cfe-3.3.src
clang-3.3.src
... there on: success!
everyone building sources this, , without globally installed, compatible clang
, should facing problem (as download url broken else well), kind of amazed didn't find else on this. well. case closed.
clang llvm blender
No comments:
Post a Comment