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

Bug 764914

Summary: games-roguelike/stone-soup-0.25.1-r100 calls cc directly
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Erik Mackdanz <stasibear>
Status: RESOLVED FIXED    
Severity: normal CC: games
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-01-11 07:24:32 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-roguelike/stone-soup-0.25.1-r100 calls cc directly.
Discovered on: amd64 (internal ref: ci)

NOTE:
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different CC implementation (like clang). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks] and set the CC variable to x86_64-pc-linux-gnu-gcc.
Comment 1 Agostino Sarubbo gentoo-dev 2021-01-11 07:24:35 UTC
Created attachment 682342 [details]
build.log

build log and emerge --info
Comment 2 Erik Mackdanz gentoo-dev 2021-08-01 22:18:33 UTC
I don't reproduce this issue, so I'll close it.  Please reopen if scans continue to show the issue, and maybe suggest another way to reproduce it.

1. As recommended, I built sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks] and confirmed that there are no unprefixed 'gcc' or 'g++' binaries.  I then ran 'CXX=x86_64-pc-linux-gnu-g++ CC=x86_64-pc-linux-gnu-gcc emerge -av =games-roguelike/stone-soup-0.25.1-r101'.  The build is successful and uses the stated prefixed compiler binary.

2. I confirmed that CC and CXX are respected by watching this command fail: 'CXX=/bin/true CC=/bin/true emerge -av =games-roguelike/stone-soup-0.25.1-r101'

3. src_compile sets:
        GCC="$(tc-getCC)"
        GXX="$(tc-getCXX)"
  ... which is correctly forwarding the user-preferred CC/CXX into make.
Comment 3 Erik Mackdanz gentoo-dev 2021-08-03 04:30:33 UTC
I could eventually reproduce this.  Fixed with https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a186dfbe961e0d9358f3d69ed434c365b8c730 (unstable)