public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* behavior of GCC_EXEC_PREFIX seems to have changed between 3.3.1 and 3.4.0
@ 2004-06-04 20:28 Marty Leisner
  2004-06-08 19:23 ` Jim Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Marty Leisner @ 2004-06-04 20:28 UTC (permalink / raw)
  To: gcc-bugs

I'm using sparc solaris8.
I would expect 3.3.1 and 3.4.0 to have the same behavior here...
I didn't see this problem discussed...

%printenv GCC_EXEC_PREFIX
%gcc-3.3.1 -v -print-prog-name=ld
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/specs
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/../../../../sparc-sun-solaris2.8/bin/ld
%gcc-3.4.0 -v -print-prog-name=ld
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/specs
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/../../../../sparc-sun-solaris2.8/bin/ld
%export GCC_EXEC_PREFIX=/usr/local/bin/
%gcc-3.3.1 -v -print-prog-name=ld
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/specs
/usr/local/bin/ld
%gcc-3.4.0 -v -print-prog-name=ld
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/specs
/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/../../../../sparc-sun-solaris2.8/bin/ld


It would also be useful to specify programs for various passes (I'm having problems
with ld 2.14 and 2.15, and it would be nice to be able to do something like:
	gcc --ld-prog=/usr/local/bin/ld-2.14 ...
and
	gcc --ld-prog=/usr/local/bin/ld-2.15

instead of playing symlink/cp games

I'm also not clear why 3.3.1 installedd in <prefix>/lib/gcc-lib
and 3.4.0 installed in
	<prefix>/lib/gcc



marty		mleisner@eng.mc.xerox.com   
Don't  confuse education with schooling.
	Milton Friedman to Yogi Berra


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

* Re: behavior of GCC_EXEC_PREFIX seems to have changed between 3.3.1 and 3.4.0
  2004-06-04 20:28 behavior of GCC_EXEC_PREFIX seems to have changed between 3.3.1 and 3.4.0 Marty Leisner
@ 2004-06-08 19:23 ` Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2004-06-08 19:23 UTC (permalink / raw)
  To: Marty Leisner; +Cc: gcc-bugs

Marty Leisner wrote:
> %export GCC_EXEC_PREFIX=/usr/local/bin/
> %gcc-3.3.1 -v -print-prog-name=ld
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.1/specs
> /usr/local/bin/ld
> %gcc-3.4.0 -v -print-prog-name=ld
> Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/specs
> /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/../../../../sparc-sun-solaris2.8/bin/ld

Sending mail to gcc-bugs is not very useful anymore, as it is primarily 
used for output from the bugzilla bug database.  If you want to file a 
bug, put it in bugzilla.  If you want to discuss an issue, send it to 
the gcc list.

Setting GCC_EXEC_PREFIX should no longer be necessary.  Gcc will figure 
this info out itself if it is installed someplace other than where it 
was configured for.

The correct value for GCC_EXEC_PREFIX as per the gcc-3.3 documentation 
would be /usr/local/lib/gcc-lib/.  I don't think you can expect 
consistent results if you use any other value.

The correct value for GCC_EXEC_PREFIX as per the gcc-3.4 documentation 
would be /usr/local/lib/gcc/.  I don't think you can expect consistent 
results if you use any other value.

ld is special, since ld may optionally be part of a gcc install is 
collect is built and installed.  So you may be getting different results 
with gcc-3.3 and gcc-3.4 because one built and installed collect and the 
other did not.  I can not determine this from the info you have 
provided, as this depends on how gcc was configured, built, and installed.

> It would also be useful to specify programs for various passes (I'm having problems
> with ld 2.14 and 2.15, and it would be nice to be able to do something like:
> 	gcc --ld-prog=/usr/local/bin/ld-2.14 ...
> and
> 	gcc --ld-prog=/usr/local/bin/ld-2.15

If you install the two binutils versions in different directories, which 
would be the normal case, then you can select among them by using the -B 
option.

> I'm also not clear why 3.3.1 installedd in <prefix>/lib/gcc-lib
> and 3.4.0 installed in
> 	<prefix>/lib/gcc

Because we changed the directory structure.  If you look closer, you 
will see that gcc-3.4 now uses libexec in addition to lib.  Probably the 
redundant lib/gcc-lib was simplied to lib/gcc at the same time.  And 
similarly, we use libexec/gcc for binaries.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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

end of thread, other threads:[~2004-06-08 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-04 20:28 behavior of GCC_EXEC_PREFIX seems to have changed between 3.3.1 and 3.4.0 Marty Leisner
2004-06-08 19:23 ` Jim Wilson

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).