Subject: Re: bug#30718: coreutils-8.29 compilation failure using xlC on AIX

From: Bernhard Voelker <[email-masked]>
Date: Tue, 6 Mar 2018 22:00:33 +0100

On 03/05/2018 09:48 PM, John Wiersba wrote:
> Build environment:
> coreutils-8.29
> AIX 6.1

> Finally, I'm attaching the test-suite.log indicating a couple of failures and a few errors.

> FAIL: tests/misc/help-version
> =============================
>
> env: '[': No such file or directory
> env: '[': No such file or directory
> env: '[': No such file or directory
> FAIL: [
> 0+1 records in
> 0+1 records out
> FAIL tests/misc/help-version.sh (exit status: 1)

Somehow, the used 'env' does not seem to find '[' in PATH.
This is odd, as the test setup should care for this.
Would you please send the full "tests/misc/help-version.log"?

BTW: As there are only 3 instead of 5 ENOENTs for '[', I guess
that AIX doesn't have /dev/full, right?

> ERROR: tests/rm/rm-readdir-fail
> ===============================
>
> xlC: 1501-289 (W) Option -Wall was incorrectly specified. The option will be ignored.
> xlC: 1501-216 (W) command option --std=gnu99 is not recognized - passed to ld
> xlC: 1501-289 (W) Option -Wall was incorrectly specified. The option will be ignored.
> xlC: 1501-216 (W) command option --std=gnu99 is not recognized - passed to ld
> "k.c", line 17.41: 1506-068 (W) Operation between types "struct dirent*(*)(struct _dirdesc*)" and "void*" is not allowed.
> ld: 0706-012 The -h flag is not recognized.
> ld: 0706-012 The -a flag is not recognized.
> ld: 0706-012 The -- flag is not recognized.
> ld: 0706-012 The -t flag is not recognized.
> ld: 0706-027 The -d flag is ignored.
> ld: 0706-012 The -= flag is not recognized.
> ld: 0706-012 The -g flag is not recognized.
> ld: 0706-027 The -n flag is ignored.
> ld: 0706-005 Cannot find or open file: PIC
> 	ld:fopen(): No such file or directory
> rm-readdir-fail.sh: set-up failure: failed to build shared library
> ERROR tests/rm/rm-readdir-fail.sh (exit status: 99)

gcc_shared_ k.c k.so \
  || framework_failure_ 'failed to build shared library'
_____^^^^^^^^^^^^^^^^^^

We probably better should 'skip_' instead.

Thanks & have a nice day,
Berny