This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++ check-abi not selfcontained


On Mon, 30 Jun 2003, Phil Edwards mused:
> On Sat, Jun 21, 2003 at 08:39:16PM +0200, Olaf Hering wrote:
>> Hi,
>> 
>> should this test define LD_LIBRARY_PATH? Or must I run make install
>> without DESTDIR before running make check?
> [...]
>> ./abi_check: /lib64/libgcc_s.so.1: version `GCC_3.3' not found (required by /var/lib/nobody/obj-gcc-head/powerpc64-suse-linux/libstdc++-v3/src/.libs/libstdc++.so.6)
> 
> Actually, we solve this by setting LD_RUN_PATH while abi_check is built.
> However, it isn't picking up enough directories.
> 
> The last time this was brought up, we weren't certain how to find the other
> directories needed.  I worked up a patch but it was a terrible kludge.

I'm setting LD_LIBRARY_PATH as follows, which seems to work:

LD_LIBRARY_PATH=$(find . -name "*.so" | sed 's,^\.,'`pwd`',; s,/[^/]*$,,; s,$,:,' | sort -u | sed '$s/://' | tr -d "\n"; echo ':'`pwd`/gcc)

but `terrible kludge' doesn't even begin to describe it.

(The sed tries to remove the filenames, canonicalize the paths, zap
unnecessary redundancy and colon-separate them. I could have used
basename and a loop but that would have been insufficiently ugly.)

-- 
`It is an unfortunate coincidence that the date locarchive.h was
 written (in hex) matches Ritchie's birthday (in octal).'
               -- Roland McGrath on the libc-alpha list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]