OpenShadingLanguage icon indicating copy to clipboard operation
OpenShadingLanguage copied to clipboard

build: llvm 18 compat issue - include libclangAPINotes

Open lgritz opened this issue 1 year ago • 5 comments

Fixes #1809

lgritz avatar May 05 '24 03:05 lgritz

@etsach are you able to try this change on your slide and let us know if it works?

It seems safe, and doesn't break anything. But then again, I could never get it to fail. Maybe because you were using llvm 18.0 and I was using 18.1 and maybe they fixed something on their end in between?

lgritz avatar May 05 '24 03:05 lgritz

Hi,

This fixes the link error, but then I have another serie of link errors:

undefined reference to clang::SourceMgrAdapter::~SourceMgrAdapter()' undefined reference to clang::SourceMgrAdapter::handleDiag(llvm::SMDiagnostic const&, void*)' etc...

And I can't find a library that fix them. Definitely something else causing an issue.

Le dim. 5 mai 2024 à 05:48, Larry Gritz @.***> a écrit :

@etsach https://github.com/etsach are you able to try this change on your slide and let us know if it works?

It seems safe, and doesn't break anything. But then again, I could never get it to fail. Maybe because you were using llvm 18.0 and I was using 18.1 and maybe they fixed something on their end in between?

— Reply to this email directly, view it on GitHub https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/pull/1812#issuecomment-2094570297, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXIPYMDXBVO4JHQY2VSWZTZAWTZHAVCNFSM6AAAAABHHLUVYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGU3TAMRZG4 . You are receiving this because you were mentioned.Message ID: <AcademySoftwareFoundation/OpenShadingLanguage/pull/1812/c2094570297@ github.com>

etsach avatar May 06 '24 20:05 etsach

I forgot, this is with LLVM 18.1.3

Le lun. 6 mai 2024 à 22:24, Etienne Sandré-Chardonnal < @.***> a écrit :

Hi,

This fixes the link error, but then I have another serie of link errors:

undefined reference to clang::SourceMgrAdapter::~SourceMgrAdapter()' undefined reference to clang::SourceMgrAdapter::handleDiag(llvm::SMDiagnostic const&, void*)' etc...

And I can't find a library that fix them. Definitely something else causing an issue.

Le dim. 5 mai 2024 à 05:48, Larry Gritz @.***> a écrit :

@etsach https://github.com/etsach are you able to try this change on your slide and let us know if it works?

It seems safe, and doesn't break anything. But then again, I could never get it to fail. Maybe because you were using llvm 18.0 and I was using 18.1 and maybe they fixed something on their end in between?

— Reply to this email directly, view it on GitHub https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/pull/1812#issuecomment-2094570297, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXIPYMDXBVO4JHQY2VSWZTZAWTZHAVCNFSM6AAAAABHHLUVYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGU3TAMRZG4 . You are receiving this because you were mentioned.Message ID: <AcademySoftwareFoundation/OpenShadingLanguage/pull/1812/c2094570297@ github.com>

etsach avatar May 06 '24 20:05 etsach

It all works for me with LLVM18 on MacOS. I'll try to do a Linux LLVM 18 build at work and see I can reproduce.

In the mean time, is the change in this PR a step forward that we should merge now, even if there may be additional changes needed after that?

lgritz avatar May 08 '24 18:05 lgritz

@etasch, any comments? Should I merge what I have here and then we can try to find any remaining issues? Or are you worried that these changes are not correct?

lgritz avatar May 22 '24 17:05 lgritz

This has languished for a while without a reply, but I think it's safe. Merging.

lgritz avatar Jul 21 '24 18:07 lgritz