OpenShadingLanguage
OpenShadingLanguage copied to clipboard
Issues linking with LLVM 18 in 1.13.9.0
Problem
Expected behavior: Build OSL library with LLVM 18
Actual behavior: oslc fails to link with undefined references such as:
/usr/bin/ld: ../../lib/liboslcomp.so.1.13.9: undefined reference to clang::api_notes::APINotesManager::APINotesManager(clang::SourceManager&, clang::LangOptions const&)'
We might just need -lclangAPINotes with LLVM 18
Steps to Reproduce
cmake .. -DCMAKE_CXX_STANDARD=17make -j8
Versions
- OSL branch/version: 1.13.9.0 release
- OS: Ubuntu 24.04 LTS
- C++ compiler: clang 18.1.3 (Ubuntu 24.04 package)
- LLVM version: 18.0 (Ubuntu 24.04 package)
- OIIO version: 2.4.17 (Ubuntu 24.04 package)
Proposed fix in #1812