Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792987 - sys-libs/libstdc++-v3-3.3.6-r3 calls nm directly
Summary: sys-libs/libstdc++-v3-3.3.6-r3 calls nm directly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2021-05-30 09:33 UTC by Agostino Sarubbo
Modified: 2021-07-24 09:22 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,109.62 KB, text/plain)
2021-05-30 09:33 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-05-30 09:33:48 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/libstdc++-v3-3.3.6-r3 calls nm directly.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
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 NM implementation (like llvm-nm). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-30 09:33:51 UTC
CC'ing also the author of the commit (072701a499b6195a51955f8357248d566f1e25b2)
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-30 09:33:52 UTC
Created attachment 712491 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2021-05-30 09:33:54 UTC
Possible context of error(s):

checking assembler subsection support... /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r3/work/gcc-3.3.6/gcc/configure: line 7213: nm: command not found
checking linker read-only and read-write section mixing... /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r3/work/gcc-3.3.6/gcc/configure: line 8110: objdump: command not found
make[1]: ar: No such file or directory
/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r3/work/gcc-3.3.6/gcc/configure: line 7214: nm: command not found
Comment 4 Larry the Git Cow gentoo-dev 2021-07-24 09:22:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41fa2e689f53efe62986696bf4324aca16bc874a

commit 41fa2e689f53efe62986696bf4324aca16bc874a
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-07-24 09:21:45 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-07-24 09:21:59 +0000

    sys-libs/libstdc++-v3: use user's AR and NM
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/724726
    Closes: https://bugs.gentoo.org/792987
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r3.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)