[Bf-committers] Build problem with OpenShadingLanguage

Francesc Juhe fjuhec at gmail.com
Wed May 13 14:39:39 CEST 2015


Hi,

I had the same error.

Changing the line 1377

    cmake_d="$cmake_d -D -DLLVM_ENABLE_TERMINFO=OFF”

to:

    cmake_d="$cmake_d -D LLVM_ENABLE_TERMINFO=OFF"

On llvm compile function and then run the script with —force-llvm to recompile it again without terminfo fixed the issue for me and osl finished building correctly.

Hope it works for you too.

Francesc


On 13 May 2015, at 09:56, tom <tomjpsun at gmail.com> wrote:

> Hi :
> I am a newbie here. I build blender with this command:
> 
> ./blender/build_files/build_environment/install_deps.sh
> 
> under Debian (Wheezy) and encounter this error:
> 
> [ 88%] Building CXX object src/liboslexec/CMakeFiles/llvmutil_test.dir/llvmutil_test.cpp.o
> [ 89%] [ 92%] [ 92%] Building CXX object src/liboslexec/CMakeFiles/accum_test.dir/accum_test.cpp.o
> Building CXX object src/testshade/CMakeFiles/testshade.dir/testshade.cpp.o
> Building CXX object src/testshade/CMakeFiles/libtestshade.dir/testshade.cpp.o
> Linking CXX executable llvmutil_test
> liboslexec.so: undefined reference to `set_curterm'
> liboslexec.so: undefined reference to `del_curterm'
> liboslexec.so: undefined reference to `tigetnum'
> liboslexec.so: undefined reference to `setupterm'
> collect2: error: ld returned 1 exit status
> make[2]: *** [src/liboslexec/llvmutil_test] Error 1
> make[1]: *** [src/liboslexec/CMakeFiles/llvmutil_test.dir/all] Error 2
> 
> After some searching, it may be worked-around by adding the “-ltinfo” linker flag, like this page said
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741486 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741486>
> 
> But how do I add the flag? I get the same error by adding :
> 
> SET(GCC_COVERAGE_LINK_FLAGS    "-ltinfo")
> SET( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}” )
> 
> to CMakeLists.txt either under blender source or ~/src/blender-deps/OpenShadingLanguage-1.5.11/ 
> 
> The blender source is git commit (7969b23), the LLVM is 3.4.
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list