AIX results (was: new snapshot available: coreutils-8.28.61-70c84)
From:
Assaf Gordon
Subject:
AIX results (was: new snapshot available: coreutils-8.28.61-70c84)
Date:
Thu, 21 Dec 2017 22:30:34 -0700
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
Follow-up on AIX/Power8 build:
On 2017-12-21 06:58 PM, Assaf Gordon wrote:
AIX:
coreutils now fails during configure with:
[....]
configure: error: This package requires a 64-bit 'time_t' type, which
your system appears to support. You might try configuring with
'CPPFLAGS="-m64" LDFLAGS="-m64"'. To build with a 32-bit time_t anyway
(not recommended), configure with 'TIME_T_32_BIT_OK=yes'.
See `config.log' for more details
Using 'CPPFLAGS="-m64" LDFLAGS="-m64"' does not work:
configure fails with "compiler unable to create executables"
because gcc does not accept "-m64".
The gcc is:
======
$ uname -a
AIX power8-aix 2 7 00FA74164C00
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.2.0.0/6.1.0/lto-wrapper
Target: powerpc-ibm-aix7.2.0.0
Thread model: aix
gcc version 6.1.0 (GCC)
======
The following command did work to build 64bit binaries:
./configure CFLAGS=-maix64 LDFLAGs=-maix64 AR="ar -X64"
The AR is required, otherwise creating libcoreutils.a fails with:
===
ar: 0707-126 lib/vasprintf.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
===
With using this command compilation succeeds, and few tests fail:
FAIL: tests/misc/help-version
FAIL: tests/misc/shred-remove
FAIL: tests/misc/stdbuf
FAIL: tests/install/basic-1
FAIL: tests/mkdir/p-3
ERROR: tests/tail-2/pipe-f
FAIL: tests/touch/trailing-slash
Full log attached.
Also, the other alternative of accepting 32bit time also worked:
TIME_T_32_BIT_OK=yes ./configure
With this command, the same tests still fail (log attached).
I wonder if this is worth mentioning in the README
(which has two sections about building on HPUX and OSF/1).
regards,
-assaf
P.S.
To investigate further, the builds are on the GCC compiler farm
(gcc119.fsffrance.org) in