Created attachment 599456 [details] Build log When building bbswitch once kernel and its modules were compiled with clang, there are build errors (attached) due to not respecting CC variable and trying to compile with gnu's cc. The solution I found is to pass CC=$(tc-getCC) to linux-mod eclass build params (attaching ebuild diff)
Created attachment 599458 [details, diff] current ebuild patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8a4109655d335052fff129b206061ecb5ad845a commit b8a4109655d335052fff129b206061ecb5ad845a Author: Piotr Karbowski <slashbeast@gentoo.org> AuthorDate: 2020-04-06 18:40:41 +0000 Commit: Piotr Karbowski <slashbeast@gentoo.org> CommitDate: 2020-04-06 18:42:10 +0000 sys-power/bbswitch-0.8-r3: kernel 5.6 support; $CC fixes. Closes: https://bugs.gentoo.org/715500 Closes: https://bugs.gentoo.org/702730 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org> sys-power/bbswitch/bbswitch-0.8-r3.ebuild | 57 ++++++++++++++++++++++ sys-power/bbswitch/bbswitch-9999.ebuild | 11 +++-- .../bbswitch/files/bbswitch-0.8-kernel-5.6.patch | 52 ++++++++++++++++++++ 3 files changed, 116 insertions(+), 4 deletions(-)