GNU bug report logs - #14253
Testsuite failure in gnulib-tests: test programs cannot be built

Previous Next

Package: coreutils;

Reported by: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Date: Wed, 24 Apr 2013 08:40:01 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14253 in the body.
You can then email your comments to 14253 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Wed, 24 Apr 2013 08:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefano Lattarini <stefano.lattarini <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 24 Apr 2013 08:40:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Testsuite failure in gnulib-tests: test programs cannot be built
Date: Wed, 24 Apr 2013 10:34:08 +0200
It happens when building from a bootstrapped git checkout, with the
latest master v8.21-40-g090294b).

This is the exact error:

  $ (cd gnulib-tests && make check)
  ...
  make[3]: Entering directory `/storage/home/stefano/src/gnu/coreutils/gnulib-tests'
  CC     localename.o
  cc1: error: ../intl: No such file or directory [-Werror]
  cc1: all warnings being treated as errors
  make[3]: *** [localename.o] Error 1

Some details that might be helpful:

  $ (cd gnulib-tests && make check V=1)
  ...
  make[3]: Entering directory `/storage/home/stefano/src/gnu/coreutils/gnulib-tests'
  depbase=`echo localename.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
  gcc -std=gnu99  -I. -I../lib  -DIN_COREUTILS_GNULIB_TESTS=1 \
   -I. -I. -I.. -I./.. -I../lib -I./../lib -I../intl  \
   -W \
   -Wabi \
   -Waddress \
   -Wall \
   -Warray-bounds \
   -Wattributes \
   -Wbad-function-cast \
   -Wbuiltin-macro-redefined \
   -Wcast-align \
   -Wchar-subscripts \
   -Wclobbered \
   -Wcomment \
   -Wcomments \
   -Wcoverage-mismatch \
   -Wcpp \
   -Wdeprecated \
   -Wdeprecated-declarations \
   -Wdisabled-optimization \
   -Wdiv-by-zero \
   -Wempty-body \
   -Wendif-labels \
   -Wenum-compare \
   -Wextra \
   -Wformat-contains-nul \
   -Wformat-extra-args \
   -Wformat-security \
   -Wformat-y2k \
   -Wformat-zero-length \
   -Wformat=2 \
   -Wfree-nonheap-object \
   -Wignored-qualifiers \
   -Wimplicit \
   -Wimplicit-function-declaration \
   -Wimplicit-int \
   -Winit-self \
   -Wint-to-pointer-cast \
   -Winvalid-memory-model \
   -Winvalid-pch \
   -Wjump-misses-init \
   -Wmain \
   -Wmaybe-uninitialized \
   -Wmissing-braces \
   -Wmissing-declarations \
   -Wmissing-field-initializers \
   -Wmissing-include-dirs \
   -Wmissing-noreturn \
   -Wmissing-parameter-type \
   -Wmudflap \
   -Wmultichar \
   -Wnarrowing \
   -Wnonnull \
   -Wnormalized=nfc \
   -Wold-style-declaration \
   -Woverflow \
   -Woverlength-strings \
   -Woverride-init \
   -Wpacked \
   -Wpacked-bitfield-compat \
   -Wparentheses \
   -Wpointer-arith \
   -Wpointer-sign \
   -Wpointer-to-int-cast \
   -Wpragmas \
   -Wreturn-type \
   -Wsequence-point \
   -Wshadow \
   -Wstrict-aliasing \
   -Wsuggest-attribute=noreturn \
   -Wswitch \
   -Wsync-nand \
   -Wtrampolines \
   -Wtrigraphs \
   -Wtype-limits \
   -Wunknown-pragmas \
   -Wunused \
   -Wunused-but-set-parameter \
   -Wunused-but-set-variable \
   -Wunused-function \
   -Wunused-label \
   -Wunused-local-typedefs \
   -Wunused-parameter \
   -Wunused-result \
   -Wunused-value \
   -Wunused-variable \
   -Wvariadic-macros \
   -Wvector-operation-performance \
   -Wvolatile-register-var \
   -Wwrite-strings \
   -Wno-sign-compare \
   -Wno-unused-parameter \
   -Wsuggest-attribute=noreturn \
   -Wno-format-nonliteral \
   -Wno-logical-op -fdiagnostics-show-option -funit-at-a-time \
   -Werror -g -O2 -MT localename.o -MD -MP -MF $depbase.Tpo -c -o localename.o localename.c &&\
  mv -f $depbase.Tpo $depbase.Po
  cc1: error: ../intl: No such file or directory [-Werror]
  cc1: all warnings being treated as errors
  make[3]: *** [localename.o] Error 1
  make[3]: Leaving directory `/storage/home/stefano/src/gnu/coreutils/gnulib-tests'
  make[2]: *** [check-am] Error 2
  make[2]: Leaving directory `/storage/home/stefano/src/gnu/coreutils/gnulib-tests'
  make[1]: *** [check-recursive] Error 1
  make[1]: Leaving directory `/storage/home/stefano/src/gnu/coreutils/gnulib-tests'
  make: *** [check] Error 2

  $ gcc --version
  gcc (Debian 4.7.2-5) 4.7.2
  Copyright (C) 2012 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Let me know if you need more information,
  Stefano




