Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702730 - sys-power/bbswitch-0.8-r2 does not respect system's CC
Summary: sys-power/bbswitch-0.8-r2 does not respect system's CC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Piotr Karbowski (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-12-13 18:38 UTC by David Carlos Manuelda
Modified: 2020-04-06 18:42 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,3.41 KB, text/x-log)
2019-12-13 18:38 UTC, David Carlos Manuelda
Details
current ebuild patch (0001-Respect-system-s-CC-variable.patch,875 bytes, patch)
2019-12-13 18:45 UTC, David Carlos Manuelda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2019-12-13 18:38:38 UTC
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)
Comment 1 David Carlos Manuelda 2019-12-13 18:45:51 UTC
Created attachment 599458 [details, diff]
current ebuild patch
Comment 2 Larry the Git Cow gentoo-dev 2020-04-06 18:42:16 UTC
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(-)