AcademySoftwareFoundation / OpenShadingLanguage

Advanced shading language for production GI renderers
BSD 3-Clause "New" or "Revised" License
2.05k stars 347 forks source link

Issues linking with LLVM 18 in 1.13.9.0 #1809

Open etsach opened 2 months ago

etsach commented 2 months ago

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

  1. cmake .. -DCMAKE_CXX_STANDARD=17
  2. make -j8

Versions

lgritz commented 2 months ago

Proposed fix in #1812