Bug 292168 - graphics/opendx: make it build with clang 19 and higher
Summary: graphics/opendx: make it build with clang 19 and higher
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: Stephen Montgomery-Smith
URL:
Keywords:
Depends on:
Blocks: 292067
  Show dependency treegraph
 
Reported: 2026-01-03 23:27 UTC by Dimitry Andric
Modified: 2026-01-04 03:44 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (stephen)


Attachments
graphics/opendx: make it build with clang 19 and higher (1.86 KB, patch)
2026-01-03 23:28 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-03 23:27:37 UTC
In ports 0df8d006f641b ("Fix build on 14"), graphics/opendx was tied to
clang 15. Inspecting the configure script a bit, it turns out that
failures were due to clang 19 defaulting to -std=gnu++17 for C++
sources. (The configure script tries to define a macro 'byte' which is a
reserved identifier in the C++17 standard library).

Use USE_CXXSTD=gnu++11 to make it compile with base clang (19) on all
currently supported branches. Remove setting of CPPFLAGS, since that
will not work with C sources, if -std=gnu++11 is added to CXXFLAGS.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2026-01-03 23:28:44 UTC
Created attachment 266793 [details]
graphics/opendx: make it build with clang 19 and higher
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-01-04 03:44:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=42e21c547c888199ab318786c40d3838dc6d012d

commit 42e21c547c888199ab318786c40d3838dc6d012d
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2026-01-04 03:39:38 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2026-01-04 03:39:38 +0000

    graphics/opendx: Make it build with clang 19

    - Make it build with clang 19 and higher.

    - bump portrevision.

    PR:             292168
    Reported by:    dim@FreeBSD.org

 graphics/opendx/Makefile | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
Comment 3 Stephen Montgomery-Smith freebsd_committer freebsd_triage 2026-01-04 03:44:57 UTC
Committed.  Thank you for this great PR.