The configure script understands the STRIP environment variable, which is not being provided. As a result, it calls the native strip program which dumps a couple dozen lines of "unrecognized input" messages in the build output when cross-compiling. Reproducible: Always Steps to Reproduce: 1. cross-emerge -v libvpx Actual Results: strip --strip-debug \ -o libvp9rc.a libvp9rc_g.a strip: Unable to recognise the format of the input file `libvp9rc_g.a(vp9_iface_common.c.o)' strip: Unable to recognise the format of the input file `libvp9rc_g.a(vp9_alloccommon.c.o)' strip: Unable to recognise the format of the input file `libvp9rc_g.a(vp9_blockd.c.o)' strip: Unable to recognise the format of the input file `libvp9rc_g.a(vp9_entropy.c.o)' strip: Unable to recognise the format of the input file `libvp9rc_g.a(vp9_entropymode.c.o)' ... Expected Results: It should use the correct strip program (or maybe obey FEATURES=nostrip). --- media-libs/libvpx/libvpx-1.9.0.ebuild +++ media-libs/libvpx/libvpx-1.9.0.ebuild @@ -87,7 +87,7 @@ [[ ${CHOST} == powerpc-* ]] && myconfargs+=( --force-target=generic-gnu ) # Build with correct toolchain. - tc-export CC CXX AR NM + tc-export CC CXX AR NM STRIP # Link with gcc by default, the build system should override this if needed. export LD="${CC}"
Build systems should NOT call any strip tool (either ${CHOST}-strip or llvm-strip). Portage will call appropriate strip tool (respecting ${STRIP}) unless user disables it.
Created attachment 669509 [details, diff] Patch
Works for me, thanks.
Created attachment 669533 [details, diff] Alternative path Can you check if this patch works for you as well?
Yes, that seems to have the same effect.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7fb59cb2cd44b9e0b0eb50cc2f7491202e0a204 commit d7fb59cb2cd44b9e0b0eb50cc2f7491202e0a204 Author: Stephan Hartmann <sultan@gentoo.org> AuthorDate: 2020-11-01 16:01:20 +0000 Commit: Stephan Hartmann <sultan@gentoo.org> CommitDate: 2020-11-01 16:02:19 +0000 media-libs/libvpx: disable stripping for static libraries Closes: https://bugs.gentoo.org/752057 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Stephan Hartmann <sultan@gentoo.org> media-libs/libvpx/libvpx-1.9.0.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)