Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 721500

Summary: sys-block/thin-provisioning-tools calls cc directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, gwendal
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31886
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log
Replace call to gcc with $(CXX)

Description Agostino Sarubbo gentoo-dev 2020-05-07 15:41:54 UTC
This is an auto-filled bug because sys-block/thin-provisioning-tools calls cc directly.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you think it doesn't make sense fix these type of issues, I'd like to point out that won't be possible use a different CC implementation (like clang) by setting the CC variable. So this issue has been reproduced by setting the CC variable to aarch64-unknown-linux-gnu-gcc and by removing the /usr/bin/cc - /usr/bin/gcc binaries.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-07 15:42:04 UTC
Created attachment 636750 [details]
build.log

build log and emerge --info
Comment 2 gwendal grignou 2023-06-28 23:33:29 UTC
Created attachment 864794 [details, diff]
Replace call to gcc with $(CXX)
Comment 3 Larry the Git Cow gentoo-dev 2023-07-15 06:07:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69c7647ae0eab2937fd4e7d75b8073e99866f594

commit 69c7647ae0eab2937fd4e7d75b8073e99866f594
Author:     Gwendal Grignou <gwendal@chromium.org>
AuthorDate: 2023-06-28 23:25:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-15 06:02:57 +0000

    sys-block/thin-provisioning-tools: Do not use gcc directly
    
    Use $(CXX) when linking libft.so.
    
    BUG=b:271479944
    TEST=Install on brya, check the new version.
    
    Closes: https://bugs.gentoo.org/721500
    Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
    Closes: https://github.com/gentoo/gentoo/pull/31886
    Signed-off-by: Sam James <sam@gentoo.org>

 ...thin-provisioning-tools-0.9.0-build-fixes.patch | 25 ++++++++++++++++++++++
 ...ild => thin-provisioning-tools-0.9.0-r2.ebuild} |  1 +
 2 files changed, 26 insertions(+)