Skip to content

RuntimeError: Can't find llvm-readobj-18! #119515

@johannesnoordanus

Description

@johannesnoordanus

Bug report

Bug description:

I build Python-3.13.0b1 with configure ./configure --enable-experimental-jit=yes (I also tried adding --enable-optimizations) on Linux orangepi3b 6.8.10-edge-rockchip64 #1 SMP PREEMPT Fri May 17 10:15:12 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
After a while I get a runtime error:

RuntimeError: Can't find llvm-readobj-18!

I installed llvm-18 (otherwise I got an error much sooner).

The error lead-up is shown below:

================================================================
JIT support for aarch64-unknown-linux-gnu is still experimental!
            Please report any issues you encounter.             
================================================================

  + Exception Group Traceback (most recent call last):
  |   File "/home/johannes/projects/Python-3.13.0b1/./Tools/jit/build.py", line 28, in <module>
  |     args.target.build(pathlib.Path.cwd(), comment=comment, force=args.force)
  |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_targets.py", line 214, in build
  |     stencil_groups = asyncio.run(self._build_stencils())
  |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/usr/local/lib/python3.12/asyncio/runners.py", line 194, in run
  |     return runner.run(main)
  |            ^^^^^^^^^^^^^^^^
  |   File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
  |     return self._loop.run_until_complete(task)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/usr/local/lib/python3.12/asyncio/base_events.py", line 664, in run_until_complete
  |     return future.result()
  |            ^^^^^^^^^^^^^^^
  |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_targets.py", line 189, in _build_stencils
  |     async with asyncio.TaskGroup() as group:
  |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 147, in __aexit__
  |     raise me from None
  | ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_targets.py", line 181, in _compile
    |     return await self._parse(o)
    |            ^^^^^^^^^^^^^^^^^^^^
    |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_targets.py", line 80, in _parse
    |     output = await _llvm.run("llvm-readobj", args, echo=self.verbose)
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_llvm.py", line 99, in run
    |     raise RuntimeError(f"Can't find {tool}-{_LLVM_VERSION}!")
    | RuntimeError: Can't find llvm-readobj-18!
    +---------------- 2 ----------------
    | Traceback (most recent call last):
    |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_targets.py", line 181, in _compile
    |     return await self._parse(o)
    |            ^^^^^^^^^^^^^^^^^^^^
    |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_targets.py", line 80, in _parse
    |     output = await _llvm.run("llvm-readobj", args, echo=self.verbose)
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/home/johannes/projects/Python-3.13.0b1/Tools/jit/_llvm.py", line 99, in run
    |     raise RuntimeError(f"Can't find {tool}-{_LLVM_VERSION}!")
    | RuntimeError: Can't find llvm-readobj-18!
    +------------------------------------

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtopic-JITtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy