Bug 284688 - devel/nextpnr: Fix build with llvm19
Summary: devel/nextpnr: Fix build with llvm19
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: Joel Bodenmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-09 18:39 UTC by Joel Bodenmann
Modified: 2025-02-10 14:45 UTC (History)
2 users (show)

See Also:
manu: maintainer-feedback+


Attachments
patch (1.57 KB, patch)
2025-02-09 18:39 UTC, Joel Bodenmann
jbo: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Bodenmann freebsd_committer freebsd_triage 2025-02-09 18:39:53 UTC
Created attachment 257358 [details]
patch

This patch fixes the currently failing build with llvm19.

The fix/change has been implemented by upstream here [1].
However, as it's not a standalone commit we cannot simply pull in the upstream patch.
Fedora runs with the same patch [2].

Testport now succeeds with both 14-STABLE (llvm19) and 14.2-RELEASE (llvm18).

[1] https://github.com/YosysHQ/nextpnr/commit/cd7f7c12f13ecaf1ec4019cdcc56bddfb4f0677f#diff-47db8bd1e64977b6214087b5e0edb99d30f96e4e72298c79fe4bd2b8416fa8a4
[2] https://src.fedoraproject.org/rpms/nextpnr/blob/rawhide/f/0002-fedora-fix-compile-error-in-gui-quadtree.h.patch
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-02-10 14:43:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=90c9b021f4252509bd038ef55d51dd78a98dbc5c

commit 90c9b021f4252509bd038ef55d51dd78a98dbc5c
Author:     Joel Bodenmann <jbo@FreeBSD.org>
AuthorDate: 2025-02-09 18:10:21 +0000
Commit:     Joel Bodenmann <jbo@FreeBSD.org>
CommitDate: 2025-02-10 14:41:52 +0000

    devel/nextpnr: Fix build with llvm19

    This fix/change was already implemented by upstream in cd7f7c12f13ecaf1ec4019cdcc56bddfb4f0677f.
    However, as it's not a standalone commit, we cannot pull in the upstream patch.

    PR:             284688
    Approved by:    manu (maintainer)

 devel/nextpnr/Makefile                         |  2 +-
 devel/nextpnr/files/patch-gui_quadtree.h (new) | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)