public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs
@ 2013-03-27  5:33 vapier at gentoo dot org
  2013-09-04  8:27 ` [Bug bootstrap/56750] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: vapier at gentoo dot org @ 2013-03-27  5:33 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

             Bug #: 56750
           Summary: static -lstdc++ logic bleeds into all subdirs
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vapier@gentoo.org
                CC: ebotcazou@gcc.gnu.org


the recent PR54820 change that adds -static-libstdc++ -static-libgcc to the
bootstrap flags ends up putting the LDFLAGS into all subdirs even unrelated to
the stage1 bootstrapping

for example, if you get the latest sourceware.org tree and try to build gdb,
you'll find those flags now showing up in LDFLAGS

$ make all-gdb
...
gcc -g -O2   -static-libstdc++    \
        -o gdb gdb.o ...


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
@ 2013-09-04  8:27 ` rguenth at gcc dot gnu.org
  2013-11-22 10:42 ` rguenth at gcc dot gnu.org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-04  8:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0
            Summary|static -lstdc++ logic       |[4.8/4.9 Regression] static
                   |bleeds into all subdirs     |-lstdc++ logic bleeds into
                   |                            |all subdirs


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
  2013-09-04  8:27 ` [Bug bootstrap/56750] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
@ 2013-11-22 10:42 ` rguenth at gcc dot gnu.org
  2014-02-18 15:17 ` jakub at gcc dot gnu.org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-22 10:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
            Version|unknown                     |4.8.0
   Target Milestone|4.9.0                       |4.8.3


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
  2013-09-04  8:27 ` [Bug bootstrap/56750] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
  2013-11-22 10:42 ` rguenth at gcc dot gnu.org
@ 2014-02-18 15:17 ` jakub at gcc dot gnu.org
  2014-02-18 15:53 ` ebotcazou at gcc dot gnu.org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-18 15:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Eric, can you please have a look at this?


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (2 preceding siblings ...)
  2014-02-18 15:17 ` jakub at gcc dot gnu.org
@ 2014-02-18 15:53 ` ebotcazou at gcc dot gnu.org
  2014-02-18 16:01 ` jakub at gcc dot gnu.org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-02-18 15:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
IMO forcing -static-libstdc++ is a progress, especially on non-Linux platforms,
so I don't really see what needs fixing here.  Of course people might disagree
and tailor this to their needs (and write a patch).


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (3 preceding siblings ...)
  2014-02-18 15:53 ` ebotcazou at gcc dot gnu.org
@ 2014-02-18 16:01 ` jakub at gcc dot gnu.org
  2014-02-18 16:41 ` ebotcazou at gcc dot gnu.org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-18 16:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu.org,
                   |                            |bonzini at gnu dot org,
                   |                            |ian at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, if you can link dynamically, you should, if say libstdc++ contains some
security bug and gdb isn't built in the combined tree with gcc, then I'd say it
is highly undesirable to link it statically.
It is not a big deal when some programs built by gcc are linked statically
against libstdc++, if there is a security bug in there, one will have to
rebuild gcc anyway.
So, perhaps don't add -static-libstdc++ -static-libgcc if not building gcc
(gcc/ subdirectory missing, or whatever other check is appropriate)?


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (4 preceding siblings ...)
  2014-02-18 16:01 ` jakub at gcc dot gnu.org
@ 2014-02-18 16:41 ` ebotcazou at gcc dot gnu.org
  2014-02-18 17:25 ` vapier at gentoo dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2014-02-18 16:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Well, if you can link dynamically, you should, if say libstdc++ contains
> some security bug and gdb isn't built in the combined tree with gcc, then
> I'd say it is highly undesirable to link it statically.

Your point of view is clearly too Linux-centric here. :-)  I can assure you
that the last thing people want on Solaris on HP-UX is to have to install
shared libraries to run GDB.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (5 preceding siblings ...)
  2014-02-18 16:41 ` ebotcazou at gcc dot gnu.org
@ 2014-02-18 17:25 ` vapier at gentoo dot org
  2014-05-22  9:03 ` [Bug bootstrap/56750] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: vapier at gentoo dot org @ 2014-02-18 17:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

