Bug 17464 - [meta-bug] The newly built gcc shared libraries aren't used for bootstap and check
Summary: [meta-bug] The newly built gcc shared libraries aren't used for bootstap and ...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: unknown
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: meta-bug
: 17087 (view as bug list)
Depends on: 16592 16633 17311 17369 17465 17466 17469 17684 17783 17789 18526 28242
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-13 19:37 UTC by H.J. Lu
Modified: 2018-09-21 02:13 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-09-24 17:10:00


Attachments
log of failing bootstrap on ia64-unknown-linux-gnu (31.47 KB, application/x-gzip)
2004-10-06 22:50 UTC, Joe Buck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2004-09-13 19:37:47 UTC
The newly built shared libraries in the gcc directory aren't
always used for bootstap and check, which may lead to the
bootstrap failure and false alarm in "make check".
Comment 1 H.J. Lu 2004-09-13 22:05:08 UTC
When LD_LIBRARY_PATH is set, dejagnu tests can't use the global ld_library_path
since it will cause LD_LIBRARY_PATH to be set with $ld_library_path, which
will override the existing LD_LIBRARY_PATH.
Comment 2 Andrew Pinski 2004-09-30 13:20:27 UTC
*** Bug 17087 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Pinski 2004-10-03 17:54:46 UTC
Confirmed.
Comment 4 Joe Buck 2004-10-06 22:50:18 UTC
Created attachment 7300 [details]
log of failing bootstrap on ia64-unknown-linux-gnu
Comment 5 Joe Buck 2004-10-06 22:51:11 UTC
I observe something similar when trying to boot the trunk on ia64-*-linux-gnu.

Specifically, during stage 2, the compiler builds build/genmodes and then runs
it, but there is a failure because the just-built libunwind.so.7 is not found:
it is in the stage1 subdirectory which is not on any LD_LIBRARY_PATH.

I have attached a log from a failing build as an attachment.
Comment 6 H.J. Lu 2004-10-06 23:08:41 UTC
It is a known bug. See bug 17783.
Comment 7 Andrew Pinski 2004-10-14 02:25:08 UTC
Really the libunwind patch should be reverted untill we fix this.
Comment 8 H.J. Lu 2004-10-14 16:16:13 UTC
Shouldn't we also revert libgcc_s.so patch? The problem is nothing new.
It existed from day one when libgcc_s.so was introduced. If there is no
system libgcc_s.so, gcc won't boostrap nor pass "make check". Let's fix
this long standing bug.
Comment 9 Andrew Pinski 2004-10-14 16:34:04 UTC
This is not true at all because I used to bootstrap on linux right after gcc added libgcc_s, In fact I still 
bootstrap on targets where libgcc_s don't exist on the machine but is built now on the mainline (ppc-
darwin is the one which I am talking about).
Comment 10 H.J. Lu 2004-10-14 17:10:46 UTC
Have you looked at

http://gcc.gnu.org/ml/gcc/2004-09/msg00209.html

We get lucky that only Ada compiler is linked with libgcc_s.so.
Comment 11 Eric Gallager 2018-09-21 02:13:13 UTC
All the bugs upon which this meta-bug depends have been closed, so I'm going to close this one, too. Feel free to reopen if more bugs crop up that need to be grouped under this one.