libio regressions, shared libs.

Donn Terry donn@interix.com
Tue Jun 29 08:34:00 GMT 1999


Jeff: I suspect you missed a critical point in my original message:
the tool path tools are built with the NEW shared library, which
is versioned.  Thus, if LD_LIBRARY_PATH is not set to include
a directory containing the new shared library, ld.so will not
find it at all.  (That is, since libc.so.2.2-19990628 is not
in any of the usual places, LD_LIBRARY_PATH must be set or
gcc will not run, since gcc depencs on libc.so.2.2-19990628.)

Code at roughly line 85 of unix.c guarantees that if ld_library_path
is set, that LD_LIBRARY_PATH will be unset, thus preventing the
compiler from running at all.  libio and libstdc++ regressions
set ld_library_path (for libio, to ""), so the compiler won't run.

(Simply put, if LD_LIBRARY_PATH is not set, which will be the
case if ld_library_path is set, the gcc under test won't run.)

It appears that Cygnus is running into something similar, as
Anthony Green sent me a patch; it's not quite what I need but
it's in the right general direction.  I'm working with him to
figure out what will work for both of us.  However, it would
be helpful to know the problem for which "the wrong fix" is to
set LD_LIBRARY_PATH, so that can continue to be accomodated.
I can't tell for sure, but it may have been you that put that
code in in the first place.

Donn


Jeffrey A Law wrote:
> 
>   In message < 3777A7F9.1A42A802@interix.com >you write:
>   > I'm in the situation where I'm compiling and regressing the
>   > whole tool path using a freshly built (and thus not installed
>   > in the usual places) set of shared libraries.  To get the compiler
>   > to compile anything, LD_LIBRARY_PATH must be set to where the
>   > new shared libraries live.  (The compiler is built shared using
>   > the new shared libs.)
>   >
>   > libio regressions (at least; libstdc++ probably, and other maybe) use
>   > the dejagnu procedure unix_load to start the compiler.  (Specifically
>   > gcc/xgcc).
> This sounds like there is something seriously wrong with your setup.  This
> works just fine for other folks.
> 
> What dejagnu are you using?  What variables are set in your environment?  Are
> you building in a subdirectory of your source tree?   Are you building in
> a subdirectory of $prefix?
> 
> jeff

-- 

===================================================
Donn Terry                  mailto:donn@interix.com
Softway Systems, Inc.        http://www.interix.com
2850 McClelland Dr, Ste. 1800   Ft.Collins CO 80525
Tel: +1-970-204-9900           Fax: +1-970-204-9951
===================================================


More information about the Gcc-bugs mailing list