Bug 2448969

Summary: llvm fails to build with Python 3.15: shtest-ulimit-nondarwin.py: error: no match found
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: llvmAssignee: Tom Stellard <tstellar>
Status: POST --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmalcolm, fedora-llvm-team, jakub, jchecahi, jistone, kkleine, ksurma, mhroncok, npopov, scottt.tw, sergesanspaille, siddharth.kde, suraj.ghimire7, tbaeder, tstellar, tuliom
Target Milestone: ---Flags: tuliom: needinfo-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2412434    

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