public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49967] New: The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others)
@ 2011-08-03 16:48 jvb at cyberscience dot com
2011-08-04 17:49 ` [Bug target/49967] " sje at cup dot hp.com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jvb at cyberscience dot com @ 2011-08-03 16:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49967
Summary: The -static-libstdc++ does not work on HP-UX (IA64
B.11.23, probably others)
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jvb@cyberscience.com
Host: HP-UX IA64
Target: HP-UX IA64
The -static-libstdc++ option is silently ignored on HP-IX, IA64 platform.
The reason for this seems to be that g++spec.c relies on HAVE_LD_STATIC_DYNAMIC
from auto-host.h, and if this is not set silently fails to implement
-static-libstdc++.
The HP linker does have options to implement HAVE_LD_STATIC_DYNAMIC, but
configure has not detected them. Presumably this is because they are not the
usual -Bstatic and -Bdynamic, the HP options are -aarchive and -ashared_archive
(not -ashared which disables archive libs completely). Changing auto-host.h to
use:
#define HAVE_LD_STATIC_DYNAMIC 1
#define LD_DYNAMIC_OPTION "-ashared_archive"
#define LD_STATIC_OPTION "-aarchive"
resolves the issue, but of course is not the right fix since this file is
generated. So, this is really a configuration time issue.
As an additional fix though, I would really expect g++ to error or warn if
-static-libstdc++ can't be implemented, instead of silently ignoring. Also it
could provide the archive name to the linker in place of -lstdc++ for systems
where HAVE_LD_STATIC_DYNAMIC really doesn't exist - but possibly if this were
fixed for HP there might not be any systems with this restriction.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/49967] The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others)
2011-08-03 16:48 [Bug c++/49967] New: The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others) jvb at cyberscience dot com
@ 2011-08-04 17:49 ` sje at cup dot hp.com
2011-10-03 17:58 ` sje at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: sje at cup dot hp.com @ 2011-08-04 17:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49967
Steve Ellcey <sje at cup dot hp.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sje at cup dot hp.com
--- Comment #1 from Steve Ellcey <sje at cup dot hp.com> 2011-08-04 17:49:12 UTC ---
A patch for this has been submitted to gcc-patches@gcc.gnu.org.
http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02704.html
I am waiting for approval of the gcc.c part that is needed to handle the fact
that there is no static system unwind library on HP-UX.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/49967] The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others)
2011-08-03 16:48 [Bug c++/49967] New: The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others) jvb at cyberscience dot com
2011-08-04 17:49 ` [Bug target/49967] " sje at cup dot hp.com
@ 2011-10-03 17:58 ` sje at gcc dot gnu.org
2011-10-12 18:07 ` sje at gcc dot gnu.org
2011-10-12 18:12 ` sje at cup dot hp.com
3 siblings, 0 replies; 5+ messages in thread
From: sje at gcc dot gnu.org @ 2011-10-03 17:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49967
--- Comment #2 from Steve Ellcey <sje at gcc dot gnu.org> 2011-10-03 17:57:44 UTC ---
Author: sje
Date: Mon Oct 3 17:57:40 2011
New Revision: 179472
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179472
Log:
2011-10-03 Steve Ellcey <sje@cup.hp.com>
PR target/49967
* configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
(gcc_cv_ld_static_option): Ditto.
(gcc_cv_ld_dynamic_option): Ditto.
* configure: Regenerate.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/configure
trunk/gcc/configure.ac
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/49967] The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others)
2011-08-03 16:48 [Bug c++/49967] New: The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others) jvb at cyberscience dot com
2011-08-04 17:49 ` [Bug target/49967] " sje at cup dot hp.com
2011-10-03 17:58 ` sje at gcc dot gnu.org
@ 2011-10-12 18:07 ` sje at gcc dot gnu.org
2011-10-12 18:12 ` sje at cup dot hp.com
3 siblings, 0 replies; 5+ messages in thread
From: sje at gcc dot gnu.org @ 2011-10-12 18:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49967
--- Comment #3 from Steve Ellcey <sje at gcc dot gnu.org> 2011-10-12 18:07:29 UTC ---
Author: sje
Date: Wed Oct 12 18:07:25 2011
New Revision: 179862
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179862
Log:
2011-10-12 Steve Ellcey <sje@cup.hp.com>
PR target/49967
Backport from Mainline 179472.
* configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
(gcc_cv_ld_static_option): Ditto.
(gcc_cv_ld_dynamic_option): Ditto.
* configure: Regenerate.
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/configure
branches/gcc-4_6-branch/gcc/configure.ac
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/49967] The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others)
2011-08-03 16:48 [Bug c++/49967] New: The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others) jvb at cyberscience dot com
` (2 preceding siblings ...)
2011-10-12 18:07 ` sje at gcc dot gnu.org
@ 2011-10-12 18:12 ` sje at cup dot hp.com
3 siblings, 0 replies; 5+ messages in thread
From: sje at cup dot hp.com @ 2011-10-12 18:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49967
Steve Ellcey <sje at cup dot hp.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.2
--- Comment #4 from Steve Ellcey <sje at cup dot hp.com> 2011-10-12 18:11:44 UTC ---
Fixed for 4.6.2 and 4.7.0.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-12 18:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-03 16:48 [Bug c++/49967] New: The -static-libstdc++ does not work on HP-UX (IA64 B.11.23, probably others) jvb at cyberscience dot com
2011-08-04 17:49 ` [Bug target/49967] " sje at cup dot hp.com
2011-10-03 17:58 ` sje at gcc dot gnu.org
2011-10-12 18:07 ` sje at gcc dot gnu.org
2011-10-12 18:12 ` sje at cup dot hp.com
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).