Bug 20448 - locale testsuite fails when GCC is configured with --disable-nls
Summary: locale testsuite fails when GCC is configured with --disable-nls
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.1.0
: P2 minor
Target Milestone: 4.1.3
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-12 23:53 UTC by John David Anglin
Modified: 2008-04-09 04:05 UTC (History)
2 users (show)

See Also:
Host:
Target: i686-pc-linux-gnu, hppa-linux-gnu
Build:
Known to work: 4.1.3 4.2.0
Known to fail: 4.1.2
Last reconfirmed: 2006-01-26 05:16:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2005-03-12 23:53:50 UTC
=== libstdc++ tests ===


Running target unix
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
XPASS: 26_numerics/cmath/c99_classification_macros_c.cc (test for excess errors)

                === libstdc++ Summary ===

# of expected passes            3613
# of unexpected failures        5
# of unexpected successes       1
# of expected failures          8

Compiler version: 4.1.0 20050312 (experimental) 
Platform: i686-pc-linux-gnu
configure flags: --with-gnu-as --with-gnu-ld --disable-nls --enable-shared --
prefix=/home/dave/opt/gnu/gcc/gcc-4.1.0 --with-local-prefix=/home/dave/opt/gnu --
enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=
boehm --with-jacks --enable-java-awt=xlib --enable-languages=c,c++,f95,java,objc

Probably, the locale tests shouldn't be run when --disable-nls is given.
However, I think the actual cause of the fails is the fact that the
catalogs aren't built in the po directory when USE_NLS = no.
Comment 1 Paolo Carlini 2005-03-13 00:01:41 UTC
This issue seems related (or maybe we should open a separate PR?)

  http://gcc.gnu.org/ml/gcc/2004-12/msg01140.html
Comment 2 dave 2005-03-13 00:13:07 UTC
Subject: Re:  locale testsuite fails when GCC is configured with --disable-nls

> This issue seems related (or maybe we should open a separate PR?)
> 
>   http://gcc.gnu.org/ml/gcc/2004-12/msg01140.html

The effect of the missing po files is the same.  However, I think
there should be a separate PR for the above problem as it's really
an issue of not creating the files when they should be created.

Dave
Comment 3 Paolo Carlini 2005-03-13 00:20:06 UTC
Agreed, tomorrow will create one.
Comment 4 Joseph S. Myers 2006-03-24 01:59:41 UTC
Subject: Bug 20448

Author: jsm28
Date: Fri Mar 24 01:59:35 2006
New Revision: 112346

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112346
Log:
	PR libstdc++/20448
	PR libstdc++/20451
	* scripts/testsuite_flags.in (--cxxflags): Don't define LOCALEDIR.
	* testsuite/lib/libstdc++.exp (libstdc++_init): Always define
	LOCALEDIR to ".".
	(v3-build_support): Build MO files.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/scripts/testsuite_flags.in
    trunk/libstdc++-v3/testsuite/lib/libstdc++.exp

Comment 5 Joseph S. Myers 2006-03-24 02:05:52 UTC
Subject: Bug 20448

Author: jsm28
Date: Fri Mar 24 02:05:46 2006
New Revision: 112347

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112347
Log:
	PR libstdc++/20448
	PR libstdc++/20451
	* libstdc++-v3/scripts/testsuite_flags.in (--cxxflags): Don't
	define LOCALEDIR.
	* libstdc++-v3/testsuite/lib/libstdc++.exp (libstdc++_init):
	Always define LOCALEDIR to ".".
	(v3-build_support): Build MO files.

Modified:
    branches/csl/sourcerygxx-4_1/ChangeLog.csl
    branches/csl/sourcerygxx-4_1/libstdc++-v3/scripts/testsuite_flags.in
    branches/csl/sourcerygxx-4_1/libstdc++-v3/testsuite/lib/libstdc++.exp

Comment 6 Paolo Carlini 2006-03-30 15:06:59 UTC
Fixed.
Comment 7 Paolo Carlini 2006-03-30 15:07:33 UTC
Fixed.
Comment 8 Kaveh Ghazi 2008-04-09 02:20:41 UTC
Subject: Bug 20448

Author: ghazi
Date: Wed Apr  9 02:19:57 2008
New Revision: 134123

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134123
Log:
	Backport:
	2006-03-24  Mark Mitchell  <mark@codesourcery.com>
	            Joseph S. Myers  <joseph@codesourcery.com>

	PR libstdc++/20448
	PR libstdc++/20451
	* scripts/testsuite_flags.in (--cxxflags): Don't define LOCALEDIR.
	* testsuite/lib/libstdc++.exp (libstdc++_init): Always define
	LOCALEDIR to ".".
	(v3-build_support): Build MO files.


Modified:
    branches/gcc-4_1-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_1-branch/libstdc++-v3/scripts/testsuite_flags.in
    branches/gcc-4_1-branch/libstdc++-v3/testsuite/lib/libstdc++.exp