Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722456 - emerge --info: show more toolchain variables
Summary: emerge --info: show more toolchain variables
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-11 11:48 UTC by Agostino Sarubbo
Modified: 2022-03-16 01:45 UTC (History)
3 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 Agostino Sarubbo gentoo-dev 2020-05-11 11:48:11 UTC
atm emerge --info shows something like CC/CXX.

Since it is possible to use alternative toolchain components, like clang/llvm, I guess would be great add those variables (like AR/LD and so on).

It will help in situations like this:
https://bugs.gentoo.org/722090#c4
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-05-11 12:45:32 UTC
https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/info_vars

Probably not controversial to add AR and LD here.
If unsure, you may ask on gentoo-dev mailing list.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-28 13:44:59 UTC
I suppose you'd have to make a list first.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2020-05-28 17:11:05 UTC
I suggest adding at least:
AR
AS
CPP
FC
LD
NM
RANLIB

And maybe also:
OBJCOPY
OBJDUMP
READELF
STRIP
Comment 4 Agostino Sarubbo gentoo-dev 2020-06-23 12:15:32 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #3)
> I suggest adding at least:

Since it does not hurt add all variables, I'd suggest to keep what toolchain-funcs.eclass offers. This is my full list:

ADDR2LINE
AR
AS
CC
CPP
CXXFILT
CXX
DWP
FC
GCOV
LD
NM
OBJCOPY
OBJDUMP
RANLIB
READELF
SIZE
STRINGS
STRIP

See also:
https://bugs.gentoo.org/728456
Comment 5 Arfrever Frehtes Taifersar Arahesis 2020-06-24 01:31:56 UTC
Other tools provided by sys-devel/binutils unconditionally:

>   Tool   | Variable
> ---------+----------
> elfedit  | ELFEDIT
> gprof    | GPROF

Some tools are provided by sys-devel/binutils only on some targets or with USE="multitarget":

>   Tool   | Variable | Targets
> ---------+----------+----------
> coffdump | COFFDUMP | *-*-hms*
> dlltool  | DLLTOOL  | arm-wince-pe* arm-*-wince arm*-*-cegcc* arm*-*-mingw32ce* arm-*-pe* x86_64-*-mingw* x86_64-*-cygwin* i[3-7]86-*-pe* i[3-7]86-*-cygwin* i[3-7]86-*-mingw32** i[3-7]86-*-netbsdpe* i[3-7]86-*-interix powerpc*-*-pe* powerpc*-*-cygwin* sh*-*-pe mips*-*-pe mcore-*-pe mcore-*-elf
> dllwrap  | DLLWRAP  | x86_64-*-mingw* x86_64-*-cygwin* i[3-7]86-*-pe* i[3-7]86-*-cygwin* i[3-7]86-*-mingw32** i[3-7]86-*-netbsdpe*
> srconv   | SRCONV   | *-*-hms*
> sysdump  | SYSDUMP  | *-*-hms*
> windmc   | WINDMC   | arm-wince-pe* arm-*-wince arm*-*-cegcc* arm*-*-mingw32ce* arm-*-pe* x86_64-*-mingw* x86_64-*-cygwin* i[3-7]86-*-pe* i[3-7]86-*-cygwin* i[3-7]86-*-mingw32** i[3-7]86-*-netbsdpe* powerpc*-*-pe* powerpc*-*-cygwin* sh*-*-pe mips*-*-pe mcore-*-pe 
> windres  | WINDRES  | arm-wince-pe* arm-*-wince arm*-*-cegcc* arm*-*-mingw32ce* arm-*-pe* x86_64-*-mingw* x86_64-*-cygwin* i[3-7]86-*-pe* i[3-7]86-*-cygwin* i[3-7]86-*-mingw32** i[3-7]86-*-netbsdpe* powerpc*-*-pe* powerpc*-*-cygwin* sh*-*-pe mips*-*-pe mcore-*-pe
Comment 6 Larry the Git Cow gentoo-dev 2021-12-14 05:09:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dcc3c0a1834ceb92f8db8e09b5d38afd51adac4

commit 6dcc3c0a1834ceb92f8db8e09b5d38afd51adac4
Author:     Alessandro Barbieri <lssndrbarbieri@gmail.com>
AuthorDate: 2021-05-13 18:53:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-14 05:09:40 +0000

    profiles: info_vars add more variables, sorting
    
    Bug: https://bugs.gentoo.org/722456
    Closes: https://bugs.gentoo.org/780477
    Closes: https://github.com/gentoo/gentoo/pull/20797
    Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/info_vars | 41 +++++++++++++++++++++++++++++++++++++----
 1 file changed, 37 insertions(+), 4 deletions(-)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-14 05:23:36 UTC
(In reply to Sam James from comment #7)
> I've also added to --info:
> - LLVM and Clang:
> https://github.com/gentoo/gentoo/commit/
> 009ba7c96b78c0b2b98dffcc3dac717d8d733e50
> - systemd:
> https://github.com/gentoo/gentoo/commit/
> 8bd471778421cbd6e6510f4561f57511055fd3cf
> - binutils-config:
> https://github.com/gentoo/gentoo/commit/
> 12cc28800b9b05379a3749ee7a4a8dd7ccebe267
> - meson:
> https://github.com/gentoo/gentoo/commit/
> fed72e13407ce8a75aecb931543b7c6148460f9c

... and lld: https://github.com/gentoo/gentoo/commit/ae3423244db949bc90a67f7bb7fe53e2652a78d2