Information forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Wed, 24 Apr 2013 09:37:01 GMT) Full text and rfc822 format available.

Message #8 received at 14253 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: bug-gnulib <bug-gnulib <at> gnu.org>, 14253 <at> debbugs.gnu.org
Subject: Re: bug#14253: Testsuite failure in gnulib-tests: test programs cannot
	be built
Date: Wed, 24 Apr 2013 10:08:47 +0100
On 04/24/2013 09:34 AM, Stefano Lattarini wrote:
> It happens when building from a bootstrapped git checkout, with the
> latest master v8.21-40-g090294b).
> 
> This is the exact error:
> 
>   $ (cd gnulib-tests && make check)
>   ...
>   make[3]: Entering directory `/storage/home/stefano/src/gnu/coreutils/gnulib-tests'
>   CC     localename.o
>   cc1: error: ../intl: No such file or directory [-Werror]
>   cc1: all warnings being treated as errors
>   make[3]: *** [localename.o] Error 1
> 
> Some details that might be helpful:
> 
>   $ (cd gnulib-tests && make check V=1)
>   ...
>   make[3]: Entering directory `/storage/home/stefano/src/gnu/coreutils/gnulib-tests'
>   depbase=`echo localename.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
>   gcc -std=gnu99  -I. -I../lib  -DIN_COREUTILS_GNULIB_TESTS=1 \
>    -I. -I. -I.. -I./.. -I../lib -I./../lib -I../intl  \
>    -W \
...
>    -Werror -g -O2 -MT localename.o -MD -MP -MF $depbase.Tpo -c -o localename.o localename.c &&\
>   mv -f $depbase.Tpo $depbase.Po
>   cc1: error: ../intl: No such file or directory [-Werror]
>   cc1: all warnings being treated as errors

>   $ gcc --version
>   gcc (Debian 4.7.2-5) 4.7.2

Bernhard noticed this also:
http://lists.gnu.org/archive/html/coreutils/2013-03/msg00065.html

CCing gnulib

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Thu, 25 Apr 2013 05:36:02 GMT) Full text and rfc822 format available.

Message #11 received at 14253 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 14253 <at> debbugs.gnu.org, bug-gnulib <bug-gnulib <at> gnu.org>,
	Stefano Lattarini <stefano.lattarini <at> gmail.com>,
	Bruno Haible <bruno <at> clisp.org>, Bernhard Voelker <mail <at> bernhard-voelker.de>
Subject: Re: bug#14253: Testsuite failure in gnulib-tests: test programs cannot
	be built
Date: Wed, 24 Apr 2013 22:29:56 -0700
On 04/24/2013 02:08 AM, Pádraig Brady wrote:
> Bernhard noticed this also:
> http://lists.gnu.org/archive/html/coreutils/2013-03/msg00065.html

Thanks, here's a proposed patch.  I'll CC: this to Bruno since he's
gettext's maintainer.

From 319571c0a0ad96d60f00470ef5d0ac8cc83c194b Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Wed, 24 Apr 2013 22:26:31 -0700
Subject: [PATCH] gettext: now your responsibility to add
 -$(top_builddir)/intl

Formerly, it was your responsibility to do this for all Makefile.ams
other than Gnulib's.  Now it's your responsibility to do it for
Gnulib's Makefile.am, too.
* NEWS: Document this.
* modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
---
 ChangeLog       |  9 +++++++++
 NEWS            |  4 ++++
 modules/gettext | 17 +++++++++--------
 3 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f49e881..805f5fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-04-24  Paul Eggert  <eggert <at> cs.ucla.edu>
+
+	gettext: now your responsibility to add -$(top_builddir)/intl
+	Formerly, it was your responsibility to do this for all Makefile.ams
+	other than Gnulib's.  Now it's your responsibility to do it for
+	Gnulib's Makefile.am, too.
+	* NEWS: Document this.
+	* modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
+
 2013-04-11  Dmitry V. Levin  <ldv <at> altlinux.org>
 
 	regex-tests, regex: allow glibc re_search behavior
diff --git a/NEWS b/NEWS
index 2227d3f..fa3a8c6 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,10 @@ Important notes
 
 Date        Modules         Changes
 
+2013-04-24  gettext         If your project uses 'gettextize --intl' it is now
+                            your responsibility to put -I$(top_builddir)/intl
+                            into the Makefile.am for gnulib.
+
 2012-06-27  elisp-comp      The module 'elisp-comp' is removed; the script is
                             not independently useful outside of automake.
 
diff --git a/modules/gettext b/modules/gettext
index ca0b684..3da0e2e 100644
--- a/modules/gettext
+++ b/modules/gettext
@@ -45,15 +45,16 @@ AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.18.1])
 
 Makefile.am:
-# This is for those projects which use "gettextize --intl" to put a source-code
-# copy of libintl into their package. In such projects, every Makefile.am needs
+# If your project uses "gettextize --intl" to put a source-code
+# copy of libintl into the package, every Makefile.am needs
 # -I$(top_builddir)/intl, so that <libintl.h> can be found in this directory.
-# For the Makefile.ams in other directories it is the maintainer's
-# responsibility; for the one from gnulib we do it here.
-# This option has no effect when the user disables NLS (because then the intl
-# directory contains no libintl.h file) or when the project does not use
-# "gettextize --intl".
-AM_CPPFLAGS += -I$(top_builddir)/intl
+# Here's one way to do this:
+#AM_CPPFLAGS += -I$(top_builddir)/intl
+# This option has no effect when the user disables NLS (because then
+# the intl directory contains no libintl.h file).  This option is not
+# enabled by default because the intl directory might not exist if
+# your project does not use "gettext --intl", and some compilers
+# complain about -I options applied to nonexistent directories.
 
 Include:
 "gettext.h"
-- 
1.7.11.7






Information forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Thu, 25 Apr 2013 08:35:02 GMT) Full text and rfc822 format available.

Message #14 received at 14253 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 14253 <at> debbugs.gnu.org, bug-gnulib <bug-gnulib <at> gnu.org>,
	Pádraig Brady <P <at> draigBrady.com>,
	Bruno Haible <bruno <at> clisp.org>, Bernhard Voelker <mail <at> bernhard-voelker.de>
Subject: Re: bug#14253: Testsuite failure in gnulib-tests: test programs cannot
	be built
Date: Thu, 25 Apr 2013 10:28:40 +0200
On 04/25/2013 07:29 AM, Paul Eggert wrote:
> On 04/24/2013 02:08 AM, Pádraig Brady wrote:
>> Bernhard noticed this also:
>> http://lists.gnu.org/archive/html/coreutils/2013-03/msg00065.html
> 
> Thanks, here's a proposed patch.  I'll CC: this to Bruno since he's
> gettext's maintainer.
> 
> From 319571c0a0ad96d60f00470ef5d0ac8cc83c194b Mon Sep 17 00:00:00 2001
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> Date: Wed, 24 Apr 2013 22:26:31 -0700
> Subject: [PATCH] gettext: now your responsibility to add
>
s/now/now it's/ ?

>  -$(top_builddir)/intl
>
I guess you meant '-I$(top_builddir)/intl' here.

[SNIP]

Regards,
  Stefano




Information forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Tue, 30 Apr 2013 09:29:02 GMT) Full text and rfc822 format available.

Message #17 received at 14253 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 14253 <at> debbugs.gnu.org, bug-gnulib <bug-gnulib <at> gnu.org>,
	Pádraig Brady <P <at> draigBrady.com>,
	Bruno Haible <bruno <at> clisp.org>, Bernhard Voelker <mail <at> bernhard-voelker.de>
Subject: Re: bug#14253: Testsuite failure in gnulib-tests: test programs cannot
	be built
Date: Tue, 30 Apr 2013 11:27:58 +0200
Hi Paul, Pádraig.

On 04/25/2013 10:28 AM, Stefano Lattarini wrote:
> On 04/25/2013 07:29 AM, Paul Eggert wrote:
>> On 04/24/2013 02:08 AM, Pádraig Brady wrote:
>>> Bernhard noticed this also:
>>> http://lists.gnu.org/archive/html/coreutils/2013-03/msg00065.html
>>
>> Thanks, here's a proposed patch.  I'll CC: this to Bruno since he's
>> gettext's maintainer.
>>
Actually, I believe the current gettext maintainer is Daiki Ueno:
<http://lists.gnu.org/archive/html/bug-gettext/2012-12/msg00004.html>

>> From 319571c0a0ad96d60f00470ef5d0ac8cc83c194b Mon Sep 17 00:00:00 2001
>> From: Paul Eggert <eggert <at> cs.ucla.edu>
>> Date: Wed, 24 Apr 2013 22:26:31 -0700
>> Subject: [PATCH] gettext: now your responsibility to add
>>
> s/now/now it's/ ?
> 
>>  -$(top_builddir)/intl
>>
> I guess you meant '-I$(top_builddir)/intl' here.
> 
> [SNIP]
> 
Ping on this?  I'm still have to create a dummy 'intl' directory myself
if I want to be able to bootstrap coreutils from the git repository ...

Thanks,
  Stefano




Information forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Tue, 30 Apr 2013 16:48:01 GMT) Full text and rfc822 format available.

Message #20 received at 14253 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: 14253 <at> debbugs.gnu.org, Bruno Haible <bruno <at> clisp.org>,
	Bernhard Voelker <mail <at> bernhard-voelker.de>,
	bug-gnulib <bug-gnulib <at> gnu.org>, Daiki Ueno <ueno <at> gnu.org>,
	Pádraig Brady <P <at> draigBrady.com>
Subject: Re: bug#14253: Testsuite failure in gnulib-tests: test programs cannot
	be built
Date: Tue, 30 Apr 2013 09:47:12 -0700
On 04/30/13 02:27, Stefano Lattarini wrote:

> Actually, I believe the current gettext maintainer is Daiki Ueno:
> <http://lists.gnu.org/archive/html/bug-gettext/2012-12/msg00004.html>

Hmm, well, perhaps Daiki should be listed as the maintainer for
at least the gettext-related modules in Gnulib?  I'll CC: this Daiki,
as a heads-up.  Daiki, this thread is at:

bugs.gnu.org/14253

> Ping on this?  I'm still have to create a dummy 'intl' directory myself
> if I want to be able to bootstrap coreutils from the git repository ...

Since it's causing you problems I installed the patch into gnulib.
We can always change it later if Daiki or Bruno prefers that.





Information forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Wed, 01 May 2013 11:02:02 GMT) Full text and rfc822 format available.

Message #23 received at 14253 <at> debbugs.gnu.org (full text, mbox):

From: Daiki Ueno <ueno <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: bug-gnulib <bug-gnulib <at> gnu.org>, 14253 <at> debbugs.gnu.org,
	Bernhard Voelker <mail <at> bernhard-voelker.de>,
	Stefano Lattarini <stefano.lattarini <at> gmail.com>,
	Bruno Haible <bruno <at> clisp.org>
Subject: Re: bug#14253: Testsuite failure in gnulib-tests: test programs
	cannot be built
Date: Wed, 01 May 2013 20:01:16 +0900
Paul Eggert <eggert <at> cs.ucla.edu> writes:

>> Ping on this?  I'm still have to create a dummy 'intl' directory myself
>> if I want to be able to bootstrap coreutils from the git repository ...
>
> Since it's causing you problems I installed the patch into gnulib.
> We can always change it later if Daiki or Bruno prefers that.

FWIW, the change looks reasonable to me.  Given that modules/gettext
adds AM_GNU_GETTEXT([external]) to configure.ac, the AM_CPPFLAGS setting
seems to be nothing more than example.

Regards,
-- 
Daiki Ueno





Information forwarded to bug-coreutils <at> gnu.org:
bug#14253; Package coreutils. (Fri, 19 Oct 2018 00:17:02 GMT) Full text and rfc822 format available.

Message #26 received at 14253 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: 14253 <at> debbugs.gnu.org
Subject: Re: bug#14253: Testsuite failure in gnulib-tests: test programs
 cannot be built
Date: Thu, 18 Oct 2018 18:16:20 -0600
tags 14253 fixed
close 14253
stop

(triaging old bugs)
5 years later, coreutils and gnulib-tests are built fine
(most of the time...).

Closing.

-assaf






Added tag(s) fixed. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 19 Oct 2018 00:17:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14253 <at> debbugs.gnu.org and Stefano Lattarini <stefano.lattarini <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 19 Oct 2018 00:17:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 16 Nov 2018 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.