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
Configured with: ../gcc-6.1.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=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
  /home/agn/coreutils-8.28.61-70c84-32bit/
  /home/agn/coreutils-8.28.61-70c84-64bit/

=========================================================
   GNU coreutils 8.28.61-70c84: ./tests/test-suite.log
=========================================================

# TOTAL: 603
# PASS:  441
# SKIP:  156
# XFAIL: 0
# FAIL:  6
# XPASS: 0
# ERROR: 0

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)


FAIL: tests/misc/shred-remove
=============================

--- exp	2017-12-21 22:47:23.000000000 -0600
+++ out	2017-12-21 22:47:22.000000000 -0600
@@ -2,4 +2,5 @@
  shred: test: renamed to 0000
  shred: 0000: renamed to 001
  shred: 001: renamed to 00
+ shred: 00: renamed to 0
  shred: test: removed
shred: 0123456789: failed to remove: Permission denied
FAIL tests/misc/shred-remove.sh (exit status: 1)


FAIL: tests/misc/stdbuf
=======================

stdbuf: invalid mode 'l'
stdbuf: invalid mode '4294967296': Value too large to be stored in data type
stdbuf: line buffering stdin is meaningless
Try 'stdbuf --help' for more information.
stdbuf: you must specify a buffering mode option
Try 'stdbuf --help' for more information.
stdbuf: failed to run command '.': Permission denied
stdbuf: failed to run command 'no_such': No such file or directory
--- exp	2017-12-21 22:53:03.000000000 -0600
+++ out	2017-12-21 22:53:03.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:03.000000000 -0600
+++ out	2017-12-21 22:53:04.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:04.000000000 -0600
+++ out	2017-12-21 22:53:04.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:04.000000000 -0600
+++ out	2017-12-21 22:53:05.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:05.000000000 -0600
+++ out	2017-12-21 22:53:07.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:07.000000000 -0600
+++ out	2017-12-21 22:53:10.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:10.000000000 -0600
+++ out	2017-12-21 22:53:10.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:10.000000000 -0600
+++ out	2017-12-21 22:53:10.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:10.000000000 -0600
+++ out	2017-12-21 22:53:11.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:11.000000000 -0600
+++ out	2017-12-21 22:53:12.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:12.000000000 -0600
+++ out	2017-12-21 22:53:13.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
--- exp	2017-12-21 22:53:13.000000000 -0600
+++ out	2017-12-21 22:53:17.000000000 -0600
@@ -1 +1,2 @@
  1
+ 2
FAIL tests/misc/stdbuf.sh (exit status: 1)


FAIL: tests/install/basic-1
===========================

ginstall: cannot create directory 'rel': Permission denied
FAIL tests/install/basic-1.sh (exit status: 1)


FAIL: tests/mkdir/p-3
=====================

mkdir: cannot create directory 'a': Permission denied
mkdir: cannot create directory 'd': Permission denied
FAIL tests/mkdir/p-3.sh (exit status: 1)


FAIL: tests/touch/trailing-slash
================================

touch: setting times of 'no-file/': No such file or directory
touch: setting times of 'dangling/': No such file or directory
touch: setting times of 'loop/': Too many levels of symbolic links
touch: setting times of 'loop/': Too many levels of symbolic links
FAIL tests/touch/trailing-slash.sh (exit status: 1)


Attachment: aix72-64bit-short.log.gz
Description: application/gzip

Reply via email to