public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: keith_richling@agilent.com To: gcc-gnats@gcc.gnu.org Subject: c++/7512: ld getting passed incorrect options with hppa64-hp-hpux11.00 Date: Tue, 06 Aug 2002 15:46:00 -0000 [thread overview] Message-ID: <20020806223752.9538.qmail@sources.redhat.com> (raw) >Number: 7512 >Category: c++ >Synopsis: ld getting passed incorrect options with hppa64-hp-hpux11.00 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Aug 06 15:46:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Keith Richling >Release: 3.1.1 >Organization: >Environment: >Description: When g++ is asked to build a shared library through the -shared option on hppa64-hp-hpux11.00 I get the following error: ld: Unrecognized argument: -shared Fatal error. collect2: ld returned 1 exit status >How-To-Repeat: // Begin foo.C #include <iostream> int main() { std::cout << "Hello world." << std::endl; } // End foo.C I built g++ using the configure options of --host=hppa64-hp-hpux11.00 --disable-shared --disable-threads --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gnu-as --with-as=/PATH_TO_BINUTILS/as --enable-languages=c,c++ I get the error with the following compile lines: g++ -c foo.C g++ -shared foo.o -o foo.sl >Fix: Applied the following change to gcc/config/pa/pa64-hpux.h 26c26 < "-E %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-shared}" --- > "-E %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}" >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-08-06 22:46 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-08-06 15:46 keith_richling [this message] 2002-11-21 14:50 danglin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020806223752.9538.qmail@sources.redhat.com \ --to=keith_richling@agilent.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).