OpenShadingLanguage icon indicating copy to clipboard operation
OpenShadingLanguage copied to clipboard

Issues linking with LLVM 18 in 1.13.9.0

Open etsach opened this issue 1 year ago • 1 comments

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

  • 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)

etsach avatar May 02 '24 08:05 etsach

Proposed fix in #1812

lgritz avatar May 05 '24 03:05 lgritz