Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues linking with LLVM 18 in 1.13.9.0 #1809

Open
etsach opened this issue May 2, 2024 · 1 comment · May be fixed by #1812
Open

Issues linking with LLVM 18 in 1.13.9.0 #1809

etsach opened this issue May 2, 2024 · 1 comment · May be fixed by #1812
Labels
build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. llvm Needs LLVM knowledge

Comments

@etsach
Copy link

etsach commented May 2, 2024

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 etsach changed the title Issues linking with LLVM 18 in 1. Issues linking with LLVM 18 in 1.13.9.0 May 2, 2024
@lgritz lgritz linked a pull request May 5, 2024 that will close this issue
@lgritz
Copy link
Collaborator

lgritz commented May 5, 2024

Proposed fix in #1812

@lgritz lgritz added build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. llvm Needs LLVM knowledge labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. llvm Needs LLVM knowledge
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants