Skip to content
Prev 51417 / 63424 Next

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

On 04-Jan-16 15:52, Simon Urbanek wrote:
I would have to install another system and install perzl iconv - 
however, I assume that it also sits in /usr/lib (and/or has a symbolic 
link to it). I have mine installed in /opt/lib - so the default shared 
libraries look like:

cran at x065:[/home/cran/64/R]ldd /home/cran/64/R/bin/exec/R
/home/cran/64/R/bin/exec/R needs:
          /usr/lib/libc.a(shr_64.o)
          /usr/lib/libpthread.a(shr_xpg5_64.o)
          /opt/lib/libintl.a(libintl.so.8)
          /opt/lib/libiconv.a(libiconv.so.2)
          /unix
          /usr/lib/libcrypt.a(shr_64.o)
          /usr/lib/libpthread.a(shr_xpg5.o)
          /usr/lib/libc.a(shr.o)
          /usr/lib/libpthreads.a(shr_comm.o)
          /usr/lib/libcrypt.a(shr.o)

I have tested with adding my (gnu iconv) to the /usr/lib archive, as the 
search does seem to get corrupted.
For testing purposes I have added the 64-bit member to my 32-bit 
packaging - rather than a seperate archive in /opt/lib64

cran at x065:[/home/cran/64/R]ar -X32_64 -tv /opt/lib/libiconv.a
rwxr-xr-x     0/0     1010404 Nov 27 17:28 2014 libiconv.so.2
rwxr-xr-x     0/0     111901 Nov 27 17:28 2014 shr4.o
rwxr-xr-x     0/0     112151 Nov 27 17:28 2014 shr.o
rwxr-xr-x     0/0     1035470 Dec  3 15:11 2015 libiconv.so.2

I did something similiar to this for all the dependencies earlier when I 
was working with R-devel branch. When the build is finishing I will 
workout how to install both into a single archive (the hard part is a 
clean uninstall afterwards, and harder is managing an update. So, 
ideally, I will go to having one package with both 32 and 64 bit members.)
What is the built-in level - do not know off the top of my head. Perzl 
is 5.0.7 and I have been using 5.0.8 (when working with R-devel).
Then I suspect the duplicate warnings have to do with how the m4 macros 
are processing the gcc -v flags (actually, the gfortran -v flags). 
Adding full path to libgcc.a and including -bexpall causes symbols to be 
imported and reexported - hence duplicate.

Another reason for me to get xlfortran installed and "test" against that 
as well.
I would be happy to sponsor that - either on my forums 
(http://forums.rootvg.net/aixtools/r-for-aix/) or I can look into how I 
create a userid for you on my aixtools wiki. I started something in 
November 
http://www.aixtools.net/index.php/Projects#%22Work%20in%20Progress%22, 
but basically, am waiting for better results before dedicating a page to 
R. In short, I would prefer the forums - as anyone could join the 
discussion without any intervention from me.
I claim no expertise. My observation is that UTF-XX seems to be 16-bit. 
I say seems, because there may be a multi-byte requirement that does not 
fit in 16-bits and then a larger size is appropriate. From my 
perspective (as a porter) it is easier to identify inconsistency when 
typedef definitions are not directly related to short, int or long. In 
binary it may not make any difference as far as sizeof() is concerned. I 
just hope for improved legibility.

I am not "r-project" - and my assumption is that "r-project" does the 
commits. My contribution is merely my opinion. What you decide is what 
counts - not my opinion.
You lost me here. I am aware that AIX has a very different set of 
include files that tre is not using. My perspective is that R is 
ignoring/overrulling any IBM/AIX wchar processing. See my "not an 
expert" defense above.

Mainly - I am happy that "make sysdata" is working.

p.s. I shall make a new entry on my forums re: where I am at now re:
Warning in solve.default(rgb) :
   unable to load shared object '/home/cran/64/R/modules//lapack.so':
   rtld: 0712-001 Symbol __powidf2 was referenced
       from module /home/cran/64/R/lib/libRlapack.so(), but a runtime 
definition
             of the symbol was not found.
rtld: 0712-001 Symbol _gfortran_pow_i4_i4 was referenced
       from module /home/cran/64/R/lib/libRlapack.so(), but a runtime 
definition
             of the symbol was not found.
rtld: 0712-001 Symbol 
_gfortran_compare_string/home/cran/64/R/lib/libRlapack.so was referenced
       from module /home/cran/64/R/lib/libRlapack.so(), but a runtime 
definition
             of the symbol was not found.
rtld: 0712-001 Symbol _gfortran_concat_string was referenced
       from module /home/cran/64/R/lib/libRlapack.so(), but a runtime 
definition
             of the symbol was not found.
rtld: 0712-002 fatal error: exiting.
Error in solve.default(rgb) : LAPACK routines cannot be loaded
Error: unable to load R code in package 'grDevices'

Thread (13 messages)

Simon Urbanek R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 1 Simon Urbanek R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 1 Peter Dalgaard R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 1 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 3 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 3 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 3 Simon Urbanek R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 3 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 3 Simon Urbanek R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 4 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 4 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 4 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 4 Michael Felt R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!" Jan 5