[package - 122powerpc64-quarterly][databases/libpg_query] Failed for libpg_query-10.1.0.4 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 26 Jun 2021 02:38:26 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     mfechner@FreeBSD.org
Log URL:        http://foul1.nyi.freebsd.org/data/122powerpc64-quarterly/67383f941ca2/logs/libpg_query-10.1.0.4.log
Build URL:      http://foul1.nyi.freebsd.org/build.html?mastername=122powerpc64-quarterly&build=67383f941ca2
Log:

=>> Building databases/libpg_query
build started at Sat Jun 26 02:37:08 UTC 2021
port directory: /usr/ports/databases/libpg_query
package name: libpg_query-10.1.0.4
building for: FreeBSD 122powerpc64-quarterly-job-10 12.2-RELEASE FreeBSD 12.2-RELEASE powerpc
maintained by: mfechner@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-8-gaf08dbda
Host OSVERSION: 1400008
Jail OSVERSION: 1202000
Job Id: 10

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1202000
UNAME_v=FreeBSD 12.2-RELEASE
UNAME_r=12.2-RELEASE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-8-gaf08dbda
MASTERMNT=/usr/local/poudriere/data/.m/122powerpc64-quarterly/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/122powerpc64-quarterly/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=122powerpc64-quarterly
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/122powerpc64-quarterly/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
mfechner@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake XDG_DATA_HOME=/wrkdirs/usr/ports/databases/libpg_query/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/libpg_query/work  HOME=/wrkdirs/usr/ports/databases/libpg_query/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/libpg_query/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/databases/libpg_query/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/databases/libpg_query/work  HOME=/wrkdirs/usr/ports/databases/libpg_query/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/databases/libpg_query/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar" AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt" GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm" OBJCOPY="/usr/local/bin/objcopy" OBJDUMP="/usr/local/bin/objdump" RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf" SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" PREFIX=/usr/local  LOCALBASE=/usr/local  CC="gcc10" CFLAGS="-O2 -pipe  -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing "  CPP="cpp10" CPPFLAGS="-I/usr/local/include"  LDFLAGS=" -L/usr/local/lib -
 fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -L/usr/local/lib/gcc10 " LIBS=""  CXX="g++10" CXXFLAGS="-O2 -pipe  -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10  -Wl,-rpath=/usr/local/lib/gcc10 "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
