Bug 292664 - misc/py-pytorch: fix build with clang >= 19 and libc++ 21
Summary: misc/py-pytorch: fix build with clang >= 19 and libc++ 21
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks: 292067
  Show dependency treegraph
 
Reported: 2026-01-22 19:22 UTC by Dimitry Andric
Modified: 2026-01-31 18:42 UTC (History)
0 users

See Also:
yuri: maintainer-feedback+


Attachments
misc/py-pytorch: fix build with clang >= 19 and libc++ 21 (1.56 KB, patch)
2026-01-22 19:23 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2026-01-22 19:22:46 UTC
In ports f07b5ade5369 misc/py-pytorch was force onto llvm:max=15, with
the reason "fix build on 14". Remove this, and add a patch to make it
build with clang >= 19 and libc++ 21.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2026-01-22 19:23:42 UTC
Created attachment 267401 [details]
misc/py-pytorch: fix build with clang >= 19 and libc++ 21
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2026-01-31 17:59:46 UTC
Approved.
Please commit it.
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-01-31 18:20:25 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3bd3c194d694c34c2b6a8e0ee93b78e2f1a65a9f

commit 3bd3c194d694c34c2b6a8e0ee93b78e2f1a65a9f
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-01-22 19:22:17 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-01-31 18:18:19 +0000

    misc/py-pytorch: fix build with clang >= 19 and libc++ 21

    In ports f07b5ade5369 misc/py-pytorch was forced onto llvm:max=15, with
    the reason "fix build on 14". Remove this, and add a patch to make it
    build with clang >= 19 and libc++ 21.

    PR:             292664
    Approved by:    yuri (maintainer)
    MFH:            2026Q1

 misc/py-pytorch/Makefile                                       |  4 ----
 .../files/patch-third__party_fmt_include_fmt_format.h (new)    | 10 ++++++++++
 2 files changed, 10 insertions(+), 4 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-01-31 18:21:28 UTC
A commit in branch 2026Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b69c8aa31af64545a24e840780e9f2ed27297bb

commit 8b69c8aa31af64545a24e840780e9f2ed27297bb
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-01-22 19:22:17 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-01-31 18:20:10 +0000

    misc/py-pytorch: fix build with clang >= 19 and libc++ 21

    In ports f07b5ade5369 misc/py-pytorch was forced onto llvm:max=15, with
    the reason "fix build on 14". Remove this, and add a patch to make it
    build with clang >= 19 and libc++ 21.

    PR:             292664
    Approved by:    yuri (maintainer)
    MFH:            2026Q1

    (cherry picked from commit 3bd3c194d694c34c2b6a8e0ee93b78e2f1a65a9f)

 misc/py-pytorch/Makefile                                       |  4 ----
 .../files/patch-third__party_fmt_include_fmt_format.h (new)    | 10 ++++++++++
 2 files changed, 10 insertions(+), 4 deletions(-)