Skip to content

[cppjit] Keep LD_LIBRARY_PATH from the environment in the tests [ROOT-patch] - #165

Merged
aaronj0 merged 1 commit into
compiler-research:ROOT-2026-10-21from
jmcarcell:tests-ld-library-path
Oct 23, 2026
Merged

aaronj0 merged 1 commit into
compiler-research:ROOT-2026-10-21from
jmcarcell:tests-ld-library-path

Conversation

@jmcarcell

Copy link
Copy Markdown
Contributor

This Pull request:

The cppjit tests in ROOT set LD_LIBRARY_PATH to only the test directory, replacing the one from the environment. When ROOT is built with a compiler whose C++ standard library is found through LD_LIBRARY_PATH, as with the LCG views, every cppjit test fails before running:

/cvmfs/sft.cern.ch/lcg/releases/CMake/3.30.6-34165/x86_64-el9-gcc16-opt/bin/cmake: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.32' not found

or

ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by .../boost_histogram/_core.cpython-313-x86_64-linux-gnu.so)

Changes or fixes:

Prepend the test directory to the LD_LIBRARY_PATH of the environment instead of replacing it, the same way PYTHONPATH is set a few lines above.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

Tested in a ROOT master build (whose bindings/pyroot/cppjit/test/CMakeLists.txt is the same as on this branch) on AlmaLinux 9 with the dev3 view (gcc 16): before, all 26 cppjit tests fail through ctest; after, all of them pass.

@jmcarcell jmcarcell closed this Oct 22, 2026
@jmcarcell jmcarcell reopened this Oct 22, 2026
@aaronj0

aaronj0 commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Can you open this against main instead of the ROOT branch? That can be tested and landed as a standard patch.

@jmcarcell
jmcarcell changed the base branch from ROOT to main October 22, 2026 16:02
@jmcarcell

Copy link
Copy Markdown
Contributor Author

Done

@aaronj0

aaronj0 commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Done

Changing the base branch keeps all the commits before 4232cd2, you'll need to rewrite the history with a cherry pick on main

@jmcarcell

Copy link
Copy Markdown
Contributor Author

Ah yes, there is no test/CMakeLists.txt it's only in the ROOT branch. What do I do?

@jmcarcell
jmcarcell changed the base branch from main to ROOT October 22, 2026 18:53
@jmcarcell
jmcarcell force-pushed the tests-ld-library-path branch from 7afae94 to c05a55c Compare October 22, 2026 18:54
@aaronj0

aaronj0 commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Ah yes, there is no test/CMakeLists.txt it's only in the ROOT branch. What do I do?

Ah, right. No worries we can merge this as is. Can you target ROOT-2026-10-21 (https://github.com/compiler-research/cppjit/tree/ROOT-2026-10-21)

@aaronj0
aaronj0 force-pushed the tests-ld-library-path branch from c05a55c to 6eef4de Compare October 23, 2026 10:01
@aaronj0
aaronj0 changed the base branch from ROOT to ROOT-2026-10-21 October 23, 2026 10:05
@aaronj0
aaronj0 merged commit b5879cb into compiler-research:ROOT-2026-10-21 Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants