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
Unknown Object (File)
Wed, Sep 24, 5:20 AM
Unknown Object (File)
Tue, Sep 23, 4:29 PM
Unknown Object (File)
Sat, Sep 20, 6:37 AM
Unknown Object (File)
Tue, Sep 16, 12:15 AM
Unknown Object (File)
Aug 30 2025, 5:05 AM
Unknown Object (File)
Aug 18 2025, 3:52 AM
Unknown Object (File)
Aug 11 2025, 10:51 PM
Unknown Object (File)
Aug 11 2025, 4:31 AM
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 27690
Build 25890: arc lint + arc unit

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

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