bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libtool 2.2.6] testsuite: 37 73 failed


From: Ralf Wildenhues
Subject: Re: [libtool 2.2.6] testsuite: 37 73 failed
Date: Tue, 17 Mar 2009 21:06:24 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Maciej,

* Maciej Helminiak wrote on Tue, Mar 17, 2009 at 01:20:02PM CET:
> Im compiling system from scratch using CLFS (Cross Linux from Scratch) 
> book (Development CLFS -> Multilib Build x86_64, Version 
> SVN-20090312-x86_64-Multilib).
> used optimization: CXXFLAGS=-O3 -march=core2 -mtune=core2, CFLAGS=-O3 
> -march=core2 -mtune=core2
> 
> Host system: OpenSUSE 11.1 x86_64 GNOME
> Kernel: 2.6.27.7-9 (modified 2.6.27.7?)
> Target system: multilib x86_64 linux
> Machine: HP laptop, Intel core 2 duo
[...]

Thanks for the bug report.  The first test that fails is due to not
being able to set some locale.  It is a harmless error in the testsuite
only.  The second test that fails is a followup failure of the first
one.

So there is no need to worry, Libtool should work just fine.

Can you please check that the patch below fixes the failures?
If so, then I'll apply it and put you in THANKS (if you don't mind).

Thanks,
Ralf

> 37. localization.at:25: testing ...
> /mat/sources/clfs/libtool-2.2.6/tests/testsuite.dir/at-test-source: line 17: 
> warning: setlocale: LC_ALL: cannot change locale (de_DE): No such file or 
> directory

> ./localization.at:48: $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS 
> -c a.c || exit 1
> stderr:
> /bin/sh: warning: setlocale: LC_ALL: cannot change locale (de_DE)
> /mat/sources/clfs/libtool-2.2.6/libtool: line 989: warning: setlocale: 
> LC_ALL: cannot change locale (de_DE)
> a.c:1: Fehler: Gr??e des Feldes ?x? ist negativ
> stdout:
> libtool: compile:  gcc -m32 -O3 -march=core2 -mtune=core2 -c a.c  -fPIC -DPIC 
> -o .libs/a.o
> ./localization.at:50: diff expected-stderr stderr
> --- /dev/null 2008-12-03 10:29:15.000000000 +0000
> +++ /mat/sources/clfs/libtool-2.2.6/tests/testsuite.dir/at-stdout     
> 2009-03-17 11:56:21.000000000 +0000
> @@ -0,0 +1,3 @@
> +0a1,2
> +> /bin/sh: warning: setlocale: LC_ALL: cannot change locale (de_DE)
> +> /mat/sources/clfs/libtool-2.2.6/libtool: line 989: warning: setlocale: 
> LC_ALL: cannot change locale (de_DE)
> ./localization.at:50: exit code was 1, expected 0
> 37. localization.at:25: 37. localized compiler messages (localization.at:25): 
> FAILED (localization.at:50)
> 
> #                             -*- compilation -*-
> 73. cmdline_wrap.at:28: testing ...
> ./cmdline_wrap.at:43: $CONFIG_SHELL $abs_srcdir/testsuite -k libtool 
> $INNER_TESTSUITEFLAGS
[...]
>  37: localized compiler messages                     FAILED 
> (localization.at:50)



        Skip localization test when setlocale is not functional.
        * tests/localization.at (localized compiler messages): Skip
        test when there is a warning about `LC_ALL'.
        * THANKS: Update.
        Report by Maciej Helminiak.

diff --git a/tests/localization.at b/tests/localization.at
index 119b38d..1d689aa 100644
--- a/tests/localization.at
+++ b/tests/localization.at
@@ -49,6 +49,9 @@ AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS 
$CFLAGS -c a.c || exit
         [1], [stdout], [stderr])
 LT_AT_NORMALIZE_COMPILER_OUTPUT([stdout], [libtool-stdout])
 LT_AT_NORMALIZE_COMPILER_OUTPUT([stderr], [libtool-stderr])
+# Avoid this error:
+#   /bin/sh: warning: setlocale: LC_ALL: cannot change locale (de_DE)
+AT_CHECK([grep LC_ALL stdout stderr && exit 77], [1])
 AT_CHECK([diff expected-stderr libtool-stderr])
 AT_CHECK([diff expected-stdout libtool-stdout])
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]