Opened 10 years ago

Closed 10 years ago

#2926 closed defect (fixed)

New bison stuff causing compile errors on debbie

Reported by: robe Owned by: strk
Priority: blocker Milestone: PostGIS 2.2.0
Component: QA/buildbots Version: master
Keywords: Cc:

Description

Getting errors on debbie of form

below. Winnie seems to be okay though.

ibtool: compile:  gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -I/var/lib/jenkins/workspace/geos/rel-3.4.3devw64/include -c lwin_wkt_parse.c  -fPIC -DPIC -o .libs/lwin_wkt_parse.o
lwin_wkt_parse.c:1: error: expected identifier or ‘(’ before ‘<<’ token
lwin_wkt_parse.c:62:1: warning: "YYBISON_VERSION" redefined
lwin_wkt_parse.c:60:1: warning: this is the location of the previous definition
In file included from /usr/include/stdio.h:75,
                 from lwin_wkt_parse.y:5:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:495: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from lwin_wkt_parse.y:5:
:
In file included from lwin_wkt_parse.y:7:
/usr/include/stdlib.h:502: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:751: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:751: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:752: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:756: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:756: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:757: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:834: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:837: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:841: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:845: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:854: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:858: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:865: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’
/usr/include/stdlib.h:868: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’
In file included from liblwgeom_internal.h:31,
                 from lwin_wkt.h:1,
                 from lwin_wkt_parse.y:8:
liblwgeom.h:175: error: expected ‘)’ before ‘size’
liblwgeom.h:176: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:186: error: expected ‘)’ before ‘allocator’
liblwgeom.h:868: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from liblwgeom_internal.h:31,
                 from lwin_wkt.h:1,
                 from lwin_wkt_parse.y:8:
liblwgeom.h:1653: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gbox_serialized_size’
liblwgeom.h:1684: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gserialized_from_lwgeom_size’
liblwgeom.h:1693: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1813: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1820: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1822: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1823: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1830: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1841: warning: type defaults to ‘int’ in declaration of ‘size_t’
liblwgeom.h:1841: error: expected ‘;’, ‘,’ or ‘)’ before ‘wkb_size’
liblwgeom.h:1853: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1855: error: expected declaration specifiers or ‘...’ before ‘size_t’
liblwgeom.h:1866: error: expected ‘)’ before ‘size’
liblwgeom.h:1867: error: expected declaration specifiers or ‘...’ before ‘size_t’
lwin_wkt_parse.y:102: error: expected identifier or ‘(’ before ‘<<’ token
lwin_wkt_parse.c:453:1: error: unterminated #else
lwin_wkt_parse.c:420:1: error: unterminated #if
lwin_wkt_parse.c:419:1: error: unterminated #ifdef
lwin_wkt_parse.c:415:1: error: unterminated #if
make[1]: *** [lwin_wkt_parse.lo] Error 1
make[1]: Leaving directory `/var/lib/jenkins/workspace/postgis/branches/2.2/liblwgeom'
make: *** [all] Error 1

http://debbie.postgis.net:8080/job/PostGIS_Regress/4876/console

This is after the r12950 change that upgraded parser files

Regenerate parser with bison 3.0.2 and flex 2.5.35

FWIW: She is running:

bison (GNU Bison) 2.4.1
flex 2.5.35

Change History (3)

comment:1 by robe, 10 years ago

Owner: changed from pramsey to strk

comment:2 by robe, 10 years ago

Strange winnie is running

bison (GNU Bison) 2.4.2
flex 2.5.35

I think I have winnie set to simulate a clean checkout on regress. So maybe there are some files or something not being cleaned up by make clean. Debbie is just set to do a regular svn update.

I'll try on my pc to see since I just do svn update as well.

comment:3 by robe, 10 years ago

Component: postgisbuildbots
Resolution: fixed
Status: newclosed

seems okay on my pc with a regular svn update. I changed debbie to emulate a clean checkout on each run and that seems to have fixed her issue. So closing this out.

Note: See TracTickets for help on using tickets.