OSREL=12.2 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/libpg_query"  EXAMPLESDIR="share/examples/libpg_query"  DATADIR="share/libpg_query"  WWWDIR="www/libpg_query"  ETCDIR="etc/libpg_query"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/libpg_query DOCSDIR=/usr/local/share/doc/libpg_query EXAMPLESDIR=/usr/local/share/examples/libpg_query  WWWDIR=/usr/local/www/libpg_query ETCDIR=/usr/local/etc/libpg_query
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=cc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=Using built-in specs. Target: powerpc64-undermydesk-freebsd Configured with: FreeBSD/powerpc64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD] "/usr/bin/ld" "--eh-frame-hdr" "-Qy" "-melf64ppc_fbsd" "--enable-new-dtags" "-dynamic-linker" "/libexec/ld-elf.so.1" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "-L/usr/lib" "/dev/null" "-lstdc++" "-lm" "-lgcc_s" "-lgcc" "-lc" "-lgcc_s" "-lgcc" "/usr/lib/crtsavres.o" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=cc1: error: unrecognized command line option "-std=c11"
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=cc1: error: unrecognized command line option "-std=gnu11"
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=cc1plus: error: unrecognized command line option "-std=c++0x"
CC_OUTPUT_921dbbb2_f00456e5=cc1plus: error: unrecognized command line option "-std=c++11"
CC_OUTPUT_921dbbb2_65ad290d=cc1plus: error: unrecognized command line option "-std=c++14"
CC_OUTPUT_921dbbb2_f2776b26=cc1plus: error: unrecognized command line option "-std=c++17"
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=cc1plus: error: unrecognized command line option "-std=gnu++11"
CC_OUTPUT_921dbbb2_160933ec=cc1plus: error: unrecognized command line option "-std=gnu++14"
CC_OUTPUT_921dbbb2_fb62803b=cc1plus: error: unrecognized command line option "-std=gnu++17"
_OBJC_CCVERSION_921dbbb2=cc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=powerpc64
PPC_ABI=ELFv1
OPSYS=FreeBSD
_OSRELEASE=12.2-RELEASE
OSREL=12.2
OSVERSION=1202000
PYTHONBASE=/usr/local
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License BSD3CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   libpg_query-10.1.0.4 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.16.3.txz
[122powerpc64-quarterly-job-10] Installing pkg-1.16.3...
[122powerpc64-quarterly-job-10] Extracting pkg-1.16.3: .......... done
===>   libpg_query-10.1.0.4 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of libpg_query-10.1.0.4
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by libpg_query-10.1.0.4 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by libpg_query-10.1.0.4 for building
=> SHA256 Checksum OK for lfittl-libpg_query-10-1.0.4_GH0.tar.gz.
=> SHA256 Checksum OK for 820f5294f92927d6c4f61722bb28cf380942b83c.patch.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by libpg_query-10.1.0.4 for building
===>  Extracting for libpg_query-10.1.0.4
=> SHA256 Checksum OK for lfittl-libpg_query-10-1.0.4_GH0.tar.gz.
=> SHA256 Checksum OK for 820f5294f92927d6c4f61722bb28cf380942b83c.patch.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for libpg_query-10.1.0.4
===>  Applying distribution patches for libpg_query-10.1.0.4
===========================================================================
=======================<phase: build-depends  >============================
===>   libpg_query-10.1.0.4 depends on package: gmake>=4.3 - not found
===>   Installing existing package /packages/All/gmake-4.3_2.txz
[122powerpc64-quarterly-job-10] Installing gmake-4.3_2...
[122powerpc64-quarterly-job-10] `-- Installing gettext-runtime-0.21...
[122powerpc64-quarterly-job-10] |   `-- Installing indexinfo-0.3.1...
[122powerpc64-quarterly-job-10] |   `-- Extracting indexinfo-0.3.1: .... done
[122powerpc64-quarterly-job-10] `-- Extracting gettext-runtime-0.21: .......... done
[122powerpc64-quarterly-job-10] Extracting gmake-4.3_2: .......... done
===>   libpg_query-10.1.0.4 depends on package: gmake>=4.3 - found
===>   Returning to build of libpg_query-10.1.0.4
===>   libpg_query-10.1.0.4 depends on executable: gcc10 - not found
===>   Installing existing package /packages/All/gcc10-10.2.0_1.txz
[122powerpc64-quarterly-job-10] Installing gcc10-10.2.0_1...
[122powerpc64-quarterly-job-10] `-- Installing binutils-2.33.1_4,1...
[122powerpc64-quarterly-job-10] `-- Extracting binutils-2.33.1_4,1: .......... done
[122powerpc64-quarterly-job-10] `-- Installing gcc9-9.3.0_3...
[122powerpc64-quarterly-job-10] |   `-- Installing gmp-6.2.1...
[122powerpc64-quarterly-job-10] |   `-- Extracting gmp-6.2.1: .......... done
[122powerpc64-quarterly-job-10] |   `-- Installing mpc-1.2.0...
[122powerpc64-quarterly-job-10] |   | `-- Installing mpfr-4.1.0...
[122powerpc64-quarterly-job-10] |   | `-- Extracting mpfr-4.1.0: .......... done
[122powerpc64-quarterly-job-10] |   `-- Extracting mpc-1.2.0: ......... done
[122powerpc64-quarterly-job-10] `-- Extracting gcc9-9.3.0_3: .......... done
[122powerpc64-quarterly-job-10] Extracting gcc10-10.2.0_1: .......... done
=====
Message from gcc9-9.3.0_3:

