[GRASS-dev] GRASS 6.4.svn on AIX based supercomputers

Hi,

I backported the relevant things from trunk, now GRASS 6.4.svn
(upcoming 6.4.4) compiles on AIX powerpc systems, too!

While this is fine:
GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > g.version -r
GRASS 6.4.4svn (2013)
Revision: 50937
Date: 2012-02-25 14:14:51 +0100 (Sat, 25 Feb 2012)

I struggle here (same error as for GRASS 7 on the same system):

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > g.list vect
Could not load program g.list:
        Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
Could not load module libstdc++.a(libstdc++.so.6).
System error: No such file or directory

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > which g.list
/gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/bin/g.list

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > ldd
/gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/bin/g.list
/gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/bin/g.list
needs:
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_vect.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dbmibase.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_gis.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_datetime.6.4.4svn.so
         /usr/lib/libz.a(libz.so.1)
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dbmiclient.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dgl.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dig2.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_rtree.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_linkm.6.4.4svn.so
Cannot find libstdc++.a(libstdc++.so.6)
         /usr/lib/libdl.a(shr_64.o)
         /usr/lib/libiconv.a(libiconv.so.2)
ar: 0707-109 Member name libiconv.so.2 does not exist.
dump: /tmp/tmpdir4325472/extract/libiconv.so.2: 0654-106 Cannot open
the specified file.
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_g3d.6.4.4svn.so
         /usr/lib/libc.a(shr_64.o)
Cannot find libstdc++.a(libstdc++.so.6)
Cannot find libgcc_s.a(shr.o)
         /usr/lib/libc.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr_64.o)
         /usr/lib/libcrypt.a(shr.o)

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > ls -la
/opt/freeware/lib64/ | grep std

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > ls -la
/opt/freeware/lib/ | grep std
lrwxrwxrwx 1 root system 44 Aug 27 19:24 libstdc++.a
-> gcc/powerpc-ibm-aix7.1.0.0/4.6.1/libstdc++.a

Any pointers?

thanks
Markus

Have you included -R,/opt/freeware/lib in LDFLAGS? If not, you
probably should. See also GRASS wiki [0], there the entry for AIX 7.x.

Markus M

[0] http://grasswiki.osgeo.org/wiki/Compile_and_Install#AIX

On Mon, Sep 30, 2013 at 9:35 PM, Markus Neteler <neteler@osgeo.org> wrote:

Hi,

I backported the relevant things from trunk, now GRASS 6.4.svn
(upcoming 6.4.4) compiles on AIX powerpc systems, too!

While this is fine:
GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > g.version -r
GRASS 6.4.4svn (2013)
Revision: 50937
Date: 2012-02-25 14:14:51 +0100 (Sat, 25 Feb 2012)

I struggle here (same error as for GRASS 7 on the same system):

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > g.list vect
Could not load program g.list:
        Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
Could not load module libstdc++.a(libstdc++.so.6).
System error: No such file or directory

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > which g.list
/gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/bin/g.list

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > ldd
/gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/bin/g.list
/gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/bin/g.list
needs:
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_vect.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dbmibase.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_gis.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_datetime.6.4.4svn.so
         /usr/lib/libz.a(libz.so.1)
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dbmiclient.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dgl.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_dig2.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_rtree.6.4.4svn.so
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_linkm.6.4.4svn.so
Cannot find libstdc++.a(libstdc++.so.6)
         /usr/lib/libdl.a(shr_64.o)
         /usr/lib/libiconv.a(libiconv.so.2)
ar: 0707-109 Member name libiconv.so.2 does not exist.
dump: /tmp/tmpdir4325472/extract/libiconv.so.2: 0654-106 Cannot open
the specified file.
         /gpfs/home/neteler/software/grass-6.4.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_g3d.6.4.4svn.so
         /usr/lib/libc.a(shr_64.o)
Cannot find libstdc++.a(libstdc++.so.6)
Cannot find libgcc_s.a(shr.o)
         /usr/lib/libc.a(shr.o)
         /unix
         /usr/lib/libcrypt.a(shr_64.o)
         /usr/lib/libcrypt.a(shr.o)

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > ls -la
/opt/freeware/lib64/ | grep std

GRASS 6.4.4svn (patUTM32):~/software/grass-6.4.svn > ls -la
/opt/freeware/lib/ | grep std
lrwxrwxrwx 1 root system 44 Aug 27 19:24 libstdc++.a
-> gcc/powerpc-ibm-aix7.1.0.0/4.6.1/libstdc++.a

Any pointers?

thanks
Markus
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Tue, Oct 1, 2013 at 9:20 AM, Markus Metz
<markus.metz.giswork@gmail.com> wrote:

Have you included -R,/opt/freeware/lib in LDFLAGS? If not, you
probably should.

In that case (I added
-Wl,-bsvr4,-R,/opt/freeware/lib
) it happily segfaults:

configure:775: checking for gcc
configure:879: checking whether the C compiler (gcc -maix64 -maix64
-Wl,-bbigtoc -Wl,-bsvr4,-R,/opt/freeware/lib64
-Wl,-bsvr4,-R,/opt/freeware/lib -L/opt/freeware/lib64) works
configure:895: gcc -o conftest -maix64 -maix64 -I/opt/freeware/include
-maix64 -Wl,-bbigtoc -Wl,-bsvr4,-R,/opt/freeware/lib64
-Wl,-bsvr4,-R,/opt/freeware/lib -L/opt/freeware/lib64 conftest.c 1>&5
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
configure: failed program was:

#line 890 "configure"
#include "confdefs.h"

main(){return(0);}
-bash-3.2$

"Guessing" gcc on AIX parameters remains to be tricky.

markusN