With osl enabled, I get a linking error.
/usr/local/bin/x86_64-unknown-freebsd13.1-ld: /usr/local/llvm15/lib/libclangSema.a(SemaRISCVVectorLookup.cpp.o): undefined reference to symbol '_ZN5clang5RISCV7RVVType12computeTypesENS0_9BasicTypeEijN4llvm8ArrayRefINS0_19PrototypeDescriptorEEE'
/usr/local/bin/x86_64-unknown-freebsd13.1-ld: /usr/local/llvm15/lib/libclang-cpp.so.15: error adding symbols: DSO missing from command line
I can resolve this by manually adding libclangSupport.a
to the lib list, so it would seem the generation of the library list is missing one.
--- intern/cycles/kernel/osl/CMakeLists.txt.orig 2022-12-30 03:23:58 UTC
+++ intern/cycles/kernel/osl/CMakeLists.txt
@@ -31,6 +31,7 @@ set(LIB
${OPENIMAGEIO_LIBRARIES}
${PUGIXML_LIBRARIES}
${CLANG_LIBRARIES}
+ /usr/local/llvm15/lib/libclangSupport.a
${LLVM_LIBRARY}
)