commit:     6bfe2ed62ca9719d17e00338f962b2c5e41ca716
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Sun Feb 16 18:03:35 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 21 11:06:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bfe2ed6

dev-lang/rust: must depend on dev-lang/gcc[cxx]

Found while compiling with a fresh crossdev installation.
Without that, the build fails with the following error:

```[profiler_builtins 0.0.0] cargo::rerun-if-env-changed=LLVM_PROFILER_RT_LIB
[profiler_builtins 0.0.0] 
cargo::rerun-if-env-changed=RUST_COMPILER_RT_FOR_PROFILER
[profiler_builtins 0.0.0] 
cargo::rerun-if-changed=/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82.0-r102/work/rustc-1.82.0-src/src/llvm-project/compiler-rt/lib/profile
[profiler_builtins 0.0.0] 
cargo::rerun-if-changed=/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82.0-r102/work/rustc-1.82.0-src/src/llvm-project/compiler-rt/include
[profiler_builtins 0.0.0] TARGET = Some("i686-unknown-linux-gnu")
[profiler_builtins 0.0.0] OPT_LEVEL = Some("3")
[profiler_builtins 0.0.0] HOST = Some("x86_64-unknown-linux-gnu")
[profiler_builtins 0.0.0] cargo:rerun-if-env-changed=CC_i686-unknown-linux-gnu
[profiler_builtins 0.0.0] CC_i686-unknown-linux-gnu = None
[profiler_builtins 0.0.0] cargo:rerun-if-env-changed=CC_i686_unknown_linux_gnu
[profiler_builtins 0.0.0] CC_i686_unknown_linux_gnu = 
Some("i686-pc-linux-musl-gcc")
[profiler_builtins 0.0.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[profiler_builtins 0.0.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[profiler_builtins 0.0.0] CRATE_CC_NO_DEFAULTS = None
[profiler_builtins 0.0.0] DEBUG = Some("false")
[profiler_builtins 0.0.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[profiler_builtins 0.0.0] 
cargo:rerun-if-env-changed=CFLAGS_i686-unknown-linux-gnu
[profiler_builtins 0.0.0] CFLAGS_i686-unknown-linux-gnu = None
[profiler_builtins 0.0.0] 
cargo:rerun-if-env-changed=CFLAGS_i686_unknown_linux_gnu
[profiler_builtins 0.0.0] CFLAGS_i686_unknown_linux_gnu = 
Some("-ffunction-sections -fdata-sections -fPIC -m32 -march=i686")
[profiler_builtins 0.0.0] cargo:warning=i686-pc-linux-musl-gcc: error: 
/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82.0-r102/work/rustc-1.82.0-src/src/llvm-project/compiler-rt/lib/profile/InstrProfiling
Runtime.cpp: C++ compiler not installed on this system
[profiler_builtins 0.0.0]
[profiler_builtins 0.0.0]
[profiler_builtins 0.0.0] error occurred: Command "i686-pc-linux-musl-gcc" 
"-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-march=i686" "-I" 
"/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82
.0-r102/work/rustc-1.82.0-src/src/llvm-project/compiler-rt/include" 
"-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-march=i686" 
"-fno-builtin" "-fomit-frame-pointer" "-fvisibility=hidden" "-DVISIBILITY
_HIDDEN" "-DCOMPILER_RT_HAS_UNAME=1" "-DCOMPILER_RT_HAS_FCNTL_LCK=1" 
"-DCOMPILER_RT_HAS_ATOMICS=1" "-o" 
"/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82.0-r102/work/rustc-1.82.0-src/build/x86_64-unknown-
linux-gnu/stage1-std/i686-unknown-linux-gnu/release/build/profiler_builtins-acc5b54be66bd911/out/79fe831ac9526f6c-InstrProfilingRuntime.o"
 "-c" "/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82.0-r102/wor
k/rustc-1.82.0-src/src/llvm-project/compiler-rt/lib/profile/
InstrProfilingRuntime.cpp" with args i686-pc-linux-musl-gcc did not execute 
successfully (status code exit status: 1).
[profiler_builtins 0.0.0]
[profiler_builtins 0.0.0]
The following warnings were emitted during compilation:

warning: profiler_builtins <AT> 0.0.0: i686-pc-linux-musl-gcc: error: 
/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82.0-r102/work/rustc-1.82.0-src/src/llvm-project/compiler-rt/lib/profile/InstrProfilingRuntime.cpp:
 C++ compiler not installed on this system

error: failed to run custom build command for `profiler_builtins v0.0.0 
(/usr/i686-pc-linux-musl/tmp/portage/dev-lang/rust-1.82.0-r102/work/rustc-1.82.0-src/library/profiler_builtins)`
note: To improve backtraces for build dependencies, set the 
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable 
debug information generation.```

Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx>
Closes: https://github.com/gentoo/gentoo/pull/40600
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-lang/rust/rust-1.71.1-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.74.1-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.75.0-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.76.0-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.77.1-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.78.0-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.79.0-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.80.1-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.81.0-r101.ebuild | 2 +-
 dev-lang/rust/rust-1.82.0-r102.ebuild | 2 +-
 dev-lang/rust/rust-1.83.0-r2.ebuild   | 2 +-
 dev-lang/rust/rust-1.84.0-r1.ebuild   | 2 +-
 dev-lang/rust/rust-1.84.1-r1.ebuild   | 2 +-
 13 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/dev-lang/rust/rust-1.71.1-r101.ebuild 
