[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Sat Mar 23 02:45:34 PDT 2013

On Sat, Mar 23, 2013 at 1:47 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> Grass.make hard-codes:
>         # lexical analyzer and default options
>         LFLAGS      = -s
> We should remove that flag.
> r55504 removes the -s from LFLAGS and adds error rules to sqlp.l and
> mapcalc.l.

I fetched the latest SVN version , now compilation goes on properly (after
having locally patched lib/gis/plot.c for the nearest() name collision).

"sqlp.yy.c" 2732 lines, 69277 characters
# include <stdio.h>
# include <stddef.h>
# include <locale.h>
# include <stdlib.h>
# define U(x) ((x)&0377)
# define NCH 4096
# define NLSTATE yyprevious=YYNEWLINE
# define BEGIN yybgin = yysvec + 1 +
# define INITIAL 0
# define YYLERR yysvec
# define YYSTATE (yyestate-yysvec-1)
# define YYOPTIM 1
# define YYLMAX 2000

This looks now fine, thanks for the flag cleanup.

The rest of the compilation fails due to the outdated and hence incomplete
Python installation on the AIX cluster I am testing on:

if [ "sql" != "" -a -f "sql".html ] ; then make html ; fi
make[1]: Entering directory
Traceback (most recent call last):
  File "/afs/cluster/myuser/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/tools/g.html2man.py",
line 4, in ?
    from html import HTMLParser, HTMLParseError
  File "/afs/cluster/myuser/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/tools/html.py",
line 13, in ?
    single = frozenset(single)
NameError: name 'frozenset' is not defined
make[1]: *** [/afs/cluster/myuser/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/docs/man/man1/sql.1]
Error 1
make[1]: Leaving directory
make: *** [lib] Error 2

Python 2.3.4 (#1, Aug  9 2005, 15:34:25) [C] on aix5

There is probably not much we can do about it since this Python version is
far from the minimum requirements.

However, I think that this exercise is done since we cannot gain more
on AIX 5.3. I hope that the code is AIX 7 ready at this point.

I have documented the compilation steps here:

-> AIX compilation hints
   (configuration scripts for wget, PROJ4, GDAL, GRASS 6, and GRASS 7)

-> GRASS 7: Using the IBM xlc compiler
-> GRASS 7: Using the GNU gcc compiler

Ivan, could you please update from GRASS 7 SVN and try again?


More information about the grass-dev mailing list