From aixtools at gmail.com  Tue Dec 29 11:02:51 2015
From: aixtools at gmail.com (Michael Felt)
Date: Tue, 29 Dec 2015 11:02:51 +0100
Subject: [Rd] R,
 AIX 64-bit builds - trying to understand root cause for message:
 "Error: Line starting 'Package: tools ...' is malformed!"
Message-ID: <56825A4B.7010508@gmail.com>

This seems to be a problem that goes back a long time - and I hope 
someone who understands what tre is suppossed to be doing will look at this.

A short history of other people who have reported on this on different 
versions of AIX. I shall only add that I get the same results on AIX 5.3 
TL7, AIX 6.1 TL9 and AIX 7.1 TL3.

Basically, with settings that work for AIX and 32-bit - the only changes 
being
-maix32 becomes -maix64
and
export OBJECT_MODE=32 becomes export OBJECT_MODE=64

Then to shorten the 'make' bla bla, first run just make, then

cd src/library/tools
make -s sysdata

http://article.gmane.org/gmane.comp.lang.r.devel/38817/match=package+tools+malformed
http://article.gmane.org/gmane.comp.lang.r.devel/36886/match=package+tools+malformed
http://article.gmane.org/gmane.comp.lang.r.devel/23372/match=package+tools+malformed 
Date: 2010-01-25 06:55:41 GMT (5 years, 48 weeks, 1 day, 20 hours and 30 
minutes ago)

To that, to get debug data, I have

* added -DTRE_DUGUG to src/extra/tre/Makefile # ALL_CFLAGS = 
$(ALL_CFLAGS_LO) -DTRE_DEBUG
* rm src/extra/tre/tre-match-parallel.o
* find . -name \*.so -exec rm {} \;
* make
* cd src/library/tools
* make -s sysdata

Attached are the two script files of the screen output. The 32-bit one 
is more verbose - and contains magically lines such as:
    found match 3037fd14 (while "found" does not occur in the 64-bit output)

root at x069:[/data/prj/cran/64/R-aix-3.2.3/src/library/tools]wc 
/tmp/sysdata.??.*
      4730   14123  139916 /tmp/sysdata.32.text
      1312    3688   40528 /tmp/sysdata.64.text
      6042   17811  180444 total

root at x069:[/data/prj/cran/64/R-aix-3.2.3/src/library/tools]grep -c found 
/tmp/sysdata.??.*
/tmp/sysdata.32.text:19
/tmp/sysdata.64.text:0


Hope this brings us (or me), closer to a resolution to an old concern.

And, best wishes for the new year!

Michael




[Rd] R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
Michael Felt