--
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using

  -Wl,-rpath=/usr/local/lib/gcc9

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
=====
Message from gcc10-10.2.0_1:

--
To ensure binaries built with this toolchain find appropriate versions
of the necessary run-time libraries, you may want to link using

  -Wl,-rpath=/usr/local/lib/gcc10

For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
transparently.
===>   libpg_query-10.1.0.4 depends on executable: gcc10 - found
===>   Returning to build of libpg_query-10.1.0.4
===>   libpg_query-10.1.0.4 depends on file: /usr/local/bin/as - found
===========================================================================
=======================<phase: lib-depends    >============================
===>   libpg_query-10.1.0.4 depends on shared library: libpq.so.5 - not found
===>   Installing existing package /packages/All/postgresql12-client-12.7.txz
[122powerpc64-quarterly-job-10] Installing postgresql12-client-12.7...
[122powerpc64-quarterly-job-10] `-- Installing readline-8.1.0...
[122powerpc64-quarterly-job-10] `-- Extracting readline-8.1.0: .......... done
[122powerpc64-quarterly-job-10] Extracting postgresql12-client-12.7: .......... done
=====
Message from postgresql12-client-12.7:

--
The PostgreSQL port has a collection of "side orders":

postgresql-docs
  For all of the html documentation

p5-Pg
  A perl5 API for client access to PostgreSQL databases.

postgresql-tcltk 
  If you want tcl/tk client support.

postgresql-jdbc
  For Java JDBC support.

postgresql-odbc
  For client access from unix applications using ODBC as access
  method. Not needed to access unix PostgreSQL servers from Win32
  using ODBC. See below.

ruby-postgres, py-psycopg2
  For client access to PostgreSQL databases using the ruby & python
  languages.

postgresql-plperl, postgresql-pltcl & postgresql-plruby
  For using perl5, tcl & ruby as procedural languages.

postgresql-contrib
  Lots of contributed utilities, postgresql functions and
  datatypes. There you find pg_standby, pgcrypto and many other cool
  things.

