Ubuntu - "make full" problems with LLVM / OSL

Hello.
Checking what this user mentions here:
https://blenderartists.org/t/pablo-dobarro-reveals-his-master-plan-for-sculpting/1150731/235

Kubuntu 18.04 here. If I execute “make full” on master branch, I get this error:

$ make full 

Configuring Blender in "/Disk/build_linux_full" ...
loading initial cache file /Disk/blender/build_files/cmake/config/blender_full.cmake
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- 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
-- Performing Test SUPPORT_SSE_BUILD
-- Performing Test SUPPORT_SSE_BUILD - Success
-- SSE Support: detected.
-- Performing Test SUPPORT_SSE2_BUILD
-- Performing Test SUPPORT_SSE2_BUILD - Success
-- SSE2 Support: detected.
-- Found Git: /usr/bin/git (found version "2.17.1") 
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.34") 
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1") 
-- Found PythonLibsUnix: /usr/lib/x86_64-linux-gnu/libpython3.7m.so  
-- #define OPENEXR_VERSION_STRING "2.2.0"
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libHalf.so;/usr/lib/x86_64-linux-gnu/libIex.so;/usr/lib/x86_64-linux-gnu/libIlmImf.so;/usr/lib/x86_64-linux-gnu/libIlmThread.so;/usr/lib/x86_64-linux-gnu/libImath.so  
-- Found OpenJPEG: /usr/local/lib/libopenjp2.so  
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.9") 
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR) 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") 
-- Found Jack: /usr/lib/x86_64-linux-gnu/libjack.so  
-- Found SndFile: /usr/lib/x86_64-linux-gnu/libsndfile.so  
-- Found Fftw3: /usr/lib/x86_64-linux-gnu/libfftw3.so  
-- Found OpenCOLLADA: /opt/lib/opencollada/lib/opencollada/libOpenCOLLADAStreamWriter.a;/opt/lib/opencollada/lib/opencollada/libOpenCOLLADASaxFrameworkLoader.a;/opt/lib/opencollada/lib/opencollada/libOpenCOLLADAFramework.a;/opt/lib/opencollada/lib/opencollada/libOpenCOLLADABaseUtils.a;/opt/lib/opencollada/lib/opencollada/libGeneratedSaxParser.a;/opt/lib/opencollada/lib/opencollada/libMathMLSolver.a;/opt/lib/opencollada/lib/opencollada/libbuffer.a;/opt/lib/opencollada/lib/opencollada/libftoa.a;/opt/lib/opencollada/lib/opencollada/libUTF.a  
-- Found XML2: /usr/lib/x86_64-linux-gnu/libxml2.so  
-- Found PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so  
-- Found JeMalloc: /usr/lib/x86_64-linux-gnu/libjemalloc.so  
-- Found Spacenav: /usr/lib/libspnav.so  
-- Found OSL: /opt/lib/osl/lib/liboslcomp.so;/opt/lib/osl/lib/liboslexec.so;/opt/lib/osl/lib/liboslquery.so  
-- Found OPENVDB: /opt/lib/openvdb/lib/libopenvdb.so  
-- Found TBB: /usr/lib/x86_64-linux-gnu/libtbb.so  
-- Found BLOSC: /opt/lib/blosc/lib/libblosc.so  
-- Found ALEMBIC: /opt/lib/alembic/lib/libAlembic.so  
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   filesystem
--   regex
--   thread
--   date_time
--   wave
--   locale
--   iostreams
--   system
--   chrono
--   atomic
--   serialization
-- Found OpenImageIO: /opt/lib/oiio/lib/libOpenImageIO.so  
-- Found OpenColorIO: /opt/lib/ocio/lib/libOpenColorIO.a;/opt/lib/ocio/lib/libyaml-cpp.a;/opt/lib/ocio/lib/libtinyxml.a  
-- Could NOT find LLVM (missing: LLVM_LIBRARY) 
-- LLVM not found
-- Found OpenSubdiv: /opt/lib/osd/lib/libosdGPU.so;/opt/lib/osd/lib/libosdCPU.so  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
CMake Error at CMakeLists.txt:909 (message):
  Cycles OSL requires WITH_LLVM, the library may not have been found.
  Configure LLVM or disable WITH_CYCLES_OSL


-- Configuring incomplete, errors occurred!
See also "/Disk/build_linux_full/CMakeFiles/CMakeOutput.log".
See also "/Disk/build_linux_full/CMakeFiles/CMakeError.log".
GNUmakefile:268: recipe for target 'all' failed
make: *** [all] Error 1

But if I compile with instruction that “./install_deps.sh --with-all” shows at the end:

make -j8 BUILD_CMAKE_ARGS="-U *SNDFILE* -U *PYTHON* -U *BOOST* -U *Boost* -U *OPENCOLORIO* -U *OPENEXR* -U *OPENIMAGEIO* -U *LLVM* -U *CYCLES* -U *OPENSUBDIV* -U *OPENVDB* -U *COLLADA* -U *FFMPEG* -U *ALEMBIC* -D WITH_CODEC_SNDFILE=ON -D PYTHON_VERSION=3.7 -D WITH_OPENCOLORIO=ON -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D WITH_OPENIMAGEIO=ON -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=6.0 -D OSL_ROOT_DIR=/opt/lib/osl -D WITH_OPENSUBDIV=ON -D OPENSUBDIV_ROOT_DIR=/opt/lib/osd -D WITH_OPENVDB=ON -D WITH_OPENVDB_BLOSC=ON -D OPENVDB_ROOT_DIR=/opt/lib/openvdb -D BLOSC_ROOT_DIR=/opt/lib/blosc -D WITH_OPENCOLLADA=ON -D OPENCOLLADA_ROOT_DIR=/opt/lib/opencollada -D WITH_CYCLES_EMBREE=ON -D EMBREE_ROOT_DIR=/opt/lib/embree -D WITH_JACK=ON -D WITH_JACK_DYNLOAD=ON -D WITH_ALEMBIC=ON -D ALEMBIC_ROOT_DIR=/opt/lib/alembic -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;swresample;lzma;rt;theora;theoradec;theoraenc;vorbis;vorbisenc;vorbisfile;ogg;xvidcore;vpx;mp3lame;x264;openjp2'"

Open Shading Language is built correctly and it works in built Blender.
“CMakeCache.txt” from satisfactory compiled Blender shows:

make full seems to a little help to find llvm on your system, once you ran make full and it errored out

cd ../build_linux_full
cmake -D LLVM_VERSION=6.0 .
make install
2 Likes

Option B, running make deps (and solving any issues, it may have, make sure you have nasm, autoconf, and tcl installed) to make a static library folder also makes it so you can run make full without having to fiddle about.

on the down side, it seems to have glibc 2.28 (aug 2018) sooo the static build is produces isn’t gonna run on all that many machines, but hey, it builds…

1 Like

@LazyDodo , thanks.
I have tried the first suggestion and it works.
Actually I use install_deps.sh instruction at the end to build. But I was doing this kind of report just in case there is something to be corrected by Blender part, since in Blender official guide “make full” is given as an option.
Anyway, any Ubuntu 18.04 user getting a similar error message, can search on Google and compile with your suggestions.