[Bf-committers] building blender

Sergey Sharybin sergey.vfx at gmail.com
Fri Mar 18 18:23:16 CET 2016


Which exact debian you're on?

Our script installs llvm-dev package, which is default to 3.5 for Debian
Jessie and it's 3.6 for Stretch and Sid.

You might try the following:

- Use --ver-llvm=3.5 command line argument to force LLVM 3.5 to be used.
This might result in C++11 issues i've mentioned above.
- Use --force-llvm command line argument to force llvm-3.4 to be locally
compiled and installed to /opt/lib. This will match the release environment
in fact.

On Fri, Mar 18, 2016 at 8:53 PM, Owen Hogarth II <gurenchan at gmail.com>
wrote:

> quick update
>
> I just received response from the OSL guys. They say that OSL can be built
> with 3.5 but blender script seems to want to use 3.4 or 3.6 on this build
> of debian testing llvm 3.4 is not in the repo. Why does this version of
> blender want to use 3.4 or 3.6 but not 3.5?
>
> Best,
> Owen
>
> On Fri, Mar 18, 2016 at 2:20 PM, Owen Hogarth II <gurenchan at gmail.com>
> wrote:
>
> > oh, I see.
> >
> > I though llvm 3.5 would work but currently this version of debian jessie
> > testing doesn't have llvm 3.4
> >
> > I'll post it on the OSL github issue tracker.
> >
> > Best,
> > Owen
> >
> > On Fri, Mar 18, 2016 at 2:14 PM, Sergey Sharybin <sergey.vfx at gmail.com>
> > wrote:
> >
> >> Hi,
> >>
> >> You've linked quite old discussion which comes from the times when
> >> LLVM-3.6
> >> was not supported by changed JIT API, this has been changed now and
> >> LLVM-3.6 is suported.
> >>
> >> The issue here, however, is that different distros are packing LLVM
> >> differently. For example, compiling LLVM from sources works just fine
> with
> >> OSL's CMake rules, but Ubuntu's LLVM package is lacking some corner case
> >> checks for that.
> >>
> >> You can either manually compile OSL with tweaks to the CMake rules to
> >> ignore MCJIT library all together or (which is better) submit report to
> >> OSL
> >> upstream about OSL not compiling correct with your LLVM.
> >>
> >> Some disclaimers:
> >>
> >> - install_deps.sh installs default version of the LLVM if the requested
> >> one
> >> is not available (requested one is LLVM-3.4 in fact)
> >> - I don't know if the rules in install_des.sh will work correct with
> LLVM
> >> >
> >> 3.4 btw. Such configuration requires OSL to be compiled with C++11,
> which
> >> we don't do yet.
> >>
> >>
> >> On Fri, Mar 18, 2016 at 10:43 AM, Owen Hogarth II <gurenchan at gmail.com>
> >> wrote:
> >>
> >> > The issue if I'm correct is that OSL just doesn't work with llvm 3.6
> but
> >> > the blender script automatically downloads llvm 3.6
> >> > The OSL github issue that I linked to has some recent information but
> I
> >> > don't know what blender's stance on it.
> >> >
> >> > I've built blender a while ago no problems. Currently I build w
> >> --skip-osl
> >> > for the moment as a workaround.
> >> >
> >> > I'd still like to hear what the team has to say about OSL on linux
> >> though.
> >> >
> >> > Best,
> >> > Owen
> >> >
> >> > On Fri, Mar 18, 2016 at 1:33 PM, Tianwei Shen <
> shentianweipku at gmail.com
> >> >
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > I encountered the same problem when compiling blender on centos 7.
> It
> >> > seems
> >> > > that there is some problem with OSL:
> >> > >
> >> > > Building OpenShadingLanguage-1.7.1
> >> > > Ensuring /opt/lib exists and is writable by us
> >> > > ILMBASE_HOME=/opt/lib/openexr
> >> > > -- The C compiler identification is GNU 4.8.5
> >> > > -- The CXX compiler identification is GNU 4.8.5
> >> > > -- Check for working C compiler: /usr/bin/cc
> >> > > -- Check for working C compiler: /usr/bin/cc -- works
> >> > > -- Detecting C compiler ABI info
> >> > > -- Detecting C compiler ABI info - done
> >> > > -- Detecting C compile features
> >> > > -- Detecting C compile features - done
> >> > > -- Check for working CXX compiler: /usr/bin/c++
> >> > > -- Check for working CXX compiler: /usr/bin/c++ -- works
> >> > > -- Detecting CXX compiler ABI info
> >> > > -- Detecting CXX compiler ABI info - done
> >> > > -- Detecting CXX compile features
> >> > > -- Detecting CXX compile features - done
> >> > > -- Project build dir =
> >> > > /home/tianwei/src/blender-deps/OpenShadingLanguage-1.7.1/build
> >> > > -- CMAKE_CXX_COMPILER is /usr/bin/c++
> >> > > -- CMAKE_CXX_COMPILER_ID is GNU
> >> > > -- Compiling with SIMD level sse2
> >> > > -- Setting Namespace to:
> >> > > -- platform = linux64
> >> > > -- Partio not found
> >> > > -- CMAKE_INSTALL_RPATH = /opt/lib/osl-1.7.1/lib
> >> > > -- Create oslversion.h from oslversion.h.in
> >> > > CMake Error: The following variables are used in this project, but
> >> they
> >> > are
> >> > > set to NOTFOUND.
> >> > > Please set them or make sure they are set and tested correctly in
> the
> >> > CMake
> >> > > files:
> >> > > LLVM_MCJIT_LIBRARY
> >> > >     linked by target "oslexec" in directory
> >> > >
> >> /home/tianwei/src/blender-deps/OpenShadingLanguage-1.7.1/src/liboslexec
> >> > >
> >> > > -- Configuring incomplete, errors occurred!
> >> > > See also
> >> > >
> >> > >
> >> >
> >>
> "/home/tianwei/src/blender-deps/OpenShadingLanguage-1.7.1/build/CMakeFiles/CMakeOutput.log".
> >> > > See also
> >> > >
> >> > >
> >> >
> >>
> "/home/tianwei/src/blender-deps/OpenShadingLanguage-1.7.1/build/CMakeFiles/CMakeError.log".
> >> > > make: *** No targets specified and no makefile found.  Stop.
> >> > > make: *** No rule to make target `clean'.  Stop.
> >> > > ERROR! OpenShadingLanguage-1.7.1 failed to compile, exiting
> >> > >
> >> > > This compiling process works fine on my mac.
> >> > >
> >> > >
> >> > >
> >> > > Thanks,
> >> > > Tianwei
> >> > >
> >> > > On Fri, Mar 18, 2016 at 5:27 AM, Owen Hogarth II <
> gurenchan at gmail.com
> >> >
> >> > > wrote:
> >> > >
> >> > > > Howdy
> >> > > >
> >> > > > compiling blender from source today it seems to want to update to
> >> llvm
> >> > > 3.6
> >> > > > but of OSL doesn't build with llvm 3.6
> >> > > >
> >> > > > I manually downgraded my own copies of llvm and clang to 3.5 but
> the
> >> > > > install_deps.sh script pulls down 3.6
> >> > > >
> >> > > > there's this long thread about it on github:
> >> > > > https://github.com/imageworks/OpenShadingLanguage/issues/480
> >> > > >
> >> > > > I'd like to avoid mucking around in the install script so is there
> >> any
> >> > > > officially supported way to build blender with OSL from source?
> >> > > >
> >> > > > Best,
> >> > > > Owen
> >> > > > _______________________________________________
> >> > > > Bf-committers mailing list
> >> > > > Bf-committers at blender.org
> >> > > > http://lists.blender.org/mailman/listinfo/bf-committers
> >> > > >
> >> > > _______________________________________________
> >> > > Bf-committers mailing list
> >> > > Bf-committers at blender.org
> >> > > http://lists.blender.org/mailman/listinfo/bf-committers
> >> > >
> >> > _______________________________________________
> >> > Bf-committers mailing list
> >> > Bf-committers at blender.org
> >> > http://lists.blender.org/mailman/listinfo/bf-committers
> >> >
> >>
> >>
> >>
> >> --
> >> With best regards, Sergey Sharybin
> >> _______________________________________________
> >> Bf-committers mailing list
> >> Bf-committers at blender.org
> >> http://lists.blender.org/mailman/listinfo/bf-committers
> >>
> >
> >
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
With best regards, Sergey Sharybin


More information about the Bf-committers mailing list