etc...
===>   libpg_query-10.1.0.4 depends on shared library: libpq.so.5 - found (/usr/local/lib/libpq.so.5)
===>   Returning to build of libpg_query-10.1.0.4
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for libpg_query-10.1.0.4
===========================================================================
=======================<phase: build          >============================
===>  Building for libpg_query-10.1.0.4
gmake[1]: Entering directory '/wrkdirs/usr/ports/databases/libpg_query/work/libpg_query-10-1.0.4'
compiling src/pg_query_fingerprint.c
compiling src/pg_query.c
compiling src/pg_query_json.c
compiling src/pg_query_json_plpgsql.c
compiling src/pg_query_normalize.c
compiling src/pg_query_parse.c
compiling src/pg_query_parse_plpgsql.c
compiling src/postgres/contrib_pgcrypto_sha1.c
compiling src/postgres/src_backend_catalog_namespace.c
compiling src/postgres/src_backend_catalog_pg_proc.c
compiling src/postgres/src_backend_lib_stringinfo.c
compiling src/postgres/src_backend_libpq_pqcomm.c
compiling src/postgres/src_backend_nodes_bitmapset.c
compiling src/postgres/src_backend_nodes_copyfuncs.c
compiling src/postgres/src_backend_nodes_equalfuncs.c
compiling src/postgres/src_backend_nodes_extensible.c
compiling src/postgres/src_backend_nodes_list.c
compiling src/postgres/src_backend_nodes_makefuncs.c
compiling src/postgres/src_backend_nodes_nodeFuncs.c
compiling src/postgres/src_backend_nodes_value.c
compiling src/postgres/src_backend_parser_gram.c
compiling src/postgres/src_backend_parser_parse_expr.c
compiling src/postgres/src_backend_parser_parser.c
compiling src/postgres/src_backend_parser_scan.c
compiling src/postgres/src_backend_parser_scansup.c
compiling src/postgres/src_backend_postmaster_postmaster.c
compiling src/postgres/src_backend_storage_ipc_ipc.c
compiling src/postgres/src_backend_storage_lmgr_s_lock.c
compiling src/postgres/src_backend_tcop_postgres.c
compiling src/postgres/src_backend_utils_adt_datum.c
compiling src/postgres/src_backend_utils_adt_expandeddatum.c
compiling src/postgres/src_backend_utils_adt_format_type.c
compiling src/postgres/src_backend_utils_adt_ruleutils.c
compiling src/postgres/src_backend_utils_error_assert.c
compiling src/postgres/src_backend_utils_error_elog.c
compiling src/postgres/src_backend_utils_hash_dynahash.c
compiling src/postgres/src_backend_utils_init_globals.c
compiling src/postgres/src_backend_utils_mb_encnames.c
compiling src/postgres/src_backend_utils_mb_mbutils.c
compiling src/postgres/src_backend_utils_mb_wchar.c
compiling src/postgres/src_backend_utils_misc_guc.c
compiling src/postgres/src_backend_utils_mmgr_aset.c
compiling src/postgres/src_backend_utils_mmgr_mcxt.c
compiling src/postgres/src_common_keywords.c
compiling src/postgres/src_common_psprintf.c
compiling src/postgres/src_pl_plpgsql_src_pl_comp.c
compiling src/postgres/src_pl_plpgsql_src_pl_funcs.c
compiling src/postgres/src_pl_plpgsql_src_pl_gram.c
compiling src/postgres/src_pl_plpgsql_src_pl_handler.c
compiling src/postgres/src_pl_plpgsql_src_pl_scanner.c
compiling src/postgres/src_port_erand48.c
compiling src/postgres/src_port_pgsleep.c
compiling src/postgres/src_port_qsort.c
compiling src/postgres/src_port_random.c
ar: warning: creating libpg_query.a
gcc10 -I. -o examples/simple -g examples/simple.c libpg_query.a
gcc10 -I. -o examples/normalize -g examples/normalize.c libpg_query.a
gcc10 -I. -o examples/simple_error -g examples/simple_error.c libpg_query.a
gcc10 -I. -o examples/normalize_error -g examples/normalize_error.c libpg_query.a
gcc10 -I. -o examples/simple_plpgsql -g examples/simple_plpgsql.c libpg_query.a
gcc10 -I. -Isrc -o test/complex -g test/complex.c libpg_query.a
gcc10 -I. -o test/concurrency -pthread -g test/concurrency.c libpg_query.a
gcc10 -I. -Isrc -o test/fingerprint -g test/fingerprint.c libpg_query.a
gcc10 -I. -Isrc -o test/normalize -g test/normalize.c libpg_query.a
gcc10 -I. -o test/parse -g test/parse.c libpg_query.a
gcc10 -I. -o test/parse_plpgsql -I./src -I./src/postgres/include -g test/parse_plpgsql.c libpg_query.a
examples/simple
[{"RawStmt": {"stmt": {"SelectStmt": {"targetList": [{"ResTarget": {"val": {"A_Const": {"val": {"Integer": {"ival": 1}}, "location": 7}}, "location": 7}}], "op": 0}}}}]
[{"RawStmt": {"stmt": {"SelectStmt": {"targetList": [{"ResTarget": {"val": {"ColumnRef": {"fields": [{"A_Star": {}}], "location": 7}}, "location": 7}}], "fromClause": [{"RangeVar": {"relname": "x", "inh": true, "relpersistence": "p", "location": 14}}], "whereClause": {"A_Expr": {"kind": 0, "name": [{"String": {"str": "="}}], "lexpr": {"ColumnRef": {"fields": [{"String": {"str": "z"}}], "location": 22}}, "rexpr": {"A_Const": {"val": {"Integer": {"ival": 2}}, "location": 26}}, "location": 24}}, "op": 0}}}}]
[{"RawStmt": {"stmt": {"SelectStmt": {"targetList": [{"ResTarget": {"val": {"A_Const": {"val": {"Float": {"str": "5.41414"}}, "location": 7}}, "location": 7}}], "op": 0}}}}]
[{"RawStmt": {"stmt": {"SelectStmt": {"targetList": [{"ResTarget": {"val": {"ParamRef": {"number": 1, "location": 7}}, "location": 7}}], "op": 0}}}}]
[{"RawStmt": {"stmt": {"SelectStmt": {"targetList": [{"ResTarget": {"val": {"ParamRef": {"location": 7}}, "location": 7}}], "op": 0}}}}]
[{"RawStmt": {"stmt": {"SelectStmt": {"targetList": [{"ResTarget": {"val": {"A_Expr": {"kind": 0, "name": [{"String": {"str": "/"}}], "lexpr": {"TypeCast": {"arg": {"A_Const": {"val": {"Float": {"str": "999999999999999999999"}}, "location": 7}}, "typeName": {"TypeName": {"names": [{"String": {"str": "pg_catalog"}}, {"String": {"str": "numeric"}}], "typemod": -1, "location": 30}}, "location": 28}}, "rexpr": {"A_Const": {"val": {"Float": {"str": "1000000000000000000000"}}, "location": 38}}, "location": 37}}, "location": 7}}], "op": 0}}}}]
[{"RawStmt": {"stmt": {"SelectStmt": {"targetList": [{"ResTarget": {"val": {"A_Expr": {"kind": 0, "name": [{"String": {"str": "*"}}], "lexpr": {"A_Const": {"val": {"Float": {"str": "4790999999999999999999999999999999999999999999999999999999999999999999999999999999999999"}}, "location": 7}}, "rexpr": {"A_Const": {"val": {"Float": {"str": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"}}, "location": 98}}, "location": 96}}, "location": 7}}], "op": 0}}}}]
examples/normalize
SELECT $1
examples/simple_error
error: syntax error at or near "FROM" at location 8 (scanner_yyerror in scan.l:1158)
examples/normalize_error
error: unterminated dollar-quoted string at or near "$$$" at location 8 (scan.l:1158)
examples/simple_plpgsql
[
{"PLpgSQL_function": {"datums": [{"PLpgSQL_var": {"refname": "found", "datatype": {"PLpgSQL_type": {"typname": "UNKNOWN"}}}}], "action": {"PLpgSQL_stmt_block": {"lineno": 1, "body": [{"PLpgSQL_stmt_if": {"lineno": 1, "cond": {"PLpgSQL_expr": {"query": "SELECT v_version IS NULL"}}, "then_body": [{"PLpgSQL_stmt_return": {"lineno": 1, "expr": {"PLpgSQL_expr": {"query": "SELECT v_name"}}}}]}}, {"PLpgSQL_stmt_return": {"lineno": 1, "expr": {"PLpgSQL_expr": {"query": "SELECT v_name || '/' || v_version"}}}}]}}}}
]
test/complex
INVALID result, expected: 02b3deb3c387b2d3a61d1b9fec018cb51dc30e47e5
actual: 02486c68c067af04d2d8cea011a4cbf75b96ca5aa0
actual tokens: 
[RawStmt, stmt, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, la
 rg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectS
 tmt, all, true, larg, SelectStmt, all, true,!
  larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, larg, SelectStmt, all, true, op, 1, op, 1, rarg, SelectStmt, op, 1, rarg, SelectStmt, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, target
 List, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectS
 tmt, targetList, ResTarget, op, 1, rarg, Sel!
 ectStmt, !
 targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, S
 electStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op,
  1, rarg, SelectStmt, targetList, ResTarget,!
  op, 1, r!
 arg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarge
 t, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, op, 1, rarg, SelectStmt, targetList, ResTarget, ]
gmake[1]: *** [Makefile:113: test] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/databases/libpg_query/work/libpg_query-10-1.0.4'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/libpg_query