Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764914 - games-roguelike/stone-soup-0.25.1-r100 calls cc directly
Summary: games-roguelike/stone-soup-0.25.1-r100 calls cc directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Erik Mackdanz
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2021-01-11 07:24 UTC by Agostino Sarubbo
Modified: 2021-08-03 04:30 UTC (History)
1 user (show)

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

build.log (build.log,492.68 KB, text/plain)
2021-01-11 07:24 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-01-11 07:24:32 UTC

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

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 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:
  ... 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 (unstable)