Page MenuHomeFreeBSD

devel/mdb: Use clang 7 as compiler on 11.x and 12.x to fix build.
ClosedPublic

Authored by jhb on Nov 21 2019, 7:07 PM.
Tags
None
Referenced Files
F81646481: D22486.diff
Fri, Apr 19, 10:27 AM
Unknown Object (File)
Feb 24 2024, 1:43 AM
Unknown Object (File)
Feb 24 2024, 1:43 AM
Unknown Object (File)
Feb 24 2024, 1:43 AM
Unknown Object (File)
Feb 23 2024, 8:50 PM
Unknown Object (File)
Dec 23 2023, 12:40 AM
Unknown Object (File)
Dec 21 2023, 10:19 PM
Unknown Object (File)
Sep 3 2023, 10:49 PM
Subscribers

Details

Summary

clang 8 and later error for duplicate definitions of enum values. mdb
depends on having identical but duplicate definitions. This was fixed
differently in 13 with a change to the kernel, but that change is
disruptive and cannot be easily backported.

Test Plan
  • built on 13 (still used cc) and stable/11 (used clang70)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 21 2019, 7:31 PM
dch added inline comments.
devel/mdb/Makefile
34 ↗(On Diff #64686)

per IRC, guard this? .if ${OPSYS} == FreeBSD && ..

linimon retitled this revision from Use clang 7 as compiler on 11.x and 12.x to fix build. to devel/mdb: Use clang 7 as compiler on 11.x and 12.x to fix build..Nov 22 2019, 1:41 AM