Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840392 - sys-devel/gcc-11.3.0 QA Notice: Files built without respecting LDFLAGS have been detected
Summary: sys-devel/gcc-11.3.0 QA Notice: Files built without respecting LDFLAGS have b...
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: PullRequest
Depends on:
Blocks:
 
Reported: 2022-04-23 19:57 UTC by Kim B. Sindalsen
Modified: 2023-09-30 09:38 UTC (History)
1 user (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 Kim B. Sindalsen 2022-04-23 19:57:05 UTC
QA: other
 QA Notice: Files built without respecting LDFLAGS have been detected
Please include the following list of files in your report:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libasan.so.6.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libatomic.so.1.2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libgomp.so.1.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libitm.so.1.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/liblsan.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libquadmath.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libstdc++.so.6.0.29
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libtsan.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libubsan.so.1.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libvtv.so.0.0.0
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/cc1
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/cc1plus
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/collect2
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/g++-mapper-server
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/liblto_plugin.so
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/lto-wrapper
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/lto1
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/plugin/gengtype
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/gcc-ar
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/gcc-nm
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/gcc-ranlib
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/gcov-dump
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/gcov-tool
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/lto-dump
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-c++
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-cpp
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-g++
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-gcc
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-gcc-ar
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-gcc-nm
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-gcc-ranlib
/usr/x86_64-pc-linux-gnu/gcc-bin/11.3.0/x86_64-pc-linux-gnu-gcov

QA Notice: Installing libtool files (.la) without corresponding static libraries!
  /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libquadmath.la
  /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/libatomic.la
  /usr/libexec/gcc/x86_64-pc-linux-gnu/11.3.0/liblto_plugin.la



Reproducible: Always

Steps to Reproduce:
1. emerge
2.
3.
Comment 1 Larry the Git Cow gentoo-dev 2023-09-30 09:38:53 UTC
The bug has been closed via the following commit(s):

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

commit bb2d045c02a6ca647ef3280f4987cbc0d14e5a7e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-28 23:27:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-30 09:38:40 +0000

    toolchain.eclass: rework bootstrapping logic
    
    * Build stage1 compiler with user's CFLAGS. This consistently ends up
      saving at least 15 minutes for me on a fast amd64 machine and should save
      more on slower machines and architectures.
    
      There's only any risk here if the host compiler is ancient/very buggy and
      even then, you get a failed bootstrap later on. The GCC developers, per the
      linked bug, end up using STAGE1_CFLAGS="-O2" anyway to speed up the process
      so it's not like this is untested at all.
    
      mattst88 actually brought this up.. 10 years ago (bug #477548). Let's try
      make that right now.
    
    * Respect LDFLAGS for target libraries for native builds. Not touching this
      for cross builds, at least for now, as it's a bit more delicate.
    
      (Unfortunately, we have to put a hack in here for now until we can fix
      multilib.eclass - see bug #914881).
    
    Bug: https://gcc.gnu.org/PR111619
    Bug: https://bugs.gentoo.org/914881
    Closes: https://bugs.gentoo.org/477548
    Closes: https://bugs.gentoo.org/831423
    Closes: https://bugs.gentoo.org/840392
    Apologies-to: Matt Turner <mattst88@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 52 +++++++++++++++++++++++++++++++++----------------
 1 file changed, 35 insertions(+), 17 deletions(-)