b/dev-lang/rust/rust-1.71.1-r101.ebuild
index ae01f2f9a301..fa6ca5be0bc8 100644
--- a/dev-lang/rust/rust-1.71.1-r101.ebuild
+++ b/dev-lang/rust/rust-1.71.1-r101.ebuild
@@ -63,7 +63,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.74.1-r101.ebuild 
b/dev-lang/rust/rust-1.74.1-r101.ebuild
index 68108ee8a593..060ae389079f 100644
--- a/dev-lang/rust/rust-1.74.1-r101.ebuild
+++ b/dev-lang/rust/rust-1.74.1-r101.ebuild
@@ -69,7 +69,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.75.0-r101.ebuild 
b/dev-lang/rust/rust-1.75.0-r101.ebuild
index 582cd097c120..8dba35567835 100644
--- a/dev-lang/rust/rust-1.75.0-r101.ebuild
+++ b/dev-lang/rust/rust-1.75.0-r101.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.76.0-r101.ebuild 
b/dev-lang/rust/rust-1.76.0-r101.ebuild
index 8d72491db7fb..c62acdfc7419 100644
--- a/dev-lang/rust/rust-1.76.0-r101.ebuild
+++ b/dev-lang/rust/rust-1.76.0-r101.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.77.1-r101.ebuild 
b/dev-lang/rust/rust-1.77.1-r101.ebuild
index 8e71a450c7e6..149b3e8105f4 100644
--- a/dev-lang/rust/rust-1.77.1-r101.ebuild
+++ b/dev-lang/rust/rust-1.77.1-r101.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.78.0-r101.ebuild 
b/dev-lang/rust/rust-1.78.0-r101.ebuild
index 7bcddb3c4dba..ad7ef8defa1d 100644
--- a/dev-lang/rust/rust-1.78.0-r101.ebuild
+++ b/dev-lang/rust/rust-1.78.0-r101.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.79.0-r101.ebuild 
b/dev-lang/rust/rust-1.79.0-r101.ebuild
index 7bcddb3c4dba..ad7ef8defa1d 100644
--- a/dev-lang/rust/rust-1.79.0-r101.ebuild
+++ b/dev-lang/rust/rust-1.79.0-r101.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.80.1-r101.ebuild 
b/dev-lang/rust/rust-1.80.1-r101.ebuild
index 28e670946d40..fb4c96456714 100644
--- a/dev-lang/rust/rust-1.80.1-r101.ebuild
+++ b/dev-lang/rust/rust-1.80.1-r101.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.81.0-r101.ebuild 
b/dev-lang/rust/rust-1.81.0-r101.ebuild
index 7f53129202cc..8d664876a184 100644
--- a/dev-lang/rust/rust-1.81.0-r101.ebuild
+++ b/dev-lang/rust/rust-1.81.0-r101.ebuild
@@ -65,7 +65,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.82.0-r102.ebuild 
b/dev-lang/rust/rust-1.82.0-r102.ebuild
index bc55c3ded7c1..a5f36a0d736d 100644
--- a/dev-lang/rust/rust-1.82.0-r102.ebuild
+++ b/dev-lang/rust/rust-1.82.0-r102.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.83.0-r2.ebuild 
b/dev-lang/rust/rust-1.83.0-r2.ebuild
index f92f170184fb..5a0afd35a715 100644
--- a/dev-lang/rust/rust-1.83.0-r2.ebuild
+++ b/dev-lang/rust/rust-1.83.0-r2.ebuild
@@ -64,7 +64,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.84.0-r1.ebuild 
b/dev-lang/rust/rust-1.84.0-r1.ebuild
index 1bac5bdc9e11..4414a294a3d4 100644
--- a/dev-lang/rust/rust-1.84.0-r1.ebuild
+++ b/dev-lang/rust/rust-1.84.0-r1.ebuild
@@ -65,7 +65,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

diff --git a/dev-lang/rust/rust-1.84.1-r1.ebuild 
b/dev-lang/rust/rust-1.84.1-r1.ebuild
index 94980bdb59c0..09361a70101a 100644
--- a/dev-lang/rust/rust-1.84.1-r1.ebuild
+++ b/dev-lang/rust/rust-1.84.1-r1.ebuild
@@ -65,7 +65,7 @@ LLVM_DEPEND+=( "      $(llvm_gen_dep 
'llvm-core/llvm:${LLVM_SLOT}')" )
 BDEPEND="${PYTHON_DEPS}
        app-eselect/eselect-rust
        || (
-               >=sys-devel/gcc-4.7
+               >=sys-devel/gcc-4.7[cxx]
                >=llvm-core/clang-3.5
        )
        !system-llvm? (

Reply via email to