[Bf-committers] ERROR! OpenShadingLanguage-1.6.9 failed to compile, exiting

Benoit Bolsee benoit.bolsee at online.be
Wed Jan 13 14:17:17 CET 2016


Hi,

I came across the same problem (Linux Mint 17) and fixed it by patching
one of the cmake file in OSL. Here is the diff:

--- a/src/liboslexec/CMakeLists.txt	
+++ b/src/liboslexec/CMakeLists.txt	
@@ -144,7 +144,7 @@
                         ${OPENIMAGEIO_LIBRARY} ${PUGIXML_LIBRARIES}
                         ${PARTIO_LIBRARIES} ${ZLIB_LIBRARIES}
                         ${Boost_LIBRARIES} ${CMAKE_DL_LIBS}
-                        ${LLVM_LIBRARY} ${LLVM_MCJIT_LIBRARY}
${EXTRA_OSLEXEC_LIBRARIES})
+                        ${LLVM_LIBRARY} ${EXTRA_OSLEXEC_LIBRARIES})
 ADD_DEPENDENCIES (oslexec "${CMAKE_CURRENT_SOURCE_DIR}/liboslexec.map")
 LINK_ILMBASE ( oslexec )


i.e, simply removing ${LLVM_MCJIT_LIBRARY}
My reading of this problem is that OSL needs this extra lib when it is
compiled with LLVM 3.3 but it's no longer necessary with LLVM 3.4


/benoit


On Wed, 2016-01-13 at 12:00 +0100, INTERLICHTSPIELHAUS wrote:
> hi
> 
> 
> We already got reported a similar error (on ubuntu 14.04 iirc), which
> > one is your distro?
> >
> >
> ubuntu 14.04 too
> 
> > Anyway, I do not know where this conflict with OIIO comes from, things
> > you can try:
> > * Check you do not have some 'libopenimageio-dev' package or so
> > installed on your system (and if you have, remove it).
> >
> >
> didn't fix the problem
> 
> 
> > * Give the *full* log of a **complete clean** run of install_deps (but
> > not in mail! use pasteall.org or similar please).
> >
> >
> http://www.pasteall.org/63378
> 
> 
> > * Try to run install_deps with following options: --build-oiio
> > --build-llvm --build-osl
> >
> >
> didn't fix the problem
> 
> 
> > * Skip OSL building if you do not need it (--skip-osl option)!
> >
> >
> i went for this opting
> 
> thanks for your time
> 
> 
> > Bastien
> >
> > Le 12/01/2016 20:09, INTERLICHTSPIELHAUS a ?crit :
> >
> >
> > ..
> >
> >
> >
> 
> 
> ------------------------------
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
> 
> 
> End of Bf-committers Digest, Vol 138, Issue 13
> **********************************************




More information about the Bf-committers mailing list