This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] g++ testsuite for shared only builds
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: toa at pop dot agri dot ch (Andreas Tobler)
- Cc: gcc-patches at gcc dot gnu dot org (GCC Patches)
- Date: Mon, 31 Oct 2005 16:12:34 -0500 (EST)
- Subject: Re: [patch] g++ testsuite for shared only builds
>
> Hello,
>
> if I build a gcc without static library support I run into several
> failures like this:
>
> Setting LD_LIBRARY_PATH to
> .:/mnt/slice1/gcc-svn/objdir/gcc:.:/mnt/slice1/gcc-svn/objdir/gcc:
> ./eb73.exe: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.4' not found
> (required by ./eb73.exe)
> ./eb73.exe: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.6' not found
> (required by ./eb73.exe)
> FAIL: g++.old-deja/g++.robertl/eb73.C execution test
>
> The testsuite picks the libstdc++ from my installed gcc-3.4 instead of
> the fresh built from gcc-4.x.
>
> So I added the following piece to lib/g++.exp.
> I know, not complete, especially for other targets having a different
> shared library extension.
> Tested on ppc-linux (32-bit only).
>
> Is the approach ok? If yes, shall I add the other checks as well?
Note this fixes part of PR 16230. Looks like all the *.exp have
the same issue. I know that the objc testsuite has the same issue.
-- Pinski