--- Comment #5 from Mike Frysinger <vapier at gentoo dot org> ---
(In reply to Eric Botcazou from comment #4)

that is an end user's decision.  the build scripts really have no business
forcing this on all random tools including gdb.  the bootstrap logic makes
sense for bootstrapping, but it should not be used anywhere else.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9/4.10 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (6 preceding siblings ...)
  2014-02-18 17:25 ` vapier at gentoo dot org
@ 2014-05-22  9:03 ` rguenth at gcc dot gnu.org
  2014-09-09 22:23 ` [Bug bootstrap/56750] [4.8/4.9/5 " vapier at gentoo dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-22  9:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.3                       |4.8.4

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 4.8.3 is being released, adjusting target milestone.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9/5 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (7 preceding siblings ...)
  2014-05-22  9:03 ` [Bug bootstrap/56750] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
@ 2014-09-09 22:23 ` vapier at gentoo dot org
  2014-12-19 13:29 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: vapier at gentoo dot org @ 2014-09-09 22:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

--- Comment #7 from Mike Frysinger <vapier at gentoo dot org> ---
ping ... this is causing releases of binutils' gold to be statically linked,
and causing headaches for the gold testsuites.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9/5 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (8 preceding siblings ...)
  2014-09-09 22:23 ` [Bug bootstrap/56750] [4.8/4.9/5 " vapier at gentoo dot org
@ 2014-12-19 13:29 ` jakub at gcc dot gnu.org
  2015-03-24 18:40 ` steven at gcc dot gnu.org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.4                       |4.8.5

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9/5 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (9 preceding siblings ...)
  2014-12-19 13:29 ` jakub at gcc dot gnu.org
@ 2015-03-24 18:40 ` steven at gcc dot gnu.org
  2015-06-23  8:23 ` [Bug bootstrap/56750] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: steven at gcc dot gnu.org @ 2015-03-24 18:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-24
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.8/4.9/5/6 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (10 preceding siblings ...)
  2015-03-24 18:40 ` steven at gcc dot gnu.org
@ 2015-06-23  8:23 ` rguenth at gcc dot gnu.org
  2015-06-26 20:01 ` [Bug bootstrap/56750] [4.9/5/6 " jakub at gcc dot gnu.org
  2015-06-26 20:30 ` jakub at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.5                       |4.9.3

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.9/5/6 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (11 preceding siblings ...)
  2015-06-23  8:23 ` [Bug bootstrap/56750] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
@ 2015-06-26 20:01 ` jakub at gcc dot gnu.org
  2015-06-26 20:30 ` jakub at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug bootstrap/56750] [4.9/5/6 Regression] static -lstdc++ logic bleeds into all subdirs
  2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
                   ` (12 preceding siblings ...)
  2015-06-26 20:01 ` [Bug bootstrap/56750] [4.9/5/6 " jakub at gcc dot gnu.org
@ 2015-06-26 20:30 ` jakub at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-06-26 20:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-27  5:33 [Bug bootstrap/56750] New: static -lstdc++ logic bleeds into all subdirs vapier at gentoo dot org
2013-09-04  8:27 ` [Bug bootstrap/56750] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-11-22 10:42 ` rguenth at gcc dot gnu.org
2014-02-18 15:17 ` jakub at gcc dot gnu.org
2014-02-18 15:53 ` ebotcazou at gcc dot gnu.org
2014-02-18 16:01 ` jakub at gcc dot gnu.org
2014-02-18 16:41 ` ebotcazou at gcc dot gnu.org
2014-02-18 17:25 ` vapier at gentoo dot org
2014-05-22  9:03 ` [Bug bootstrap/56750] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-09-09 22:23 ` [Bug bootstrap/56750] [4.8/4.9/5 " vapier at gentoo dot org
2014-12-19 13:29 ` jakub at gcc dot gnu.org
2015-03-24 18:40 ` steven at gcc dot gnu.org
2015-06-23  8:23 ` [Bug bootstrap/56750] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:01 ` [Bug bootstrap/56750] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:30 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).