gcc-4.5.1 failing test: FAIL: abi_check

Tom Browder tom.browder@gmail.com
Tue Aug 31 01:42:00 GMT 2010


On Mon, Aug 30, 2010 at 10:34, Tom Browder <tom.browder@gmail.com> wrote:
> On Mon, Aug 30, 2010 at 10:15, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>> On 08/30/2010 05:12 PM, Paolo Carlini wrote:
>>> On 08/30/2010 04:48 PM, Tom Browder wrote:
> ...
>> If you have many more unsupported, then your locale model is wrong, is
>> generic instead of GNU. In any case, post your libstdc++.log, maybe
..
> But first I'll try a rebuild and retest.

That didn't work.  I don't think the locale is the problem (at least
directly for the FAIL check.  If I'm reading the test code correctly
(tcl is hard for me to read), the failure comes from running the
program "abi_check" this way:

  ./abi_check  --check-verbose current_symbols.txt baseline_symbols.txt

The check fails because "incompatible" new symbols were added since
the "baseline_sysmbols.txt" file was generated.

The apparent reason for the failure is that about half of the new
symbols have the same version of the base version (GLIBCXX_3.4).
(Note that the other half were okay even though they were added to
versions newer than the base but older than the latest.)

After looking at the description of -Wabi, it looks to me like the
defaults for the executing compiler ought to be '-fabi-version=4'.

So I tried rebuilding with the following new configuration option:

  --enable-cxx-flags='fabi-version=4'

And, voila, success!  The 'FAIL:  abi_check' went away!

Looks like maybe the abi version needs to default to 4.  And the ABI
discussion in the libstdc++ manual needs clarifying.

Next I added the two configure options:

--enable-symvers=gnu
--enable-clocale=gnu

I now get:

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file
for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /disk3/extsrc/gcc-4.5.1/libstdc++-v3/testsuite/config/default.exp
as tool-and-target-specific interface file.
Running /disk3/extsrc/gcc-4.5.1/libstdc++-v3/testsuite/libstdc++-abi/abi.exp ...
Running /disk3/extsrc/gcc-4.5.1/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp
...
FAIL: 22_locale/messages/members/char/1.cc execution test
FAIL: 22_locale/messages/members/char/2.cc execution test
FAIL: 22_locale/messages/members/char/wrapped_env.cc execution test
FAIL: 22_locale/messages/members/char/wrapped_locale.cc execution test
FAIL: 22_locale/messages_byname/named_equivalence.cc execution test
FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test

		=== libstdc++ Summary ===

# of expected passes		7709
# of unexpected failures	6
# of expected failures		95
# of unsupported tests		13

And I need to investigate the locale errors more now.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, FL
USA



More information about the Libstdc++ mailing list