Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817020 - sys-devel/gcc-11.2.0[d] does not create link in /usr/bin for gdc
Summary: sys-devel/gcc-11.2.0[d] does not create link in /usr/bin for gdc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-09 04:21 UTC by Paul Preney
Modified: 2024-09-30 00:26 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Preney 2021-10-09 04:21:24 UTC
The package sys-devel/gcc when USE=d does not place suitable link(s) in /usr/bin. For example with sys-devel/gcc:11 installed this is the output of "equery f sys-devel/gcc:11 | grep gdc":

        /usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/man/man1/gdc.1
        /usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0/gdc
        /usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0/x86_64-pc-linux-gnu-gdc

so one cannot simply run "gdc" or "gdc-11.2.0" to run the GCC D compiler. (Such also applies to the v10 and v9 versions of GCC as well.) Since the GCC ebuild is largely tied to the eclass/toolchain, I imagine this needs to be addressed within such.

Can this be rectified?
Comment 1 Mike Gilbert gentoo-dev 2022-07-27 15:39:31 UTC
gcc-config is responsible for creating the symlinks in /usr/bin. It's likely that gcc-config is not called automatically when you change USE flags on sys-devel/gcc.

Please try calling gcc-config to re-select your current GCC profile. That should generate the missing symlinks in /usr/bin.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-30 00:26:34 UTC
I think this was legitimate, actually, although tbh I'm still not clear how the logic in toolchain.eclass for this interacts with gcc-config.

I had to do it before for Rust in

commit e4ac21a504361122fa288a0f9f2126384934198e
Author: Sam James <sam@gentoo.org>
Date:   Tue Dec 13 20:07:22 2022 +0000

    toolchain.eclass: add USE=rust for GCC 13.0.9999

    Signed-off-by: Sam James <sam@gentoo.org>

I'm pretty sure.

Anyway, I fixed this for gdc the other day:

commit b9c70336a7a58e03dc59f8f9f71397c090e657a7
Author: Sam James <sam@gentoo.org>
Date:   Sun Sep 29 02:06:19 2024 +0100

    toolchain.eclass: install gdc symlink too

    Signed-off-by: Sam James <sam@gentoo.org>