Page MenuHomeFreeBSD

iwlwifi: Don't compile for clang before 19
AbandonedPublic

Authored by brooks on Wed, Dec 17, 11:53 AM.
Tags
None
Referenced Files
F141942263: D54266.id168250.diff
Tue, Jan 13, 7:06 PM
Unknown Object (File)
Mon, Jan 12, 2:33 PM
Unknown Object (File)
Mon, Jan 12, 6:16 AM
Unknown Object (File)
Sat, Jan 10, 5:47 AM
Unknown Object (File)
Fri, Jan 9, 7:01 PM
Unknown Object (File)
Thu, Jan 8, 12:05 AM
Unknown Object (File)
Mon, Jan 5, 7:31 PM
Unknown Object (File)
Thu, Jan 1, 1:23 PM
Subscribers

Details

Reviewers
bz
imp
Summary

The linux kpi requires __builtin_popcountg which was introduced in Clang

  1. With this change I can build an aarch64 GENERIC kernel with the

llvm-morello toolchain (based on LLVM 17).

Sponsored by: DARPA, AFRL

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 69328
Build 66211: arc lint + arc unit

Event Timeline

brooks created this revision.

Bump compiler version to 19.1.0 since development versions may not
include __builtin_popcountg.

bz requested changes to this revision.Thu, Dec 18, 2:17 AM

Can we abandon this.

There are at least two versions floating around (at least one in review if I remember correctly) which don't require the silly checks.
Sorry, gcc is still broken again since the day after this was added by @imp.

I'll find the reviews if needed if you are willing to review them?

This revision now requires changes to proceed.Thu, Dec 18, 2:17 AM

I don't care how it's fixed, but I will commit this pretty soon if a broader fix isn't added. The linuxkpi fix should never have been committed without a fallback.

bz added a subscriber: dumbbell.

I'll deal with it after the fact; I don't think @dumbbell currently finds the time.
It's been 7cbc4d875971860d941cc15d7f42e6cfeffbfe66 ( https://reviews.freebsd.org/D50995 ) by @dumbbell for drm-kmod and had nothing to do with iwlwifi in first place.

This revision is now accepted and ready to land.Thu, Dec 18, 9:59 PM

D54301 and D54297 will resolve this issue