I'm still getting the same OSL errors. The install deps script that I am running looks like this: /sdk/blender/blender-src/build_files/build_environment/./install_deps.sh --source=/opt/blender/deps/src --install=/opt/blender/deps --with-all --force-llvm --ver-llvm=3.5
----------------------------------------- Reading package lists... Done Building dependency tree Reading state information... Done bison is already the newest version (2:3.0.4.dfsg-1). flex is already the newest version (2.6.0-11). libtbb-dev is already the newest version (4.3~20150611-0.1). 0 upgraded, 0 newly installed, 0 to remove and 142 not upgraded. Building OpenShadingLanguage-1.7.1 Ensuring /opt/blender/deps exists and is writable by us --2016-03-19 10:47:44-- https://github.com/imageworks/OpenShadingLanguage/archive/Release-1.7.1.tar.gz Resolving github.com (github.com)... 192.30.252.129 Connecting to github.com (github.com)|192.30.252.129|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/imageworks/OpenShadingLanguage/tar.gz/Release-1.7.1 [following] --2016-03-19 10:47:46-- https://codeload.github.com/imageworks/OpenShadingLanguage/tar.gz/Release-1.7.1 Resolving codeload.github.com (codeload.github.com)... 192.30.252.161 Connecting to codeload.github.com (codeload.github.com)|192.30.252.161|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: '/opt/blender/deps/src/OpenShadingLanguage-1.7.1.tar.gz' /opt/blender/deps/src/OpenShadingLangua [ <=> ] 11.83M 365KB/s in 48s 2016-03-19 10:48:38 (253 KB/s) - '/opt/blender/deps/src/OpenShadingLanguage-1.7.1.tar.gz' saved [12405694] Unpacking OpenShadingLanguage-1.7.1 -- The C compiler identification is GNU 5.3.1 -- The CXX compiler identification is GNU 5.3.1 -- 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 = /opt/blender/deps/src/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 Error at src/cmake/externalpackages.cmake:199 (message): LLVM 3.5.2 requires C++11. You must build with USE_CPP11=1 or USE_CPP14=1. Call Stack (most recent call first): CMakeLists.txt:323 (include) -- Configuring incomplete, errors occurred! See also "/opt/blender/deps/src/OpenShadingLanguage-1.7.1/build/CMakeFiles/CMakeOutput.log". See also "/opt/blender/deps/src/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 On Sat, Mar 19, 2016 at 1:23 AM, Sergey Sharybin <[email protected]> wrote: > 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 <[email protected]> > 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 <[email protected]> > > 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 <[email protected] > > > > > 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 < > [email protected]> > > >> 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 < > > [email protected] > > >> > > > >> > 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 < > > [email protected] > > >> > > > >> > > 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 > > >> > > > [email protected] > > >> > > > http://lists.blender.org/mailman/listinfo/bf-committers > > >> > > > > > >> > > _______________________________________________ > > >> > > Bf-committers mailing list > > >> > > [email protected] > > >> > > http://lists.blender.org/mailman/listinfo/bf-committers > > >> > > > > >> > _______________________________________________ > > >> > Bf-committers mailing list > > >> > [email protected] > > >> > http://lists.blender.org/mailman/listinfo/bf-committers > > >> > > > >> > > >> > > >> > > >> -- > > >> With best regards, Sergey Sharybin > > >> _______________________________________________ > > >> Bf-committers mailing list > > >> [email protected] > > >> http://lists.blender.org/mailman/listinfo/bf-committers > > >> > > > > > > > > _______________________________________________ > > Bf-committers mailing list > > [email protected] > > http://lists.blender.org/mailman/listinfo/bf-committers > > > > > > -- > With best regards, Sergey Sharybin > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers > _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
