Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

--enable-experimental-jit fails to build:AssertionError: SHT_NOTE in 3.13.0b1 #118836

Closed
Assignees
savannahostrowski
Labels
buildThe build process and cross-buildtopic-JITtype-bugAn unexpected behavior, bug, or error
@mgorny

Description

@mgorny

Bug report

Bug description:

When trying to build CPython with--enable-experimental-jit against LLVM 18.1.5, I'm getting the following error:

$ makepython3.13 ./Tools/jit/build.py x86_64-pc-linux-gnu==========================================================JIT support for x86_64-pc-linux-gnu is still experimental!         Please reportany issues you encounter.          ==========================================================  + Exception Group Traceback (most recent call last):  |   File "/home/mgorny/git/cpython/./Tools/jit/build.py", line 28, in <module>  |     args.target.build(pathlib.Path.cwd(), comment=comment, force=args.force)  |     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  |   File "/home/mgorny/git/cpython/Tools/jit/_targets.py", line 214, in build  |     stencil_groups = asyncio.run(self._build_stencils())  |   File "/usr/lib/python3.13/asyncio/runners.py", line 194, in run  |     return runner.run(main)  |            ~~~~~~~~~~^^^^^^  |   File "/usr/lib/python3.13/asyncio/runners.py", line 118, in run  |     return self._loop.run_until_complete(task)  |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^  |   File "/usr/lib/python3.13/asyncio/base_events.py", line 721, in run_until_complete  |     return future.result()  |            ~~~~~~~~~~~~~^^  |   File "/home/mgorny/git/cpython/Tools/jit/_targets.py", line 189, in _build_stencils  |     async with asyncio.TaskGroup() as group:  |     ...<4 lines>...  |             tasks.append(group.create_task(coro, name=opname))  |   File "/usr/lib/python3.13/asyncio/taskgroups.py", line 154, in __aexit__  |     raise me from None  | ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)  +-+---------------- 1 ----------------| Traceback (most recent call last):|   File"/home/mgorny/git/cpython/Tools/jit/_targets.py", line181,in _compile|returnawaitself._parse(o)|^^^^^^^^^^^^^^^^^^^^|   File"/home/mgorny/git/cpython/Tools/jit/_targets.py", line89,in _parse|self._handle_section(wrapped_section["Section"], group)|~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|   File"/home/mgorny/git/cpython/Tools/jit/_targets.py", line349,in _handle_section|assert section_typein {|^^^^^^^^^^^^^^^^^|...<5 lines>...|     }, section_type|^|AssertionError:SHT_NOTE+----------------2----------------| Traceback (most recent call last):|   File"/home/mgorny/git/cpython/Tools/jit/_targets.py", line181,in _compile|returnawaitself._parse(o)|^^^^^^^^^^^^^^^^^^^^|   File"/home/mgorny/git/cpython/Tools/jit/_targets.py", line89,in _parse|self._handle_section(wrapped_section["Section"], group)|~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|   File"/home/mgorny/git/cpython/Tools/jit/_targets.py", line349,in _handle_section|assert section_typein {|^^^^^^^^^^^^^^^^^|...<5 lines>...|     }, section_type|^|AssertionError:SHT_NOTE+------------------------------------Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x7f2fa5251760>Traceback (most recent call last):  File"/usr/lib/python3.13/asyncio/base_subprocess.py", line127, in__del__  File"/usr/lib/python3.13/asyncio/base_subprocess.py", line104, inclose  File"/usr/lib/python3.13/asyncio/unix_events.py", line603, inclose  File"/usr/lib/python3.13/asyncio/unix_events.py", line627, in_close  File"/usr/lib/python3.13/asyncio/base_events.py", line829, incall_soon  File"/usr/lib/python3.13/asyncio/base_events.py", line552, in_check_closedRuntimeError:Event loop is closedmake:*** [Makefile:3015: jit_stencils.h] Error 1

I don't recall which alpha I've tested it last on, but I'm pretty sure it used to work (against LLVM 16). I'm getting the same result on main as of7c87ce7.

This is Gentoo Linux amd64.

I've reproduced by doing (in git repo):

export PATH=/usr/lib/llvm/18/bin:${PATH}./configure --enable-experimental-jitmake

Resulting log (70k):python-log.txt

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

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


    [8]ページ先頭

    ©2009-2025 Movatter.jp