This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ check-abi not selfcontained
- From: Nix <nix at esperi dot demon dot co dot uk>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Olaf Hering <olh at suse dot de>, gcc at gcc dot gnu dot org
- Date: Wed, 02 Jul 2003 23:47:14 +0100
- Subject: Re: libstdc++ check-abi not selfcontained
- References: <20030621183916.GA13193@suse.de><20030630203254.GA14383@disaster.jaj.com>
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