Opened 4 years ago

Closed 9 months ago

Last modified 9 months ago

#4751 closed defect (fixed)

PostGIS 3.1.0 alpha2 build error on PPC64LE

Reported by: devrimgunduz Owned by: pramsey
Priority: low Milestone: PostGIS 3.0.10
Component: postgis Version: master
Keywords: Cc:

Description

Hi,

I'm trying to build 3.1.0 alpha2 on RHEL 7 / ppc64le, and getting the following errors. Can you please take a look?

Thanks!

ar: creating libpgcommon.a
ar: creating libwagyu.la
postgis.sql.in:134:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:351:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:357:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:363:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:369:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:375:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:475:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:646:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:653:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:674:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:688:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:701:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:715:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:728:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:741:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:755:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:768:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:817:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:1167:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:1315:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:2992:0: error: detected recursion whilst expanding macro "bool"
  core_is_extension bool;
 ^
postgis.sql.in:3402:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:3409:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:3502:0: error: detected recursion whilst expanding macro "bool"
  valid bool,
 ^
postgis.sql.in:3742:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis.sql.in:4699:0: error: detected recursion whilst expanding macro "bool"
 CREATE OR REPLACE FUNCTION ST_AsGeoJson(r record, geom_column text DEFAULT '', maxdecimaldigits int4 DEFAULT 9, pretty_bool bool DEFAULT false)
 ^
postgis.sql.in:4858:0: error: detected recursion whilst expanding macro "bool"
 CREATE OR REPLACE FUNCTION ST_AsMVTGeom(geom geometry, bounds box2d, extent int4 default 4096, buffer int4 default 256, clip_geom bool default true)
 ^
In file included from postgis.sql.in:5761:0:
long_xact.sql.in:207:0: error: detected recursion whilst expanding macro "bool"
  exists bool;
 ^
long_xact.sql.in:259:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
In file included from postgis.sql.in:5762:0:
geography.sql.in:53:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
geography.sql.in:210:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
In file included from postgis.sql.in:5762:0:
geography.sql.in:314:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
geography.sql.in:320:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
geography.sql.in:326:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
geography.sql.in:332:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
geography.sql.in:338:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
In file included from postgis.sql.in:6458:0:
postgis_spgist.sql.in:28:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis_spgist.sql.in:144:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis_spgist.sql.in:197:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
postgis_spgist.sql.in:246:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:20:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:74:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:80:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:432:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:438:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:444:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:450:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:456:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:1584:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
legacy.sql.in:1988:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool AS
 ^
ar: creating librtcore.a
rtpostgis.sql.in:2020:0: error: detected recursion whilst expanding macro "pixel"
     -- per band pixel type check
 ^
rtpostgis.sql.in:2048:0: error: detected recursion whilst expanding macro "pixel"
      -- per band pixel type check
 ^
rtpostgis.sql.in:3565:0: error: detected recursion whilst expanding macro "pixel"
   -- max distance from center pixel
 ^
rtpostgis.sql.in:3583:0: error: detected recursion whilst expanding macro "pixel"
   -- center pixel's coordinates
 ^
rtpostgis.sql.in:3602:0: error: detected recursion whilst expanding macro "pixel"
    -- second arg is what to do if center pixel has a value
 ^
rtpostgis.sql.in:3603:0: error: detected recursion whilst expanding macro "pixel"
    -- this will be a weight to apply for the center pixel
 ^
rtpostgis.sql.in:3620:0: error: detected recursion whilst expanding macro "pixel"
   -- center pixel value
 ^
rtpostgis.sql.in:3623:0: error: detected recursion whilst expanding macro "pixel"
   -- check to see if center pixel has value
 ^
rtpostgis.sql.in:3633:0: error: detected recursion whilst expanding macro "pixel"
     -- skip NODATA values and center pixel
 ^
rtpostgis.sql.in:3652:0: error: detected recursion whilst expanding macro "pixel"
    -- center pixel has value
 ^
rtpostgis.sql.in:3671:0: error: detected recursion whilst expanding macro "pixel"
   -- apply weight for center pixel if center pixel has value
 ^
