From: Ian Lance Taylor <iant@google.com>
To: dolphinling <lists@dolphinling.net>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Force to not use system ld / compiling on AIX
Date: Thu, 18 Mar 2010 00:51:00 -0000 [thread overview]
Message-ID: <mcreijia1y2.fsf@dhcp-172-17-9-151.mtv.corp.google.com> (raw)
In-Reply-To: <4B9FAA4F.10101@dolphinling.net> (dolphinling's message of "Tue\, 16 Mar 2010 11\:57\:03 -0400")
dolphinling <lists@dolphinling.net> writes:
> On 03/16/2010 10:55 AM, Ian Lance Taylor wrote:
>> It is extremely strange that the -B option would not work. I have no
>> explanation for that. What happens when you link with -Wl,-debug?
>> That should show you the exact name which the collect2 linker wrapper
>> invokes. What name is that?
>
> It prints out the following, among a lot of other stuff
>
> collect2 version 3.3.2
> ld_file_name = /usr/bin/ld
> c_file_name = /usr/bin/g++
> nm_file_name = /users/a/g/aguertin/local/bin/nm
> strip_file_name = /users/a/g/aguertin/local/bin/strip
> c_file = /tmp//ccugHvMb.c
> o_file = /tmp//ccuW7VOd.o
> COLLECT_GCC_OPTIONS = '-B' '/users/a/g/aguertin/local/bin' '-shared-libgcc'
> COLLECT_GCC = g++
>
>
> Above that, it prints out a bunch of search paths, and then "Looking
> for 'whatever', and ld is not one of the things it searches for.
>
> Full log attached. (This is from g++ -B $HOME/local/bin -Wl,-debug
> *.cpp, with one file defining a simple function that prints a line out
> and the other file with main, calling that function).
Thanks for sending the log. gcc 3.3.2 is pretty old and I don't have
a copy online. Looking at gcc 4.0, it looks like this would happen if
gcc were configured with --with-ld=/usr/bin/ld, or if gcc were
configured with the environment variable DEFAULT_LINKER set to
/usr/bin/ld. That would override the -B option.
Otherwise I have no explanation.
Ian
prev parent reply other threads:[~2010-03-18 0:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-11 23:24 Andrew Guertin
2010-03-12 9:30 ` Cedric Roux
2010-03-12 15:56 ` dolphinling
2010-03-13 2:29 ` dolphinling
2010-03-16 14:59 ` Ian Lance Taylor
2010-03-16 16:14 ` dolphinling
2010-03-18 0:51 ` Ian Lance Taylor [this message]
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=mcreijia1y2.fsf@dhcp-172-17-9-151.mtv.corp.google.com \
--to=iant@google.com \
--cc=gcc-help@gcc.gnu.org \
--cc=lists@dolphinling.net \
/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: link
Be 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).