[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Fri Mar 22 11:54:33 PDT 2013


On Fri, Mar 22, 2013 at 7:01 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>
>> /afs/cluster/myuser/private/software/grass-7.0.svn/lib/db/sqlp> make
>> sqlp.yy.c:1: error: expected identifier or '(' before numeric constant
>
> You'll need to post your sqlp.yy.c file; it's generated by yacc/bison,
> so there's no guarantee that yours is the same as anyone else's.

OK - file attached: gcc_sqlp.yy.c.gz

> Also: what is the value of YACC in Platform.make? Autoconf prefers
> "bison -y" then "byacc" then "yacc".

grep YACC Platform.make
YACC                = yacc

Unfortunately no bison nor byacc on that machine...

> It's possible that AIX' yacc generates code which requires xlc.

After distclean I have reconfigured and recompiled with xlc but this leads to:

/afs/cluster/myuser/private/software/grass-7.0.svn/lib/db/sqlp> make
xlc_r  -DANSI -I/afs/cluster/software/vni/CTT6.0/include
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
   -DPACKAGE=\""grasslibs"\"
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
-o OBJ.powerpc-ibm-aix5.3.0.0/sqlp.tab.o -c sqlp.tab.c
xlc_r  -DANSI -I/afs/cluster/software/vni/CTT6.0/include
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
   -DPACKAGE=\""grasslibs"\"
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
-I/afs/cluster/myuser/private/software/grass-7.0.svn/dist.powerpc-ibm-aix5.3.0.0/include
-o OBJ.powerpc-ibm-aix5.3.0.0/sqlp.yy.o -c sqlp.yy.c
"sqlp.yy.c", line 1.1: 1506-046 (S) Syntax error.
"sqlp.yy.c", line 1.5: 1506-166 (S) Definition of function Warning
requires parentheses.
"/usr/include/stdio.h", line 161.3: 1506-273 (E) Missing type in
declaration of FILE.
"/usr/include/stdio.h", line 167.8: 1506-166 (S) Definition of
function FILE requires parentheses.
"/usr/include/stdio.h", line 167.17: 1506-276 (S) Syntax error:
possible missing '{'?
"/usr/include/sys/inttypes.h", line 59.9: 1506-045 (S) Undeclared
identifier intmax_t.
"/usr/include/sys/inttypes.h", line 61.3: 1506-273 (E) Missing type in
declaration of imaxdiv_t.
"/usr/include/sys/inttypes.h", line 64.8: 1506-166 (S) Definition of
function intmax_t requires parentheses.
"/usr/include/sys/inttypes.h", line 64.17: 1506-276 (S) Syntax error:
possible missing '{'?
"/usr/include/sys/inttypes.h", line 68.30: 1506-045 (S) Undeclared
identifier __nptr.
"/usr/include/sys/inttypes.h", line 68.38: 1506-045 (S) Undeclared
identifier __endptr.
"/usr/include/sys/inttypes.h", line 68.48: 1506-045 (S) Undeclared
identifier __base.
"/usr/include/sys/inttypes.h", line 89.8: 1506-166 (S) Definition of
function intmax_t requires parentheses.
"/usr/include/sys/inttypes.h", line 89.17: 1506-276 (S) Syntax error:
possible missing '{'?
"/usr/include/sys/types.h", line 330.3: 1506-273 (E) Missing type in
declaration of sigset_t.
"/usr/include/sys/types.h", line 342.9: 1506-046 (S) Syntax error.
"/usr/include/sys/types.h", line 377.9: 1506-046 (S) Syntax error.
"/usr/include/sys/vm_types.h", line 36.9: 1506-166 (S) Definition of
function ulong_t requires parentheses.
"/usr/include/sys/vm_types.h", line 36.25: 1506-276 (S) Syntax error:
possible missing '{'?
"/usr/include/sys/vm_types.h", line 142.9: 1506-045 (S) Undeclared
identifier vmhandle_t.
"/usr/include/sys/vm_types.h", line 143.9: 1506-045 (S) Undeclared
identifier caddr_t.
"/usr/include/sys/vm_types.h", line 148.3: 1506-273 (E) Missing type
in declaration of vmaddr_t.
"/usr/include/sys/vm_types.h", line 158.9: 1506-046 (S) Syntax error.
"/usr/include/sys/vm_types.h", line 250.9: 1506-166 (S) Definition of
function vmhandle_t requires parentheses.
"/usr/include/sys/vm_types.h", line 250.25: 1506-276 (S) Syntax error:
possible missing '{'?
"/usr/include/sys/m_types.h", line 52.27: 1506-275 (S) Unexpected text
iar encountered.
"/usr/include/sys/m_types.h", line 52.9: 1506-045 (S) Undeclared
identifier ulong_t.
"/usr/include/sys/m_types.h", line 53.27: 1506-275 (S) Unexpected text
stack encountered.
"/usr/include/sys/m_types.h", line 54.27: 1506-275 (S) Unexpected text
toc encountered.
"/usr/include/sys/m_types.h", line 55.27: 1506-275 (S) Unexpected text
cr encountered.
"/usr/include/sys/m_types.h", line 56.27: 1506-275 (S) Unexpected text
intpri encountered.
"/usr/include/sys/m_types.h", line 57.27: 1506-277 (S) Syntax error:
possible missing ';' or ','?
"/usr/include/sys/m_types.h", line 67.3: 1506-273 (E) Missing type in
declaration of label_t.
"/usr/include/sys/m_types.h", line 69.9: 1506-166 (S) Definition of
function int32long64_t requires parentheses.
make: *** [OBJ.powerpc-ibm-aix5.3.0.0/sqlp.yy.o] Error 1

However, the resulting files are identical:
diff -u gcc_sqlp.yy.c aix_sqlp.yy.c
-> no difference

Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc_sqlp.yy.c.gz
Type: application/x-gzip
Size: 10330 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130322/bec171fb/attachment-0001.bin>


More information about the grass-dev mailing list