rtpostgis.sql.in:3671:0: error: detected recursion whilst expanding macro "pixel"
rtpostgis.sql.in:3725:0: error: detected recursion whilst expanding macro "pixel"
   -- max distance from center pixel
 ^
rtpostgis.sql.in:3741:0: error: detected recursion whilst expanding macro "pixel"
   -- center pixel's coordinates
 ^
rtpostgis.sql.in:3745:0: error: detected recursion whilst expanding macro "pixel"
   -- center pixel value
 ^
rtpostgis.sql.in:3748:0: error: detected recursion whilst expanding macro "pixel"
   -- check to see if center pixel has value
 ^
rtpostgis.sql.in:3756:0: error: detected recursion whilst expanding macro "pixel"
     -- skip NODATA values and center pixel
 ^
rtpostgis.sql.in:3845:0: error: detected recursion whilst expanding macro "pixel"
   -- check that center pixel isn't NODATA
 ^
rtpostgis.sql.in:3848:0: error: detected recursion whilst expanding macro "pixel"
   -- substitute center pixel for any neighbor pixels that are NODATA
 ^
rtpostgis.sql.in:4014:0: error: detected recursion whilst expanding macro "pixel"
   -- check that center pixel isn't NODATA
 ^
rtpostgis.sql.in:4017:0: error: detected recursion whilst expanding macro "pixel"
   -- substitute center pixel for any neighbor pixels that are NODATA
 ^
rtpostgis.sql.in:4196:0: error: detected recursion whilst expanding macro "pixel"
   -- check that pixel is not edge pixel
 ^
rtpostgis.sql.in:4196:0: error: detected recursion whilst expanding macro "pixel"
rtpostgis.sql.in:4394:0: error: detected recursion whilst expanding macro "pixel"
   -- check that center pixel isn't NODATA
 ^
rtpostgis.sql.in:4397:0: error: detected recursion whilst expanding macro "pixel"
   -- substitute center pixel for any neighbor pixels that are NODATA
 ^
rtpostgis.sql.in:4538:0: error: detected recursion whilst expanding macro "pixel"
   -- check that center pixel isn't NODATA
 ^
rtpostgis.sql.in:4541:0: error: detected recursion whilst expanding macro "pixel"
   -- substitute center pixel for any neighbor pixels that are NODATA
 ^
rtpostgis.sql.in:4676:0: error: detected recursion whilst expanding macro "pixel"
   -- check that center pixel isn't NODATA
 ^
rtpostgis.sql.in:4679:0: error: detected recursion whilst expanding macro "pixel"
   -- substitute center pixel for any neighbor pixels that are NODATA
 ^
rtpostgis.sql.in:5622:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the pixel column and row covering the provided X and Y world
 ^
rtpostgis.sql.in:5637:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the pixel column and row covering the provided point geometry.
 ^
rtpostgis.sql.in:5666:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the column number of the pixel covering the provided X and Y world
 ^
rtpostgis.sql.in:5690:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the column number of the pixel covering the provided point geometry.
 ^
rtpostgis.sql.in:5713:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the row number of the pixel covering the provided X and Y world
 ^
rtpostgis.sql.in:5737:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the row number of the pixel covering the provided point geometry.
 ^
rtpostgis.sql.in:5773:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the longitude and latitude of the upper left corner of the pixel
 ^
rtpostgis.sql.in:5774:0: error: detected recursion whilst expanding macro "pixel"
 -- located at the provided pixel column and row.
 ^
rtpostgis.sql.in:5789:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the X world coordinate of the upper left corner of the pixel located at
 ^
rtpostgis.sql.in:5801:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the X world coordinate of the upper left corner of the pixel located at
 ^
rtpostgis.sql.in:5815:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the Y world coordinate of the upper left corner of the pixel located at
 ^
rtpostgis.sql.in:5827:0: error: detected recursion whilst expanding macro "pixel"
 -- Returns the Y world coordinate of the upper left corner of the pixel located at
 ^
rtpostgis.sql.in:5927:0: error: detected recursion whilst expanding macro "bool"
  RETURNS bool
 ^
rtpostgis.sql.in:5949:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5954:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5959:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5964:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5969:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5974:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5979:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5984:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5989:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5994:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:5999:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:6004:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:6012:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:6018:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:6024:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:6032:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:6038:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:6044:0: error: detected recursion whilst expanding macro "bool"
     RETURNS bool
 ^
rtpostgis.sql.in:9011:0: error: detected recursion whilst expanding macro "pixel"
 -- @param sfx scale factor x (pixel width)
 ^
rtpostgis.sql.in:9012:0: error: detected recursion whilst expanding macro "pixel"
 -- @param sfy scale factor y (pixel height, usually negative)
 ^
rtpostgis_upgrade_cleanup.sql.in:107:0: error: detected recursion whilst expanding macro "bool"
    RETURNS bool
 ^
rtpostgis_upgrade_cleanup.sql.in:130:0: error: detected recursion whilst expanding macro "bool"
      RETURNS bool
 ^
raster2pgsql.c: In function 'process_rasters.constprop.4':
raster2pgsql.c:1954:8: warning: 'hex' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (!hex && !tile_is_nodata)
        ^
raster2pgsql.c:1559:8: note: 'hex' was declared here
  char *hex;
        ^
topology.sql.in:1143:0: error: detected recursion whilst expanding macro "bool"
   ok bool;
 ^
In file included from topology.sql.in:2026:0:
sql/predicates.sql.in:27:0: error: detected recursion whilst expanding macro "bool"
   RETURNS bool
 ^
sql/predicates.sql.in:455:0: error: detected recursion whilst expanding macro "bool"
   RETURNS bool
 ^
In file included from topology.sql.in:2034:0:
sql/populate.sql.in:416:0: error: detected recursion whilst expanding macro "bool"
   right_side bool;
 ^
In file included from topology.sql.in:2048:0:
sql/export/gml.sql.in:79:0: error: detected recursion whilst expanding macro "bool"
   visited bool;
 ^
sql/export/gml.sql.in:172:0: error: detected recursion whilst expanding macro "bool"
   visited bool;
 ^
sql/export/gml.sql.in:277:0: error: detected recursion whilst expanding macro "bool"
   visited bool;
 ^
//usr/lib64/libresolv.so.2: undefined reference to `__resolv_context_get@GLIBC_PRIVATE'
//usr/lib64/libresolv.so.2: undefined reference to `__resolv_context_get_preinit@GLIBC_PRIVATE'
//usr/lib64/libresolv.so.2: undefined reference to `__resolv_context_get_override@GLIBC_PRIVATE'
//usr/lib64/libresolv.so.2: undefined reference to `__resolv_context_put@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status
make[2]: *** [shp2pgsql] Error 1
make[1]: *** [all] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.6ll8xf (%build)
    Bad exit status from /var/tmp/rpm-tmp.6ll8xf (%build)
make: *** [build12] Error 1




Change History (8)

comment:1 by Algunenano, 4 years ago

Looks like the same issue as #4752 but for 3.0.2 vs 3.1 right?

comment:2 by komzpa, 3 years ago

Milestone: PostGIS 3.1.0PostGIS Fund Me

comment:3 by strk, 9 months ago

Resolution: duplicate
Status: newclosed

Refer to #5450 for more info

comment:4 by Sandro Santilli <strk@…>, 9 months ago

In 95d9298/git:

Fix macro expansion recursion on powerpc architectures.

References #5450
References #4751
References #4752

Backport in 3.3 branch (3.3.4dev)

comment:5 by Sandro Santilli <strk@…>, 9 months ago

In d612282/git:

Fix macro expansion recursion on powerpc architectures.

References #5450
References #4751
References #4752

Backport in 3.2 branch (3.2.6dev)

comment:6 by Sandro Santilli <strk@…>, 9 months ago

In 72438b4/git:

Fix macro expansion recursion on powerpc architectures.

References #5450
References #4751
References #4752

Backport in 3.1 branch (3.1.10dev)

comment:7 by Sandro Santilli <strk@…>, 9 months ago

Resolution: duplicatefixed

In 3b71790/git:

Fix macro expansion recursion on powerpc architectures.

Closes #5450
Closes #4751
Closes #4752

Backport in 3.0 branch (3.0.10dev)

comment:8 by robe, 9 months ago

Milestone: PostGIS Fund MePostGIS 3.0.10
Note: See TracTickets for help on using tickets.