JiayinCao / Tiny-Shading-Language

A cross-platform programmable shading language ( CPU only )
https://tiny-shading-language.com/
GNU General Public License v3.0
56 stars 7 forks source link

building errors when using TSL #25

Open WilliamWangPeng opened 3 years ago

WilliamWangPeng commented 3 years ago

Hi dear author
Honor to write a letter to you, I have one building problem when using TSL these days which is shown below:

1

Do you know how to solve it?  

Thank you
Best Regards
William

JiayinCao commented 3 years ago

Looking at the log, it is likely that the outdated version LLVM causes the problem. What I suspect is that the function was not added in that version of LLVM.

TSL was developed with LLVM 10 and I have never used another version of LLVMs. I won't be surprised if it works on a higher version LLVM. Neither will I be surprised if it won't compile with an older version LLVM.

What I would do is to make sure the pre-compiled version LLVM is synced to ${TSL_ROOT}/dependencies/ and the CMake file find this instead of the one installed in the OS. Here is the link to the pre-compiled llvm if you would like to manually do it yourself. https://github.com/JiayinCao/Tiny-Shading-Language/tree/dependencies/llvm_10_0_0/linux/x86_64

Or you can simply do this

I hope it helps. Please reply within one week if it doesn't work if possible, I will close this ticket otherwise. Of course, if you don't have time in a week, you can always re-open this ticket after I close it.