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

x86 OrcJIT test error #1003

Closed
gmarkall opened this issue Oct 12, 2023 · 1 comment · Fixed by #1001
Closed

x86 OrcJIT test error #1003

gmarkall opened this issue Oct 12, 2023 · 1 comment · Fixed by #1001
Labels
Milestone

Comments

@gmarkall
Copy link
Member

In some cases the OrcJIT tests can fail with:

running run_test.py
..s................................................................s.........................................JIT session error: Symbols not found: [ Py_GetVersion ]
E...................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_lookup_current_process_symbol (llvmlite.tests.test_binding.TestOrcLLJIT)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/llvmlite_1697110482515/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/pypy3.9/site-packages/llvmlite/tests/test_binding.py", line 1367, in test_lookup_current_process_symbol
    self.jit(asm_getversion, "getversion", None, True)
  File "/home/conda/feedstock_root/build_artifacts/llvmlite_1697110482515/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/pypy3.9/site-packages/llvmlite/tests/test_binding.py", line 1241, in jit
    rt = builder\
  File "/home/conda/feedstock_root/build_artifacts/llvmlite_1697110482515/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/pypy3.9/site-packages/llvmlite/binding/orcjit.py", line 175, in link
    raise RuntimeError(str(outerr))
RuntimeError: Failed to materialize symbols: { (getversion, { getversion }) }

(spotted during a build of the conda-forge llvmlite 0.41.0 package). I haven't time to look into this, but I suspect that the test test_lookup_current_process_symbol_fails failing to find the symbol messes up / corrupts state somehow, such that even after enabling search for symbols in the current process, lookups still fail.

See also #1002.

@gmarkall
Copy link
Member Author

This is because it was running on PyPy, where the function Py_GetVersion() does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant