Subject: bug#20939: closed (Re: [bug-diffutils] bug#20939: make check fails AIX)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 01 Jul 2015 01:59:02 +0000

Your bug report

#20939: make check fails AIX

which was filed against the diffutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
20939: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20939
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug-diffutils] bug#20939: make check fails AIX
From: Paul Eggert <[email-masked]>
To: Pete Lancashire <[email-masked]>, [email-masked]
Date: Tue, 30 Jun 2015 18:58:39 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Pete Lancashire wrote:
> "test-fcntl-h.c", line 73.10: 1506-052 (S) Duplicate case label for value
> 0. Labels must be unique.

Thanks, you should be able to ignore these bugs.  They're only part of the test 
suite, and are not part of diffutils proper.  Strictly speaking the bugs are in 
AIX, actually, as AIX defines values for O_CLOEXEC, O_NOFOLLOW, and O_TTY_INIT 
that are outside the 'int' range, and this does not conform to POSIX.  We have 
developed a workaround for these AIX issues here:

http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=93ce02b4fa01a3c1c194d91f8fd09e1efe04537c

and this workaround should appear in the next diffutils release.

Subject: make check fails AIX
From: Pete Lancashire <[email-masked]>
To: [email-masked]
Date: Tue, 30 Jun 2015 07:32:08 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Make completes w/o warnings or errors

Make check fails

make[4]: 'test-errno' is up to date.
make[4]: 'test-exclude' is up to date.
  CC       test-fcntl-h.o
"test-fcntl-h.c", line 73.10: 1506-052 (S) Duplicate case label for value
0. Labels must be unique.
"test-fcntl-h.c", line 106.10: 1506-052 (S) Duplicate case label for value
0. Labels must be unique.
Makefile:2409: recipe for target 'test-fcntl-h.o' failed
make[4]: *** [test-fcntl-h.o] Error 1
make[4]: Leaving directory
'/home/buildsw/packages/gnu/diffutils-3.2/gnulib-tests'
Makefile:3003: recipe for target 'check-am' failed
make[3]: *** [check-am] Error 2
make[3]: Leaving directory
'/home/buildsw/packages/gnu/diffutils-3.2/gnulib-tests'
Makefile:2428: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory
'/home/buildsw/packages/gnu/diffutils-3.2/gnulib-tests'
Makefile:3006: recipe for target 'check' failed
make[1]: *** [check] Error 2
make[1]: Leaving directory
'/home/buildsw/packages/gnu/diffutils-3.2/gnulib-tests'
Makefile:1071: recipe for target 'check-recursive' failed

Attached: output of configure and make and config.log, environment all with
.out extension

oslevel -s  7100-03-05-1524

xlc is 12.1.0.3

CFLAGS cut back to not attempt optimization

compiler run as xlc_r

"Invokes the compiler for C source files. This command supports all of the
ISO C99 standard features, and most IBM language extensions. This
invocation is recommended for all applications."

reference:
http://www-01.ibm.com/support/knowledgecenter/SSGH2K_12.1.0/com.ibm.xlc121.aix.doc/compiler_ref/tucmpinv.html?lang=en

PATH
 /usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/buildsw/bin:/usr/bin/X11:/sbin:.:/usr/vac/bin:/usr/vacpp/bin

OBJECT_MODE   64

CC       xlc_r
CFLAGS   -qmaxmem=-1 -DSYSV -D_AIX -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15
-I/usr/local/include
LDFLAGS  -L/usr/local/lib64 -L/usr/local/lib -bmaxdata:0x80000000 -brtl
LIBS
CPPFLAGS
CXX      xlc++_r
CXXFLAGS -I/usr/local/include