Bug 2448969 - llvm fails to build with Python 3.15: shtest-ulimit-nondarwin.py: error: no match found
Summary: llvm fails to build with Python 3.15: shtest-ulimit-nondarwin.py: error: no m...
Keywords:
Status: POST
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-03-19 08:19 UTC by Karolina Surma
Modified: 2026-04-08 11:01 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:
tuliom: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources llvm pull-request 584 0 None None None 2026-04-08 11:01:20 UTC
Github llvm llvm-project pull 190953 0 None Draft [lit] Normalize RLIM_INFINITY to -1 in print_limits.py for Python 3.15+ 2026-04-08 10:45:59 UTC

Description Karolina Surma 2026-03-19 08:19:11 UTC
llvm fails to build with Python 3.15.0a7.

TEST 'lit :: shtest-ulimit-nondarwin.py' FAILED 
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 7
not env -u FILECHECK_OPTS "/usr/bin/python3" /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/utils/lit/lit.py -j1 --order=lexical -v Inputs/shtest-ulimit-nondarwin | FileCheck /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/redhat-linux-build/utils/lit/tests/shtest-ulimit-nondarwin.py
# executed command: not env -u FILECHECK_OPTS /usr/bin/python3 /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/utils/lit/lit.py -j1 --order=lexical -v Inputs/shtest-ulimit-nondarwin
# note: command had no output on stdout or stderr
# executed command: FileCheck /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/redhat-linux-build/utils/lit/tests/shtest-ulimit-nondarwin.py
# .---command stderr------------
# | /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/redhat-linux-build/utils/lit/tests/shtest-ulimit-nondarwin.py:21:10: error: CHECK: expected string not found in input
# | # CHECK: RLIMIT_FSIZE=-1
# |          ^
# | <stdin>:53:20: note: scanning from here
# | ulimit -f unlimited
# |                    ^
# | <stdin>:62:5: note: possible intended match here
# | # | RLIMIT_FSIZE=18446744073709551615
# |     ^
# | 
# | Input file: <stdin>
# | Check file: /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/redhat-linux-build/utils/lit/tests/shtest-ulimit-nondarwin.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            48: # | RLIMIT_NOFILE=10000 
# |            49: # | RLIMIT_STACK=8388608 
# |            50: # | RLIMIT_FSIZE=5 
# |            51: # `----------------------------- 
# |            52: # RUN: at line 3 
# |            53: ulimit -f unlimited 
# | check:21'0                        X error: no match found
# |            54: # executed command: ulimit -f unlimited 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            55: # RUN: at line 4 
# | check:21'0     ~~~~~~~~~~~~~~~~~
# |            56: "/usr/bin/python3" /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/redhat-linux-build/utils/lit/tests/Inputs/shtest-ulimit-nondarwin/../shtest-ulimit/print_limits.py 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            57: # executed command: /usr/bin/python3 /builddir/build/BUILD/llvm-22.1.1-build/llvm-project-22.1.1.src/llvm/redhat-linux-build/utils/lit/tests/Inputs/shtest-ulimit-nondarwin/../shtest-ulimit/print_limits.py 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            58: # .---command stdout------------ 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            59: # | RLIMIT_AS=18446744073709551615 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            60: # | RLIMIT_NOFILE=10000 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |            61: # | RLIMIT_STACK=8388608 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |            62: # | RLIMIT_FSIZE=18446744073709551615 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:21'1         ?                                  possible intended match
# |            63: # `----------------------------- 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            64: # RUN: at line 6 
# | check:21'0     ~~~~~~~~~~~~~~~~~
# |            65: not echo return 
# | check:21'0     ~~~~~~~~~~~~~~~~
# |            66: # executed command: not echo return 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            67: # .---command stdout------------ 
# | check:21'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>



https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10236545-llvm/

For all our attempts to build llvm with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/llvm/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Tulio Magno Quites Machado Filho 2026-03-19 13:29:37 UTC
This behavior change is related to https://github.com/python/cpython/commit/0324c726dea702282a0300225e989b19ae23b759

Comment 2 Miro Hrončok 2026-04-08 10:46:00 UTC
https://github.com/llvm/llvm-project/pull/190953


Note You need to log in before you can comment on or make changes to this bug.