Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 22, 2025

Apparently, in LLVM 18, some things shifted between libraries and that requires a slightly different link order. But only on Linux, or maybe only with static libraries, so even though our Mac and Windows CI tests have used LLVM 18, it wasn't symptomatic there.

We didn't discover this earlier because we didn't actually test against LLVM 18 on any of the Linux CI runs. So we add that.

Also, to alleviate the pain in adjusting LLVM versions and often needing to modify our build_llvm.bash script, I'm trying out a GHA marketplace action KyleMayes/install-llvm-action, and it works well and saved me time, so we may switch to that for other cases over time as well.

Apparently, in LLVM 18, some things shifted between libraries and that
requires a slightly different link order. But only on Linux, or maybe
only with static libraries, so even though our Mac and Windows CI
tests have used LLVM 18, it wasn't symptomatic there.

We didn't discover this earlier because we didn't actually test
against LLVM 18 on any of the Linux CI runs. So we add that.

Also, to alleviate the pain in adjusting LLVM versions and often
needing to modify our build_llvm.bash script, I'm trying out a GHA
marketplace action KyleMayes/install-llvm-action, and it works well
and saved me time, so we may switch to that for other cases over time
as well.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz added build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. llvm Needs LLVM knowledge labels Feb 22, 2025
@lgritz lgritz requested a review from AlexMWells February 22, 2025 18:21
@lgritz lgritz self-assigned this Feb 22, 2025
@lgritz
Copy link
Collaborator Author

lgritz commented Feb 25, 2025

Any comments or objections?

@fpsunflower
Copy link
Contributor

Looking forward to being able to ditch this dependency :) I have poked things again on my end, the wheels are still in motion ...

@lgritz lgritz merged commit c048a33 into AcademySoftwareFoundation:main Feb 26, 2025
26 checks passed
@lgritz lgritz deleted the lg-llvm18 branch February 26, 2025 23:59
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Feb 27, 2025
Apparently, in LLVM 18, some things shifted between libraries and that
requires a slightly different link order. But only on Linux, or maybe
only with static libraries, so even though our Mac and Windows CI
tests have used LLVM 18, it wasn't symptomatic there.

We didn't discover this earlier because we didn't actually test
against LLVM 18 on any of the Linux CI runs. So we add that.

Also, to alleviate the pain in adjusting LLVM versions and often
needing to modify our build_llvm.bash script, I'm trying out a GHA
marketplace action KyleMayes/install-llvm-action, and it works well
and saved me time, so we may switch to that for other cases over time
as well.

Signed-off-by: Larry Gritz <[email protected]>
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 this pull request may close these issues.

2 participants