Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795168 - dev-cpp/pystring-1.1.3 calls g++ directly
Summary: dev-cpp/pystring-1.1.3 calls g++ directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Parborg
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2021-06-10 06:30 UTC by Agostino Sarubbo
Modified: 2021-06-12 12:57 UTC (History)
3 users (show)

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

build.log (build.log,34.63 KB, text/plain)
2021-06-10 06:30 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-06-10 06:30:01 UTC

Issue: dev-cpp/pystring-1.1.3 calls g++ directly.
Discovered on: amd64 (internal ref: ci)

This machine uses GCC-11:
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 C++ implementation (like clang++). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Comment 1 Agostino Sarubbo gentoo-dev 2021-06-10 06:30:04 UTC
Created attachment 715041 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-06-10 06:30:06 UTC
Possible context of error(s):

/usr/bin/libtool: line 1813: g++: command not found
Comment 3 Sebastian Parborg 2021-06-12 12:09:43 UTC
I've posted a fix here:
Comment 4 Larry the Git Cow gentoo-dev 2021-06-12 12:55:16 UTC
The bug has been closed via the following commit(s):

commit 91773fd1eb57d4c080c0151f5899f1631ddf2aac
Author:     Sebastian Parborg <>
AuthorDate: 2021-06-12 12:00:18 +0000
Commit:     Sam James <>
CommitDate: 2021-06-12 12:54:54 +0000

    dev-cpp/pystring: Don't use hardcoded g++ (convert to CMake)
    Convert the project into cmake so we get compiler switching for free.
    Signed-off-by: Sebastian Parborg <>
    Signed-off-by: Sam James <>

 dev-cpp/pystring/files/cmake.patch                 | 84 ++++++++++++++++++++++
 ...tring-1.1.3.ebuild => pystring-1.1.3-r1.ebuild} | 20 ++----
 2 files changed, 91 insertions(+), 13 deletions(-)