Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support various OS #26

Closed
froque opened this issue Jan 5, 2024 · 1 comment
Closed

Support various OS #26

froque opened this issue Jan 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@froque
Copy link
Member

froque commented Jan 5, 2024

Currently, only linux-x86-64 and linux-aarch64 are supported.

Windows should also be supported, but requires pganalyze/libpg_query#44
Mac OS should also be supported.

@froque froque added the enhancement New feature or request label Jan 5, 2024
@froque
Copy link
Member Author

froque commented Jan 8, 2024

MacOS

docker run -it --rm -e CROSS_TRIPLE=x86_64-apple-darwin multiarch/crossbuild
wget -q https://codeload.github.com/pganalyze/libpg_query/zip/refs/heads/windows-support
unzip windows-support
cd libpg_query-windows-support
make -j build_shared
compiling src/pg_query.c
compiling src/pg_query_split.c
compiling src/pg_query_readfuncs_protobuf.c
compiling src/pg_query_normalize.c
compiling src/pg_query_outfuncs_json.c
compiling src/pg_query_fingerprint.c
compiling src/pg_query_outfuncs_protobuf.c
compiling src/pg_query_json_plpgsql.c
compiling src/pg_query_scan.c
compiling src/pg_query_parse.c
compiling src/postgres_deparse.c
compiling src/pg_query_deparse.c
compiling src/pg_query_parse_plpgsql.c
compiling src/postgres/src_backend_utils_fmgr_fmgr.c
compiling src/postgres/src_backend_parser_gram.c
compiling src/postgres/src_common_kwlookup.c
compiling src/postgres/src_backend_commands_define.c
compiling src/postgres/src_port_snprintf.c
compiling src/postgres/src_backend_utils_adt_datum.c
compiling src/postgres/src_common_stringinfo.c
compiling src/postgres/src_pl_plpgsql_src_pl_handler.c
compiling src/postgres/src_backend_utils_mmgr_alignedalloc.c
compiling src/postgres/src_pl_plpgsql_src_pl_scanner.c
compiling src/postgres/src_backend_utils_adt_numutils.c
compiling src/postgres/src_backend_catalog_pg_proc.c
compiling src/postgres/src_backend_nodes_nodes.c
compiling src/postgres/src_pl_plpgsql_src_pl_gram.c
compiling src/postgres/src_backend_nodes_bitmapset.c
compiling src/postgres/src_backend_catalog_namespace.c
compiling src/postgres/src_backend_nodes_nodeFuncs.c
compiling src/postgres/src_backend_nodes_extensible.c
compiling src/postgres/src_backend_utils_adt_expandeddatum.c
compiling src/postgres/src_backend_nodes_equalfuncs.c
compiling src/postgres/src_backend_utils_adt_ruleutils.c
compiling src/postgres/src_backend_utils_mmgr_aset.c
compiling src/postgres/src_port_pgstrcasecmp.c
compiling src/postgres/src_backend_parser_scan.c
compiling src/postgres/src_backend_nodes_copyfuncs.c
compiling src/postgres/src_pl_plpgsql_src_pl_funcs.c
compiling src/postgres/src_backend_storage_ipc_ipc.c
compiling src/postgres/src_common_wchar.c
compiling src/postgres/src_backend_utils_activity_pgstat_database.c
compiling src/postgres/src_backend_utils_misc_guc_tables.c
compiling src/postgres/src_port_strerror.c
compiling src/postgres/src_backend_parser_parser.c
compiling src/postgres/src_backend_utils_mmgr_slab.c
compiling src/postgres/src_backend_utils_mmgr_mcxt.c
compiling src/postgres/src_backend_utils_mb_mbutils.c
compiling src/postgres/src_backend_utils_init_globals.c
compiling src/postgres/src_backend_utils_adt_format_type.c
compiling src/postgres/src_backend_utils_error_assert.c
compiling src/postgres/src_backend_nodes_value.c
compiling src/postgres/src_backend_utils_error_elog.c
compiling src/postgres/src_backend_tcop_postgres.c
compiling src/postgres/src_backend_parser_scansup.c
compiling src/postgres/src_common_psprintf.c
compiling src/postgres/src_backend_nodes_makefuncs.c
compiling src/postgres/src_common_hashfn.c
compiling src/postgres/src_pl_plpgsql_src_pl_comp.c
compiling src/postgres/src_port_strlcpy.c
compiling src/postgres/src_backend_nodes_list.c
compiling vendor/protobuf-c/protobuf-c.c
compiling vendor/xxhash/xxhash.c
compiling src/postgres/src_port_pg_bitutils.c
compiling protobuf/pg_query.pb-c.c
compiling src/postgres/src_port_qsort.c
compiling src/postgres/src_common_encnames.c
compiling src/postgres/src_common_keywords.c
compiling src/postgres/src_backend_utils_mmgr_generation.c
In file included from src/postgres/src_backend_utils_fmgr_fmgr.c:22:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supportedIn file included from  for the current targetsrc/postgres/src_backend_catalog_pg_proc.c:21:
In file included from ./src/postgres/include/postgres.h
:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not./src/postgres/include/utils/elog.h:486:20:  supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_utils_fmgr_fmgr.c:22:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/pg_query_outfuncs_json.c:3:
In file included from ./src/postgres/include/postgres.h:46:
In file included from src/postgres/src_backend_commands_define.c:39:
In file included from ./src/postgres/include/postgres.h:46:
In file included from ./src/postgres/include/utils/elog.hsrc/pg_query_scan.c:In file included from 2In file included from :
In file included from src/pg_query_internal.h:4:
src/postgres/src_backend_nodes_nodes.cIn file included from :./src/postgres/include/postgres.h25:
./src/postgres/include/utils/elog.hIn file included from ./src/postgres/include/postgres.h::46::
46:
src/postgres/src_backend_utils_adt_datum.c./src/postgres/include/utils/elog.h:In file included from gram.yIn file included from :314:20: error: thread-local storage is not supported for the current target./src/postgres/include/utils/elog.h
:314:20:extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
 error: thread-local storage is./src/postgres/include/utils/elog.h: not supported429: for20: error: thread-local storage is the  not currentsupported  targetfor
 theextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack; current
                   ^ target

extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: ./src/postgres/include/utils/elog.hthread-local :storage 486:is20:  not supportederror:  for the current targetthread-local
 extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
storage                   ^
 is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for In file included from the src/postgres/src_backend_nodes_nodes.c:25:
31451:20: :In file included from ./src/postgres/include/postgres.h:31447:
current:
:src/postgres/src_backend_catalog_pg_proc.cIn file included from :20:./src/postgres/include/postgres.h21 ::
 ./src/postgres/include/utils/palloc.h46:
In file included from ./src/postgres/include/postgres.h:47:
:59:error20: : error: ./src/postgres/include/utils/elog.hthread-local storage:314thread-local storage is not supported :20: is error:  for thenot  currentsupported  target
thread-localextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
 storage                   ^ 
is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^In file included from 
./src/postgres/include/utils/elog.h:429:./src/postgres/include/utils/elog.h20:: 429error: :thread-localtarget20:  storage is not supported forerror : the thread-localcurrent  targetstorage 
is not supported for extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage ./src/postgres/include/utils/elog.h:is not supported486:20./src/postgres/include/utils/palloc.h:59:: 20:error:  thread-local storage is errornot:  thread-local supported forstorage  the iscurrent  targetnot
:46:
In file included from extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;./src/postgres/include/postgres.h
:46                   ^
In file included from src/postgres/src_backend_utils_adt_datum.c:51:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
for  the current fortarget 
the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/pg_query_outfuncs_json.c:3:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/postgres/src_common_stringinfo.c: supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
src/postgres/src_backend_nodes_nodes.c:37:1: error: src/postgres/src_pl_plpgsql_src_pl_funcs.c:62:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: :
./src/postgres/include/utils/elog.h:314:20: thread-local errorstorage: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
In file included from src/postgres/src_backend_utils_fmgr_fmgr.c:28:
In file included from  ./src/postgres/include/executor/functions.h:                   ^17:
In file included from 
./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2:./src/postgres/include/utils/elog.h:429 :20: errorwarning: : implicit declaration of thread-localfunction 'clock_gettime' is invalid isstorage is  not notsupported for  the supportedcurrent  for the current target
target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^

./src/postgres/include/utils/elog.hextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
:486:20                   ^
: error: thread-local storage is not supported for the current thread-localtarget
 storageextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
./src/postgres/include/utils/elog.h:429In file included from src/pg_query_scan.c:2:
 :is not supported 20for the: current target
In file included from src/pg_query_internal.h:4 :
In file included from ./src/postgres/include/postgres.h:47:
error: ./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is __thread Node      *newNodeMacroHolder;not
^ 
supportedIn file included from thread-local  for the  incurrent  targetstorage34:

C99In file included from  ./src/postgres/include/postgres.h :is46:
gram.y[-Wimplicit-function-declaration]:46:
In file included from ./src/postgres/include/postgres.h:
47:
./src/postgres/include/utils/palloc.h        clock_gettime(PG_INSTR_CLOCK, &tmp);:
59:        ^
20: error: thread-local storage  is notnot supported  supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/pg_query.c:2:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429./src/postgres/include/utils/elog.h:314:20: error: for the current target./src/postgres/include/portability/instr_time.h:116:16: error: use extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;of undeclared identifier 'CLOCK_REALTIME'

5 errorIn file included from s generated.
                   ^
errorsrc/pg_query_deparse.c: :2:
In file included from src/pg_query_internal.hthread-local :4:
In file included from ./src/postgres/include/postgres.h:46:
storage./src/postgres/include/utils/elog.h:314 :is20 :not  errorsupported:  thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local./src/postgres/include/utils/elog.hIn file included from :486:20src/pg_query_outfuncs_protobuf.c:: 3:
errorIn file included from : ./src/postgres/include/postgres.h:46        clock_gettime(PG_INSTR_CLOCK, &tmp);
:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expandedextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack; 
                   ^
from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
./src/postgres/include/utils/elog.h:429:20: error: In file included from src/pg_query_parse_plpgsql.c:4thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^

extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/pg_query_json_plpgsql.c:2:
In file included from src/pg_query_json_plpgsql.h:4:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: ./src/postgres/include/utils/elog.h:error:
In file included from : src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:thread-local20:  storage iserror : not supportedthread-local storage is not supported for the current target
In file included from :extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
20: ./src/postgres/include/utils/elog.h:429:20: error: thread-local storage In file included from is not src/pg_query_normalize.csupported for: the current target
2extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:./src/postgres/include/utils/elog.h:486:2046:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage thread-localfor is notstorage supported  isfor  notthe  supportedcurrent  fortarget thread-local486  storage is:
20:  not error: the currentthread-local target storage isextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^

extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486In file included from src/pg_query_normalize.c:2:
:20In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
 error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: errorMakefile:176: recipe for target 'src/postgres/src_backend_nodes_nodes.o' failed
src/postgres/src_backend_utils_misc_guc_tables.c:  the errorcurrent: storagesupported  targetisthread-local 
  storagenotnot supported  for isthe  notcurrent  supportedtarget for
 the current targetextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;

                   ^
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;                   ^

                    ^
for the current target./src/postgres/include/utils/elog.h:429:20: 
error: thread-local storage extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
is not supported                   ^
 for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
In file included from src/pg_query_outfuncs_protobuf.c:3In file included from src/pg_query_parse_plpgsql.c:4:
In file included from src/pg_query_internal.h./src/postgres/include/utils/elog.h::4486::
In file included from ./src/postgres/include/postgres.h20:47:
: ./src/postgres/include/utils/palloc.herrorIn file included from src/postgres/src_pl_plpgsql_src_pl_funcs.c::
In file included from : 59./src/postgres/include/postgres.h:20:thread-local: 47 storage:
:./src/postgres/include/utils/palloc.h:59:2029: error: thread-local storage is: not 62:
In file included from ./src/postgres/include/postgres.h:47:
: : thread-local ./src/postgres/include/utils/palloc.h:errorstorage 59: :is 20:notthread-local supported  for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/pg_query.c:2:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/pg_query_scan.c:2:
In file included from src/pg_query_internal.h:5:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_backend_utils_adt_datum.c:57:
./src/postgres/include/utils/builtins.h:76:20: error: thread-local storage isIn file included from src/pg_query.c:2:
In file included from src/pg_query_internal.h:formake: *** [src/postgres/src_backend_nodes_nodes.o] Error 1
 the  is not supported for supportedthe for  the currentcurrent target target

extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
make: *** Waiting for unfinished jobs....
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
error: thread-local storage  current target
is not supported extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
for the current target
./src/postgres/include/utils/elog.h:extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;429
:20:                    ^error
: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/pg_query_json_plpgsql.c:2:
In file included from src/pg_query_json_plpgsql.h:4:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage 5In file included from :
supported In file included from ./src/postgres/include/postgres.hfor:46:
 storage  error:                    ^is not
 supported In file included from src/pg_query_normalize.c:2:
In file included from src/pg_query_internal.h:5isfor :
the./src/postgres/include/utils/memutils.h:58: 20: error: currentthread-local storage target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_commands_define.c:39:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^In file included from 
src/pg_query_deparse.c:2:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
 ./src/postgres/include/utils/elog.h:429:thethread-local storage isnot current not supported  targetfor 
the current   not supported foris the current target
 not supportedextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^:
20 targetextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;

                   ^
extern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
supported for the currentIn file included from In file included from src/postgres/src_backend_nodes_extensible.c:27:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
5 errors generated.
In file included from src/pg_query_parse.c:2:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
In file included from src/pg_query_deparse.c:2:
In file included from ./src/postgres/include/utils/elog.h:486:20: src/pg_query_internal.h:5:
./src/postgres/include/utils/memutils.h:58:20: error: thread-localerror storage  target
 
is not supported for the currentsrc/postgres/src_backend_utils_mmgr_slab.c: target
87:
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
In file included from ./src/postgres/include/postgres.h:In file included from                    ^
./src/postgres/include/utils/memutils.hsrc/postgres/src_backend_utils_mmgr_aset.c46:66:
In file included from ./src/postgres/include/postgres.h:59:20: error:: 46:
:
./src/postgres/include/utils/elog.h:314:20: error: ./src/postgres/include/utils/elog.h:314:thread-local20:  storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
error                   ^
: thread-local storage is not supported for the current target./src/postgres/include/utils/elog.h:429
:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
for extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;the current targetextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;In file included from src/postgres/src_backend_parser_parser.c:34:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: 
                   ^
src/pg_query_parse_plpgsql.c:4:
In file included from src/pg_query_internal.h:5:
./src/postgres/include/utils/memutils.h:58:20: error: ./src/postgres/include/utils/elog.hthread-local : :thread-local storage is not thread-localstoragesupported429:
  for storage isthe 
not 20supported forextern PGDLLIMPORT __thread MemoryContext TopMemoryContext;  the current
current  targettarget
:
                    ^
error: thread-local storage is not supported for extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;error
extern PGDLLIMPORT __thread MemoryContext ErrorContext;: ./src/postgres/include/utils/elog.hthread-local storage is not supported for the
                   ^
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
Makefile:176: recipe for target 'src/postgres/src_backend_utils_adt_datum.o' failed
make: *** [src/postgres/src_backend_utils_adt_datum.o] Error 1
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/pg_query_parse.c:2:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local                    ^ is not supported storagefor  is not supported for the current targetthe current target

extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^

./src/postgres/include/utils/elog.h:486:20: error: thread-local storage
                   ^
 is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_utils_mmgr_alignedalloc.c:28:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local In file included from src/postgres/src_backend_utils_misc_guc_tables.c:29:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current In file included from the                    ^
src/postgres/src_backend_utils_adt_ruleutils.c:23:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:In file included from src/postgres/src_backend_nodes_copyfuncs.c:2026:
: error: ./src/postgres/include/utils/memutils.h :58:20:thread-local 314:current:In file included from ./src/postgres/include/postgres.hstoragetarget: 46:
In file included from  target ./src/postgres/include/utils/elog.h
:314isIn file included from src/postgres/src_backend_utils_init_globals.c:extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;29:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target

                   ^
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20In file included from : error: thread-local storage is./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
 extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_utils_init_globals.c:29:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
storageIn file included from  is In file included from src/postgres/src_common_psprintf.cnot: In file included from supported26pl_gram.y:
 :In file included from for./src/postgres/include/postgres.h :the46 :
current target./src/postgres/include/utils/elog.h:
314:20: extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
error: thread-local storage is src/postgres/src_backend_nodes_value.cnot supported :for the 25current target
:
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;In file included from ./src/postgres/include/postgres.h
                   ^
In file included from src/postgres/src_backend_utils_mmgr_slab.c::87:
In file included from ./src/postgres/include/postgres.h:47:
In file included from src/pg_query_fingerprint.cIn file included from :src/postgres/src_backend_utils_mmgr_alignedalloc.c:28:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for thecurrent current./src/postgres/include/utils/elog.h  :429target:20
: targeterror: thread-local storageextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext; is not In file included from src/postgres/src_backend_parser_scansup.c:24:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_parser_scansup.c:24:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
src/postgres/src_backend_tcop_postgres.c:33:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20:In file included from In file included from src/postgres/src_backend_nodes_equalfuncs.c:631:
In file included from :./src/postgres/include/postgres.h:46:
src/postgres/src_backend_nodes_extensible.c error./src/postgres/include/utils/elog.h::s314:20:20 error: 
src/pg_query_parse.c : not thread-local storage is notsupported supported for :the current target
2:
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from error: thread-local storagesrc/pg_query_internal.h:5:
 ./src/postgres/include/utils/memutils.h:58:20: is errornot:  supported for the current thread-localtarget storage
 is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;                   ^

                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target./src/postgres/include/utils/elog.h
:429:20: error: extern PGDLLIMPORT __thread MemoryContext ErrorContext;
thread-local                    ^storage
 is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
1646:
In file included from ./src/postgres/include/postgres.h::
46:
./src/postgres/include/utils/elog.h./src/postgres/include/utils/elog.h::314314::2020::  errorerror: : thread-localthread-local  ./src/postgres/include/utils/elog.hstoragestorage:  is486is: 20 notnot:   supportedsupported  forfor  theerrorthe :  currentcurrent  targetthread-localtarget 
storage
 is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;                   ^


                   ^                   ^

In file included from src/pg_query_split.c:2:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current ./src/postgres/include/utils/elog.htarget:429
:20./src/postgres/include/utils/elog.h:: 429:20error::  thread-localerror : storage isthread-local  notstorage  supportedis  extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;fornot
  supportedthe                     ^for
current  thetarget current
 target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: In file included from thread-localsrc/postgres/src_backend_utils_mmgr_mcxt.c :storage 67is:
 In file included from not./src/postgres/include/postgres.h :supported46 :
for the./src/postgres/include/utils/elog.h :current314 :target20:
 error: thread-local storage is not extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;supported
 for                   ^ 
In file included from thesrc/postgres/src_backend_utils_mmgr_aset.c :current66 :
targetIn file included from ./src/postgres/include/postgres.h
:47:
./src/postgres/include/utils/palloc.h:59:20: error: extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;thread-local
 storage                   ^ 
is not ./src/postgres/include/utils/elog.hsupported: 486for: 20the:  current targeterror: 
thread-local storage is not supported for the currentextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext; 
target./src/postgres/include/utils/elog.h./src/postgres/include/utils/elog.h:
:                   ^486
429::2020::  errorerrorextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;: : 
                   ^thread-local
thread-local  storagestorage  isis  notnot  supportedsupported  forfor ./src/postgres/include/utils/elog.h the:the 486current : current20 target:target 

error: thread-local storage isextern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack; extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
not
                    ^supported
                   ^ 
for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from In file included from src/postgres/src_backend_nodes_value.csrc/pg_query_split.c::252:
:
4In file included from src/pg_query_internal.h:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the ./src/postgres/include/utils/palloc.hsupported:
59 :for20 :the
 current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
                   ^
In file included from extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current targetIn file included from src/postgres/src_backend_catalog_pg_proc.c:28:
In file included from ./src/postgres/include/catalog/indexing.h:19:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
src/pg_query_parse.c        ^
In file included from src/postgres/src_backend_nodes_nodeFuncs.c:23:
./src/postgres/include/portability/instr_time.h:116In file included from src/postgres/src_backend_utils_mmgr_alignedalloc.c:31:
In file included from ./src/postgres/include/utils/memutils_memorychunk.h:82:
In file included from ./src/postgres/include/utils/memutils_internal.h:19:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is In file included from notIn file included from  src/postgres_deparse.csupported forIn file included from In file included from  ./src/postgres/include/postgres.h:46 generated.
src/postgres/src_backend_nodes_makefuncs.c:error: 38:
In file included from thread-local./src/postgres/include/postgres.h :storage46 is not supported:
 for the ./src/postgres/include/utils/elog.hcurrent: 314target:20
: :src/postgres/src_backend_utils_mb_mbutils.c:27:59extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
:5:
./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20 error: : thread-local storage is not errorsupported:  for the  forcurrent In file included from targetextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
./src/postgres/include/postgres.hIn file included from 
In file included from                    ^
pl_gram.y20 the current target::47:
In file included from src/postgres/src_backend_utils_mmgr_mcxt.c:src/postgres/src_backend_utils_mmgr_aset.c:67:
In file included from :70./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: ./src/postgres/include/utils/elog.h:429:20errorIn file included from In file included from :src/postgres/src_backend_utils_adt_expandeddatum.c current target
error: thread-local
 storage isextern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^ 
not supported for theextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack; current target./src/postgres/include/utils/elog.h:486:
                   ^

extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
In file included from src/postgres/src_backend_parser_parser.c:34:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
Makefile:176: recipe for target 'src/pg_query_deparse.o' failed
make: *** [src/pg_query_deparse.o] Error 1
In file included from src/postgres/src_pl_plpgsql_src_pl_scanner.c:50:
In file included from ./src/postgres/include/postgres.h:./src/postgres/include/utils/elog.h:In file included from src/postgres/src_backend_utils_error_assert.c:21:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:3144::
20:In file included from  ./src/postgres/include/postgres.h:47error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_utils_error_assert.c:21:
In file included from In file included from src/postgres/src_pl_plpgsql_src_pl_handler.c:./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
In file included from src/postgres/src_backend_utils_mmgr_slab.c:91:
./src/postgres/include/utils/memutils.hextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:4659:20::
 ./src/postgres/include/utils/elog.herror: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
 :the:
In file included from 1./src/postgres/include/postgres.herror::
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:In file included from 20:src/postgres/src_backend_nodes_bitmapset.c :29:
errorIn file included from : ./src/postgres/include/postgres.h:46:
thread-local./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not  storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres_deparse.c:1:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
16                   ^: 16error: extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;:
thread-local./src/postgres/include/utils/palloc.h In file included from :59./src/postgres/include/postgres.h:::
47:

./src/postgres/include/utils/memutils.h:58:20:                   ^
./src/postgres/include/utils/memutils.h:59:20: 
error: thread-local storage is not supported for the current target
error: thread-local extern PGDLLIMPORT __thread MemoryContext ErrorContext;storage
 is                   ^ 
not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack; error
:                    ^
thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is ./src/postgres/include/utils/elog.hnot: 486supported: 20for:  the current errortarget: 
extern PGDLLIMPORT __thread MemoryContext ErrorContext;thread-local
                   ^
 storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;error: thread-local storage is not supported for:
:: : src/postgres/src_backend_utils_fmgr_fmgr.c20error486: thread-local :
:./src/postgres/include/utils/palloc.h:31459::20::30 :
 : storage20:  error:: 20: thread-local storage4623:
:thread-local storage  storage is not is not use ofsupportedIn file included from ./src/postgres/include/postgres.h:46:
 supported undeclared  for identifiererror: 
20./src/postgres/include/utils/palloc.h
./src/postgres/include/utils/elog.hIn file included from :486src/postgres/src_backend_utils_activity_pgstat_database.c:24:
In file included from ./src/postgres/include/postgres.h::59supported:20 : the ./src/postgres/include/utils/elog.h:errorerror: src/postgres/src_backend_utils_mmgr_aset.cisthread-local  not:
 :supported for  ./src/postgres/include/utils/elog.hthe current target the current targetfor the  thread-local'CLOCK_REALTIME'
 storage        clock_gettime(PG_INSTR_CLOCK, &tmp); is not supported for
extern PGDLLIMPORT __thread bool escape_string_warning; currentthe
  currenttarget target


In file included from src/postgres/src_backend_utils_error_elog.c:108:
current./src/postgres/include/miscadmin.herror: :thread-local90 :./src/postgres/include/utils/elog.hstoragethread-local20:: 314  :is46current not supported  for targetIn file included from thesrc/pg_query_readfuncs_protobuf.c:1:
In file included from src/pg_query_readfuncs.h :
target
./src/postgres/include/utils/elog.h:314extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;:
20:                   ^ 
./src/postgres/include/utils/memutils.h23:
In file included from ./src/postgres/include/postgres.h:46:59:
In file included from ./src/postgres/include/postgres.h./src/postgres/include/utils/elog.h::46314:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack; for the
 current target                    ^:270
:8:20: 
error: : thread-local storagethread-local storage is notextern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
 :  errorsupported is:  for theerror./src/postgres/include/utils/elog.h thread-local storage is                    ^
current targetnot supported for 
: the thread-localextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;not supported for the current target
                   ^
./src/postgres/include/utils/elog.h:429 storage:20:  iscurrent error: thread-local targetstorage is 
not supported for theextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
 current target                   ^

extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is :314is: 314:20: not extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                      ^
                   ^storage 20is  

./src/postgres/include/utils/elog.h:                   ^
:20: 429:20: extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
error: error./src/postgres/include/utils/elog.h: thread-local:                   ^thread-local
  storage is not supported for the currentstorage target is
 notextern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack; 
supported                    ^
for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;./src/postgres/include/utils/elog.h:429:20: 
error: errorthread-local:                   ^
20: : :20
: storageerror is not supported for the                   ^
: thread-local  current target./src/postgres/include/utils/elog.h
storage:486extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^:20: ./src/postgres/include/utils/elog.herror:: 429:
thread-local20:  In file included from error: thread-local storage is not supported for thesrc/pg_query_normalize.c :current5 :
target./src/postgres/include/parser/parser.h:56:20: 
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:420::429 :20: error
In file included from src/pg_query.c not supported notfor  supported for the error: current targetthread-local
 storage is not supported for the currentextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook; target

                   ^
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
In file included from src/postgres_deparse.c:2:
In file included from ./src/postgres/include/catalog/index.h:18:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: In file included from src/postgres/src_pl_plpgsql_src_pl_funcs.c:64:
In file included from ./src/postgres/include/plpgsql.h:21:
In file included from ./src/postgres/include/commands/trigger.h:18:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration ofIn file included from  src/postgres/src_pl_plpgsql_src_pl_scanner.cfunction: 50'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storagestorage is not  supported foris the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^ 
not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;In file included from 
src/postgres/src_backend_utils_error_elog.c:108                   ^:
In file included from 
./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from scan.c:32:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:6:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
In file included from src/postgres/src_backend_tcop_postgres.c:33:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for error: thethread-local current ./src/postgres/include/portability/instr_time.h:116:16: error: use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded :from20 :macro  'PG_INSTR_CLOCK'
error: #define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;In file included from 
                   ^
src/postgres/src_backend_commands_define.c:46:
In file included from ./src/postgres/include/nodes/makefuncs.h:17:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration./src/postgres/include/utils/elog.h:486: 20of:  function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^

                   ^
./src/postgres/include/utils/elog.h:In file included from gram.y:52:
In file included from ./src/postgres/include/catalog/index.h:18:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
429:20: In file included from src/pg_query_parse_plpgsql.c:5error:
In file included from src/pg_query_json_plpgsql.h:5:
In file included from ./src/postgres/include/plpgsql.h:21:
In file included from ./src/postgres/include/commands/trigger.h:18:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:166:
./src/postgres/include/portability/instr_time.h:In file included from src/postgres/src_backend_nodes_copyfuncs.c:26 errorerror: supported:
In file included from ./src/postgres/include/postgres.h:47:
current errornots: supported error: thread-local storage is  notfor  supported for the current target
 thefor  currentthe  extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
target                   ^
current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: error
                   ^./src/postgres/include/portability/instr_time.h429error:20: thread-local :  erroris thread-local storages  isstoragesrc/postgres/src_common_stringinfo.cstorage is :34notnot supported:
 error: thread-local storage: is notthe supported for theIn file included from   currentsrc/postgres/src_common_psprintf.c: targetcurrent targetIn file included from ./src/postgres/include/postgres.h:47:
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;warning:
In file included from ./src/postgres/include/postgres.h:47:

./src/postgres/include/utils/palloc.h./src/postgres/include/portability/instr_time.hIn file included from                    ^
In file included from src/postgres/src_backend_utils_adt_numutils.c:22:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/palloc.h./src/postgres/include/utils/elog.h:59./src/postgres/include/utils/elog.h::20429::429:20: error: thread-local storage  error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^:20: error: thread-local storage is not supported
 for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_pl_plpgsql_src_pl_comp.c:52:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_pl_plpgsql_src_pl_comp.c:52:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/postgres/src_backend_utils_adt_numutils.c:22:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/postgres/src_backend_storage_ipc_ipc.c:27:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
4 errors generated.
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_storage_ipc_ipc.c:27:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not targetstorage is
 not supported for theextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext; 
: isthread-local storage not  is not supported for the current target
supported extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
./src/postgres/include/utils/elog.h:486:20:In file included from src/postgres/src_backend_nodes_bitmapset.c:29:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
4In file included from src/postgres/src_backend_utils_adt_format_type.c:22:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not 116thread-local:2:./src/postgres/include/utils/palloc.h :59:20:  storage is not supportederror: thread-local storage for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_utils_adt_ruleutils.c:23:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20:  errorerror: thread-locals  generated.
 generated.
 target
: 
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
supported for the current target
In file included from src/postgres/src_backend_catalog_namespace.c:27:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: : thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_backend_utils_misc_guc_tables.c:49:
In file included from : ./src/postgres/include/commands/trigger.h:18thread-local storage is not :
In file included from 
: generated.
supported  not106 supported for the current  Makefile:176: recipe for target 'src/postgres/src_backend_nodes_value.o' failed
make: *** [src/postgres/src_backend_nodes_value.o] Error 1
:24In file included from src/postgres/src_pl_plpgsql_src_pl_funcs.c:Makefile:176: recipe for target 'src/postgres/src_backend_utils_mmgr_slab.o' failed
:64:
make: *** [src/postgres/src_backend_utils_mmgr_slab.o] Error 1
In file included from ./src/postgres/include/plpgsql.h: 22:
In file included from ./src/postgres/include/executor/spi.h:18:
./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: error: thread-local storage is not supported for the supported for  is not supported for the thecurrent target current target

current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;extern PGDLLIMPORT __thread bool escape_string_warning;

                   ^                   ^

./src/postgres/include/parser/parser.h:58:20: error./src/postgres/include/utils/elog.h: targetthread-localextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
 storage extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
is
 not  for the supported                    ^

for 26thread-localthe 
current  storage./src/postgres/include/utils/elog.h16:429::
In file included from ./src/postgres/include/postgres.h::486:  :20is not47:
::extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
src/postgres/src_common_hashfn.c                   ^
:3059:
:20./src/postgres/include/portability/instr_time.h116:16:error:1current: : implicit   declaration currentof   functionsupportedtarget  'clock_gettime'for is  target                   ^./src/postgres/include/utils/palloc.h::thread-local storageerror: thread-local
 storage is isnot supported for the currentinvalid in C99 [-Wimplicit-function-declaration]
 thread-localnot        clock_gettime(PG_INSTR_CLOCK, &tmp); 
        ^ 
supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
6 errors generated.
In file included from src/pg_query_fingerprint.c:4:
In file included from src/pg_query_internal.h:4:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
./src/postgres/include/portability/instr_time.h:116:16: error: use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
In file included from src/postgres/src_common_stringinfo.c:35:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_backend_nodes_copyfuncs.c:28:
./src/postgres/include/miscadmin.h:90:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
./src/postgres/include/miscadmin.h:103:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:104:20:6 errors generated.
In file included from src/pg_query_fingerprint.c:4:
In file included from src/pg_query_internal.h:5:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
thread-local storage is not supported for theMakefile:176: recipe for target 'src/postgres/src_backend_utils_mmgr_alignedalloc.o' failed
make: *** [src/postgres/src_backend_utils_mmgr_alignedalloc.o] Error 1
 current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_utils_adt_format_type.c:22:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
Makefile:176: recipe for target 'src/postgres/src_backend_utils_error_assert.o' failed
make: *** [src/postgres/src_backend_utils_error_assert.o] Error 1
In file included from src/postgres/src_backend_utils_adt_numutils.c:29:
./src/postgres/include/utils/builtins.h:76:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
In file included from In file included from src/postgres/src_backend_utils_init_globals.csrc/pg_query_split.c::342:
In file included from src/pg_query_internal.h:5:
./src/postgres/include/utils/memutils.h:58:20: error: 4./src/postgres/include/nodes/execnodes.h errors:33:
In file included from  generated.
./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid thread-localin C99  [-Wimplicit-function-declaration]storage
         clock_gettime(PG_INSTR_CLOCK, &tmp);
is        ^
 not supported for the current target
Makefile:176: recipe for target 'src/postgres/src_common_stringinfo.o' failed
make: *** [src/postgres/src_common_stringinfo.o] Error 1
: error: forthread-local storage  theis not supported for extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:5 error20:s  generated.
error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
target                   ^
20: :warning storage:  is implicitnot  declarationsupported  for the current target

extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^

errorIn file included from src/postgres/src_backend_nodes_nodeFuncs.c:23:
: In file included from ./src/postgres/include/postgres.h:extern PGDLLIMPORT __thread int backslash_quote;47:
./src/postgres/include/utils/palloc.h:59:20: error: extern PGDLLIMPORT __thread bool standard_conforming_strings;thread-local storageof is not 
supported                   ^
In file included from scan.c:32:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
59
  
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
static __thread AllocSetFreeList context_freelists[2] =
:the current error:20: In file included from  error is:  not target./src/postgres/include/postgres.h
:46:
./src/postgres/include/utils/elog.hextern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;storagetarget
./src/postgres/include/utils/elog.h  __thread sig_atomic_t pg_query_initialized = 0;
is^
 error: :not supported486:20 supportedthread-local:for    for storagetheerror:   isthe current  currenttargetnot targetthread-local
 supported 
 storagefor  isextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
the current  nottarget supportedextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^ for

extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount; the current target
                   ^

                   ^
7 error supported for       ^
 the current target
Makefile:176: recipe for target 'src/postgres/src_backend_nodes_bitmapset.o' failed
make: *** [src/postgres/src_backend_nodes_bitmapset.o] Error 1
./src/postgres/include/miscadmin.h:105:20: extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
error:                    ^
:
./src/postgres/include/parser/parser.h:58:20 current target
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
./src/postgres/include/miscadmin.h:103:20: : In file included from src/pg_query_json_plpgsql.cerror: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
./src/postgres/include/utils/elog.h:429./src/postgres/include/portability/instr_time.h:116::1620: : error: error: use of undeclaredthread-local identifier storage  'CLOCK_REALTIME'
is not         clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^supported 
./src/postgres/include/portability/instr_time.hfor :106:24the:  note: expandedcurrent from macro 'PG_INSTR_CLOCK'In file included from src/postgres/src_pl_plpgsql_src_pl_funcs.c:64:

 ./src/postgres/include/plpgsql.h:1194:#define PG_INSTR_CLOCK  CLOCK_REALTIME8: targetthenoteerror : expanded
 from macro 'PG_INSTR_CLOCK'
                     ^function #define PG_INSTR_CLOCK  CLOCK_REALTIMEfor
 the
error: thread-local storage is not supported for the current target 
current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;thread-local 'clock_gettime'                   ^storage:    
iscurrentisextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                    ^
 not  targetinvalidthread-local supported in 
storage forextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext; C99 is the [-Wimplicit-function-declaration] notcurrent  
./src/postgres/include/parser/parser.hsupportedtarget        clock_gettime(PG_INSTR_CLOCK, &tmp); :for
57
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack; :the20 :                   ^current 
 target
error
: extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
thread-local storage
                   ^        ^
                   ^
 
is ./src/postgres/include/utils/elog.h:
429not                   ^:
20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: ./src/postgres/include/utils/elog.hthread-local: storage is not supported for the:314 
current                   ^ targeterror116
use: extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;thread-local:  :storage isthread-local storage is not supported for the current16
In file included from src/postgres/src_backend_nodes_equalfuncs.cthread-local storage is./src/postgres/include/miscadmin.h:90:20:
error In file included from pl_gram.y:Makefile:176: recipe for target 'src/postgres/src_backend_parser_scansup.o' failed
make: *** [src/postgres/src_backend_parser_scansup.o] Error 1
Makefile:176: recipe for target 'src/postgres/src_backend_utils_adt_numutils.o' failed
make: *** [src/postgres/src_backend_utils_adt_numutils.o] Error 1
:error2src/pg_query_parse.c                        ^:
: 156:thread-local./src/postgres/include/utils/elog.h39:: 429 :storage20 is:
warning :  not  extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;supported suggesterror: 
 braces for                   ^supported the
around  current initializationthread-local  targetforof   subobject
 storagethe [-Wmissing-braces] 
is         PgQueryProtobufParseResult result = {0};currentextern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^
not  targetsupported for

 extern PGDLLIMPORT __thread bool escape_string_warning;the current target
                                             ^

./src/postgres/include/miscadmin.h                                             {}                   ^
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;:104
:./src/postgres/include/parser/parser.h20:
                    ^
:58error: thread-local:20: error: thread-local ./src/postgres/include/utils/elog.hstorage is :not 486:supported for the 20current target: 
error: extern PGDLLIMPORT __thread bool standard_conforming_strings;
thread-local                   ^
 storage1 is  warning and not./src/postgres/include/utils/elog.h9 error:486 supported s generated.
7 errors generated.
In file included from src/postgres/src_backend_parser_parser.c:38:
./src/postgres/include/parser/parser.h:56In file included from src/postgres/src_backend_utils_mmgr_mcxt.c:70:
./src/postgres/include/miscadmin.h:90:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
In file included from scan.c:40:
./src/postgres/include/parser/parser.h./src/postgres/include/miscadmin.h:103:20: :56./src/postgres/include/portability/instr_time.h::20116: :16:error : error: use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
Makefile:176: recipe for target 'src/pg_query_parse.o' failed
make: *** [src/pg_query_parse.o] Error 1
:20: error: Makefile:176: recipe for target 'src/postgres/src_backend_utils_mmgr_aset.o' failed
make: *** [src/postgres/src_backend_utils_mmgr_aset.o] Error 1
thread-local storage486 iss : generated.
not 
supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;                   ^
                   ^
20
./src/postgres/include/parser/parser.h:57::20: error: thread-local error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:
  of notundeclared  supportedidentifier  for 'CLOCK_REALTIME' 
not supported :for31 :20 :
 In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:                        ^
59:20: error: thread-local targetstorage 
is extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
                   ^
:20: errorIn file included from : src/postgres/src_backend_nodes_equalfuncs.c:33thread-local:
 storage ./src/postgres/include/miscadmin.his: 90not: 20supported: for  theerror:  currentthread-local storage is target not 
supported for the current targetextern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;

                   ^
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
./src/postgres/include/miscadmin.h:103:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:104:20: errorIn file included from : ./src/postgres/include/utils/elog.h:486thread-localIn file included from :src/postgres/src_backend_storage_ipc_ipc.c20::33:
 ./src/postgres/include/miscadmin.h: 90storage:20:  iserror: thread-local : 21thread-local:
:
 In file included from storage src/pg_query_json_plpgsql.h::5:
errorIn file included from ./src/postgres/include/plpgsql.h20::21storage:
In file included from for iserror:  thread-local storage is not not  the  In file included from current targetsrc/postgres/src_backend_nodes_makefuncs.c:
38:
./src/postgres/include/commands/trigger.h:18In file included from :
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h./src/postgres/include/postgres.h::16:
47Makefile:176: recipe for target 'src/pg_query.o' failed
./src/postgres/include/portability/instr_time.h:make: *** [src/pg_query.o] Error 1
116:2: :
warning: implicit declaration of function 'clock_gettime' is invalid in C99 ./src/postgres/include/utils/palloc.h:[-Wimplicit-function-declaration]
59:        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
20:                   ^ 
error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
In file included from src/postgres/src_backend_utils_mb_mbutils.c:59:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
./src/postgres/include/portability/instr_time.h:116:16: error: use of storage undeclared identifier 'CLOCK_REALTIME'
is not        clock_gettime(PG_INSTR_CLOCK, &tmp); supported 
for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
./src/postgres/include/parser/parser.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
In file included from src/postgres/src_backend_nodes_list.c:43:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: error: thread-local storage is not supported         clock_gettime(PG_INSTR_CLOCK, &tmp);thethe
  current target
                      ^
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
In file included from src/pg_query_readfuncs_protobuf.c:1:
In file included from src/pg_query_readfuncs.h:current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
error                   ^
extern PGDLLIMPORT __thread bool ExitOnAnyError;
:                    ^
use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
6:
In file included from ./src/postgres/include/postgres.h:47:
error./src/postgres/include/utils/palloc.h: :thread-local59 :20: error: thread-localnot   storage isstorage not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
: error: thread-local storage is not supported for the current In file included from src/postgres/src_backend_utils_activity_pgstat_database.c:24target:
In file included from ./src/postgres/include/postgres.h:47:

./src/postgres/include/utils/palloc.h:59:extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_common_hashfn.c:30:
In file included from ./src/postgres/include/postgres.h:47for the current target
extern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
In file included from src/postgres/src_backend_catalog_namespace.c:27:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage./src/postgres/include/utils/elog.h :429:20: is error: thread-local storage is :
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
7 error                   ^
s generated.
src/postgres/src_common_psprintf.c:28:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
In file included from src/pg_query_fingerprint.c:extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: 6 errors generated.
error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_backend_nodes_extensible.c:29:
In file included from ./src/postgres/include/nodes/extensible.h:18:
storageIn file included from  is./src/postgres/include/commands/explain.h:./src/postgres/include/parser/parser.h16: :56:  is not supportederror: thread-local supportedfor thesupported   for the current supportedthread-local storage storage is  is6for errors generated.
  notthe  supportedcurrent  fortarget the
 extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^11
:

./src/postgres/include/parser/parser.h                   ^:56
:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
4./src/postgres/include/parser/parser.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
In file included from src/postgres/src_backend_utils_adt_expandeddatum.c:23:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
src/pg_query_scan.c:29:31: warning20: :suggest braces around initialization of subobject [-Wmissing-braces]
  PgQueryScanResult result = {0};
                               ^
                              {}
In file included from src/postgres/src_backend_nodes_nodeFuncs.c:27:
./src/postgres/include/miscadmin.h:90:20: error:  errors generated.
thread-local storage is not supported for the currentnotnot target20
::
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
 In file included from ./src/postgres/include/executor/executor.h supported:not 17 forsupported :
forIn file included from  ./src/postgres/include/executor/execdesc.h the current targetthefor targetthe 
current extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;target

extern __thread IdentifierLookup plpgsql_IdentifierLookup;extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^


       ^                   ^

./src/postgres/include/miscadmin.h:./src/postgres/include/plpgsql.h104::119620./src/postgres/include/miscadmin.h::: 8105:: 20error::  error: errorthread-local:  thread-localIn file included from thread-local storage is not supportedsrc/postgres_deparse.cstorage is: storage 14is not:
 for the current./src/postgres/include/utils/builtins.h target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;:
                   ^76current thread-local isnot not   supportedsupported  forstoragefor   thethe  iscurrent./src/postgres/include/miscadmin.hcurrent:105:20 :  targettargeterror: 

thread-local extern PGDLLIMPORT __thread int backslash_quote;target storage
 is notextern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;

 supportedextern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                    ^for                    ^

                   ^
 errorIn file included from src/postgres/src_pl_plpgsql_src_pl_comp.c:60:
In file included from ./src/postgres/include/funcapi.h./src/postgres/include/parser/parser.h::21:
In file included from ./src/postgres/include/executor/executor.h:17:
In file included from ./src/postgres/include/executor/execdesc.h:18:
In file included from ./src/postgres/include/nodes/execnodes.h:33 supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
Makefile:176: recipe for target 'src/postgres/src_backend_parser_parser.o' failed
make: *** [src/postgres/src_backend_parser_parser.o] Error 1
In file included from src/postgres/src_backend_utils_adt_expandeddatum.c:26:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not :18:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declarationIn file included from src/postgres/src_backend_catalog_pg_proc.c:37:
In file included from ./src/postgres/include/funcapi.h:21:
In file included from ./src/postgres/include/executor/executor.h:21:
Makefile:176: recipe for target 'src/postgres/src_common_hashfn.o' failed
make: *** [src/postgres/src_common_hashfn.o] Error 1
./src/postgres/include/utils/memutils.h:58:20: errorMakefile:176: recipe for target 'src/postgres/src_common_psprintf.o' failed
make: *** [src/postgres/src_common_psprintf.o] Error 1
1 warning and 6   notsupported for 
current target 
nottheextern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;: 
                   ^
./src/postgres/include/miscadmin.h:170:the current target current target

extern __thread int plpgsql_variable_conflict;
57:
20:thread-local error                   ^
:  supported for./src/postgres/include/miscadmin.h:103extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
:./src/postgres/include/utils/elog.h:486:2020:: error: ./src/postgres/include/miscadmin.h:170:20: error:  ./src/postgres/include/miscadmin.h:103:20: error: thread-local storage is not supported for the errorcurrent target: thread-local:supported of  function 'clock_gettime' is invalidfor in  :supported20 :  error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
./src/postgres/include/parser/parser.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
In file included from src/postgres/src_backend_utils_error_elog.c:128:
./src/postgres/include/miscadmin.h:90:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^       ^
 
error: thread-local storage ./src/postgres/include/plpgsql.his: 1198not: 8supported:  for theerror : current targetthread-local storage is not supported for the current target
extern __thread bool plpgsql_print_strict_params;
       ^
./src/postgres/include/miscadmin.h:In file included from 103:./src/postgres/include/plpgsql.h20:1212:8src/pg_query_parse_plpgsql.c:5thread-local: storage:
 In file included from is not  thread-localerror storagestorage src/pg_query_json_plpgsql.his  notis supported for the supported not: for  supportedthe  for5current :
 theIn file included from  target./src/postgres/include/plpgsql.hcurrent: 
targetcurrent target22:

In file included from ./src/postgres/include/executor/spi.h:extern PGDLLIMPORT __thread int backslash_quote;
                   ^
18thread-local storage isextern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext; : :
thread-localnot  supported for
 the  current storage is not supported ./src/postgres/include/parser/parser.hfor :the56 extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;In file included from 20the: error: forthread-local storage is  current  ./src/postgres/include/executor/instrument.hthe currenttarget
: 16target
current targetextern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^

not                   ^
 supported for ./src/postgres/include/miscadmin.htheC99 Makefile:176: recipe for target 'src/pg_query_split.o' failed
 [-Wimplicit-function-declaration]make: *** [src/pg_query_split.o] Error 1

        clock_gettime(PG_INSTR_CLOCK, &tmp);
 error        ^

:./src/postgres/include/miscadmin.h: :
103 
extern PGDLLIMPORT __thread bool ExitOnAnyError;                   ^

thread-local storage is./src/postgres/include/parser/parser.h                    ^
not errortarget:the :
storage is ./src/postgres/include/portability/instr_time.hnot supported:116:2: warning:  current implicit declaration oftarget function 'clock_gettime' 
is invalid in C99 [-Wimplicit-function-declaration]
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                   ^
In file included from src/postgres/src_pl_plpgsql_src_pl_handler.c:23:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the./src/postgres/include/portability/instr_time.h: :105:extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;current 
target
                   ^
./src/postgres/include/miscadmin.h:104extern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:105:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
In file included from src/postgres/src_backend_utils_mmgr_generation.c:56:
In file included from ./src/postgres/include/postgres.h:46:
./src/postgres/include/utils/elog.h:314:20: In file included from src/pg_query_json_plpgsql.c:2:
In file included from src/pg_query_json_plpgsql.h:5:
In file included from ./src/postgres/include/plpgsql.h:22:
In file included from ./src/postgres/include/executor/spi.h:18:
In file included from src/postgres/src_backend_storage_ipc_ipc.c:38:
./src/postgres/include/storage/ipc.h./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
:65:20: error: thread-local storage is not supported for the./src/postgres/include/parser/parser.h: current 58target:
20: :extern PGDLLIMPORT __thread bool ExitOnAnyError;20                   ^:

 
                   ^
supported for :57sthe : error: currentthread-local storage  generated.
:20: error: thread-local ./src/postgres/include/miscadmin.hstorage :is104 :not20 :supported  for theerror : current9thread-local storage  target
extern PGDLLIMPORT __thread bool escape_string_warning;is not supported 
for the                   ^ 
current target
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;./src/postgres/include/parser/parser.h:58
:20                   ^:
 
 for        ^ the currentcurrent 
target20
 : target20./src/postgres/include/utils/memutils.herror: ::59:thread-local20 : storage is 116noterror : :16: thread-local errorstorage : is ./src/postgres/include/miscadmin.h:105:extern PGDLLIMPORT __thread bool proc_exit_inprogress;notissupported  supportedfor  forthe  thecurrent currenterror target: 
thread-local storage is not supportedextern PGDLLIMPORT __thread ErrorContextCallback *error_context_stack;
                   ^
 for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
./src/postgres/include/utils/elog.h:429:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread sigjmp_buf *PG_exception_stack;
                   ^
./src/postgres/include/utils/elog.h:486:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;
                   ^
In file included from src/postgres/src_backend_utils_mmgr_generation.c:56:
In file included from ./src/postgres/include/postgres.h:47:
./src/postgres/include/utils/palloc.h:./src/postgres/include/portability/instr_time.h59:20: :116error: :16thread-local:  errorstorage : is not supported foruse In file included from the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
thread-local  storage targetis 
not supported for the extern __thread bool plpgsql_check_syntax;current target

       ^extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;

                   ^
 ./src/postgres/include/miscadmin.h:104:20: error: thread-local storage is not supported for the current./src/postgres/include/utils/memutils.h :target
59:20:error erroruse20 of:extern PGDLLIMPORT __thread emit_log_hook_type emit_log_hook;s generated.


                   ^
: error: thread-local storagethread-local is  storagenot  extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;issupported  not
for the current                   ^ 
target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
 
                   ^not supported for the current target  

of undeclared targetidentifier 'CLOCK_REALTIME'

./src/postgres/include/plpgsql.h:1213:8: error: thread-localextern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
 storage is extern PGDLLIMPORT __thread bool standard_conforming_strings;not
 supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
                   ^
In file included from src/postgres/src_backend_nodes_list.c6 errors generated.
In file included from src/pg_query_json_plpgsql.c:2:
In file included from src/pg_query_json_plpgsql.h:5:
./src/postgres/include/plpgsql.h:1194:8: errorerror: thread-local  storage is noterror : supported forthread-local the  storagecurrent  istarget not
 extern __thread bool plpgsql_DumpExecTree;supported for the 
current target       ^

extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
./src/postgres/include/plpgsql.h:1215:8: error: extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;thread-local storage is  
not supported  for  the current target

extern __thread PLpgSQL_stmt_block *plpgsql_parse_result;src/postgres/src_backend_nodes_makefuncs.c
:       ^
        clock_gettime(PG_INSTR_CLOCK, &tmp);error
./src/postgres/include/plpgsql.h:1217:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_nDatums;
       ^
./src/postgres/include/plpgsql.h:1218:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_datum **plpgsql_Datums;
       ^
./src/postgres/include/plpgsql.h:1220:8: error: thread-local storage is not supported for theIn file included from  current target
extern __thread char *plpgsql_error_funcname;
       ^
./src/postgres/include/plpgsql.h:1222:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_function *plpgsql_curr_compile;
       ^
./src/postgres/include/plpgsql.h:1223:8: errorsrc/postgres/src_backend_utils_mmgr_generation.c: thread-local storage: is not supported for 61Makefile:176: recipe for target 'src/pg_query_scan.o' failed
make: *** [src/pg_query_scan.o] Error 1
In file included from src/postgres/src_backend_utils_misc_guc_tables.cMakefile:176: recipe for target 'src/pg_query_normalize.o' failed
make: *** [src/pg_query_normalize.o] Error 1
                   ^
                   ^
:50:
In file included from ./src/postgres/include/commands/user.h:18:
./src/postgres/include/utils/guc.h:./src/postgres/include/miscadmin.h252:20: :104error: :20thread-local: error: thread-local storage is not supported for the current In file included from src/postgres/src_backend_utils_adt_ruleutils.c:51:
In file included from ./src/postgres/include/executor/spi.h:16:
In file included from ./src/postgres/include/commands/trigger.h:18target
:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of./src/postgres/include/miscadmin.h function :'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^:
: supported43undeclared42 identifier:
 In file included from 'CLOCK_REALTIME'./src/postgres/include/nodes/makefuncs.h:
17:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:        clock_gettime(PG_INSTR_CLOCK, &tmp);116
:2                      ^:
 warning./src/postgres/include/portability/instr_time.h: :106:24: : note:                       ^expanded thread-local
from ./src/postgres/include/portability/instr_time.hmacro:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
the current target
extern __thread MemoryContext plpgsql_compile_tmp_cxt;
       ^
In file included from fatal error: toosrc/postgres/src_backend_utils_fmgr_fmgr.c:34 many:
 ./src/postgres/include/pgstat.h:767:20errors emitted, stopping now [-ferror-limit=]
./src/postgres/include/portability/instr_time.h:116:16: error: use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: implicitexpanded  fromdeclaration macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
:
 ./src/postgres/include/utils/memutils.h105:58::2020::  error                   ^: 
:
thread-localIn file included from  ./src/postgres/include/postgres.hstorage is  not supported ./src/postgres/include/miscadmin.h: for storage 105the :is20  :notcurrentthread-local 'PG_INSTR_CLOCK' 
storageerror : is#define PG_INSTR_CLOCK  CLOCK_REALTIME
 thread-localnot storage                        ^  
issupported not supportedfor  for the  current target
:extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
47error: :
thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
1In file included from src/postgres/src_backend_utils_error_elog.c:129:
In file included from ./src/postgres/include/pgstat.h:15:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration In file included from gram.yof function 'clock_gettime' is invalid in :C9961 :
./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: error: thread-local storage is notIn file included from src/postgres/src_backend_utils_activity_pgstat_database.c: supported for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
./src/postgres/include/parser/parser.h:58:20: error: thread-local storage is not supported for the current target
:  of function error'clock_gettime':  is thread-local storage  supported  for forthetarget current 
target
the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;

                   ^is
extern PGDLLIMPORT __thread int backslash_quote; invalid in C99 the./src/postgres/include/utils/memutils.h:59:not 20 :supported  for currentthe  current error: 
thread-local                    ^
storage is nottarget 
supported extern PGDLLIMPORT __thread SessionEndType pgStatSessionEndCause;for the./src/postgres/include/parser/parser.h 
current                   ^ target

:57:extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
20: error: thread-local storage is not supported for the./src/postgres/include/utils/palloc.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext CurrentMemoryContext;
                   ^
                    ^current 
target
extern PGDLLIMPORT __thread bool escape_string_warning; warning and 
                   ^20
 errors generated.
./src/postgres/include/parser/parser.h:58:20: ./src/postgres/include/miscadmin.h:error170: :20:thread-local  storage erroris:  not thread-localsupported  storagefor  isthe  notcurrent  supportedtarget 
for the extern PGDLLIMPORT __thread bool standard_conforming_strings;current target

Makefile:176: recipe for target 'src/postgres/src_backend_utils_adt_expandeddatum.o' failed
make: *** [src/postgres/src_backend_utils_adt_expandeddatum.o] Error 1
extern PGDLLIMPORT __thread bool ExitOnAnyError;                   ^

                   ^
In file included from src/postgres/src_backend_utils_adt_ruleutils.c:51:
In file included from ./src/postgres/include/executor/spi.h:18:
./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
./src/postgres/include/parser/parser.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
626:
In file included from ./src/postgres/include/utils/pgstat_internal.h:20:
In file included from ./src/postgres/include/pgstat.h:15:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
In file included from src/postgres/src_backend_utils_adt_ruleutils.c:52:
In file included from ./src/postgres/include/funcapi.h:21:
In file included from ./src/postgres/include/executor/executor.h:21:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_pl_plpgsql_src_pl_scanner.c[-Wimplicit-function-declaration]storageextern PGDLLIMPORT __thread bool standard_conforming_strings;

./src/postgres/include/portability/instr_time.h:                   ^116
:16: error: use of undeclared identifier 'CLOCK_REALTIME'        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
src/postgres/src_backend_utils_init_globals.c:40 target[-Wimplicit-function-declaration]

        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
extern __thread IdentifierLookup plpgsql_IdentifierLookup;
       ^
./src/postgres/include/plpgsql.h:1196:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_variable_conflict;
       ^
./src/postgres/include/plpgsql.h:1198:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_print_strict_params;

       ^
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/plpgsql.h:1212./src/postgres/include/portability/instr_time.h::1068: :24error: thread-local storage: is  not supported note: :1: forerror : thethread-local storage is not supportedexpanded from  current macro 'PG_INSTR_CLOCK'target

#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
extern __thread bool plpgsql_check_syntax;
       ^
./src/postgres/include/plpgsql.h:1213:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_DumpExecTree;
       ^
./src/postgres/include/plpgsql.h:1215:8: error: thread-local storage is not supported for the current target 
for the current targetextern __thread PLpgSQL_stmt_block *plpgsql_parse_result;

       ^
__thread volatile sig_atomic_t InterruptPending = false;
./src/postgres/include/plpgsql.h:^1217
:8:./src/postgres/include/portability/instr_time.h:116 In file included from src/postgres/src_pl_plpgsql_src_pl_comp.cerror: thread-local storage is not supported for src/postgres/src_backend_utils_init_globals.c:51:1: error: thread-localthe current target
extern __thread int plpgsql_nDatums;
       ^ storage is not supported for the current target
__thread volatile uint32 InterruptHoldoffCount = 0;
^
src/postgres/src_backend_utils_init_globals.c:53:1:
./src/postgres/include/plpgsql.h:1218:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_datum **plpgsql_Datums;
       ^
./src/postgres/include/plpgsql.h:1220 :error: 8: errorthread-local:  storage thread-localis  notstorage  is not supportedsupported for: the current target
55 for :
the current target
In file included from extern __thread char *plpgsql_error_funcname;
       ^./src/postgres/include/plpgsql.h
__thread volatile uint32 QueryCancelHoldoffCount = 0;
^
./src/postgres/include/plpgsql.h:src/postgres/src_backend_utils_init_globals.c:55:12221: :21:
:8: In file included from error: thread-local storageerror:  is not supportedthread-local storage is  for not supported forthe  the current target
./src/postgres/include/commands/trigger.h:__thread volatile uint32 CritSectionCount = 0;
current18:
 target
^
extern __thread PLpgSQL_function *plpgsql_curr_compile;
       ^
./src/postgres/include/plpgsql.h:1223:8: src/postgres/src_backend_utils_init_globals.c:error: 131thread-local storage is :not supported for the current target
1Makefile:176: recipe for target 'src/postgres/src_pl_plpgsql_src_pl_funcs.o' failed
extern __thread MemoryContext plpgsql_compile_tmp_cxt;make: *** [src/postgres/src_pl_plpgsql_src_pl_funcs.o] Error 1

       ^
: error: thread-local storage is not supported for the current target
__thread bool           ExitOnAnyError = false;
^
14 errors generated.
:16: error: use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
 is not supported for the current target
extern PGDLLIMPORT __thread bool check_function_bodies;
                   ^
./src/postgres/include/utils/guc.h:259:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int log_min_messages;
                   ^
./src/postgres/include/utils/guc.h:266:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread char *backtrace_functions;
                   ^
In file included from src/postgres/src_backend_utils_adt_format_type.c:30:
./src/postgres/include/utils/builtins.h:76:20: error: thread-local storage is not supported for the current target
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.hextern PGDLLIMPORT __thread bool quote_all_identifiers;:
16:
                   ^./src/postgres/include/portability/instr_time.h:116:
2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
./src/postgres/include/portability/instr_time.h:116:16:  errors generated.
In file included from In file included from src/postgres/src_backend_utils_adt_ruleutils.c:54:
./src/postgres/include/miscadmin.h:90:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
./src/postgres/include/miscadmin.h:103:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:104:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:105:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: In file included from src/postgres/src_backend_utils_activity_pgstat_database.cthread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
./src/postgres/include/portability/instr_time.h:116:16: error: use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
error./src/postgres/include/portability/instr_time.h: :106:24: note: expanded fromuse macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
 of undeclared identifier 'CLOCK_REALTIME'
Makefile:176: recipe for target 'src/postgres/src_backend_utils_init_globals.o' failed
make: *** [src/postgres/src_backend_utils_init_globals.o] Error 1
Makefile:176: recipe for target 'src/postgres/src_backend_utils_mmgr_generation.o' failed
make: *** [src/postgres/src_backend_utils_mmgr_generation.o] Error 1
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: :60:
In file included from expanded./src/postgres/include/funcapi.h from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME:21:

                        ^
1 warning and 19 errors generated.
In file included from src/postgres/src_backend_utils_fmgr_fmgr.c:36:
In file included from ./src/postgres/include/executor/executor.h:21:
src/pg_query_parse_plpgsql.c:5:
In file included from src/pg_query_json_plpgsql.h::26:
In file included from ./src/postgres/include/utils/pgstat_internal.h:20:
5In file included from ./src/postgres/include/pgstat.h:18:
In file included from ./src/postgres/include/utils/backend_status.h:15:
./src/postgres/include/miscadmin.h:90:20:
./src/postgres/include/plpgsql.h:1194::8: error: thread-local storage is not supported for the current target
./src/postgres/include/utils/memutils.h:58:20 extern __thread IdentifierLookup plpgsql_IdentifierLookup;error
:        ^
thread-local : errorstorage is not supported./src/postgres/include/plpgsql.h for: 1196the: 8current:  target
errorextern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;: : thread-local storageIn file included from src/postgres/src_backend_nodes_list.c: is not supported 48for:
 the current target
extern __thread int plpgsql_variable_conflict;
       ^
./src/postgres/include/plpgsql.h:1198:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_print_strict_params;
       ^
5 errors generated.
./src/postgres/include/plpgsql.h:1212:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_check_syntax;
       ^
./src/postgres/include/utils/memutils.h:58:./src/postgres/include/plpgsql.h20::1213 :In file included from src/postgres/src_backend_utils_error_elog.c8:129:
./src/postgres/include/pgstat.h:767:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread SessionEndType pgStatSessionEndCause;
                   ^
Makefile:176: recipe for target 'src/pg_query_json_plpgsql.o' failed
make: *** [src/pg_query_json_plpgsql.o] Error 1
In file included from src/postgres/src_backend_nodes_nodeFuncs.c:28:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
In file included from In file included from src/postgres/src_backend_nodes_extensible.c:src/postgres/src_pl_plpgsql_src_pl_handler.c29::
28In file included from :
In file included from ./src/postgres/include/nodes/extensible.h./src/postgres/include/funcapi.h::18:
In file included from ./src/postgres/include/commands/explain.h:16:
In file included from ./src/postgres/include/executor/executor.h:21:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;In file included from src/postgres/src_backend_utils_error_elog.c:
133:
                   ^
./src/postgres/include/storage/ipc.h:65./src/postgres/include/utils/memutils.h::59:20:20:  error: errorthread-local storage is:  not supported for the current targetthread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool proc_exit_inprogress;
                   ^

thread-local./src/postgres/include/utils/builtins.h:: 76:error errorstorage is : notthread-local storage is not supported for the current target
                   ^
: thread-local storage is not supported for the current target
extern __thread bool plpgsql_DumpExecTree;
       ^
./src/postgres/include/plpgsql.h:1215:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_stmt_block *plpgsql_parse_result;
       ^
./src/postgres/include/plpgsql.h:1217:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_nDatums;
       ^
./src/postgres/include/plpgsql.h:1218:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_datum **plpgsql_Datums;
       ^
./src/postgres/include/plpgsql.h:1220:8: error: thread-local storage is not supported for the current target
extern __thread char *plpgsql_error_funcname;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from src/postgres/src_pl_plpgsql_src_pl_scanner.c:55:
In file included from ./src/postgres/include/plpgsql.h:22:
In file included from ./src/postgres/include/executor/spi.h:18:
./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
21:
./src/postgres/include/parser/parser.hIn file included from :./src/postgres/include/executor/executor.h57::1720:
:In file included from  ./src/postgres/include/executor/execdesc.h:18error:
: thread-local storage is not Makefile:176: recipe for target 'src/postgres/src_backend_utils_adt_format_type.o' failed
supported
 make: *** [src/postgres/src_backend_utils_adt_format_type.o] Error 1
for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;20
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^                   ^

 ./src/postgres/include/miscadmin.hsupported::  103for: 20the :errorcurrent :  targeterrorthread-local
:  extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;storage thread-localis  storagenot  
issupported                     ^notfor 
 supportedthe  forcurrent  thetarget current
 extern PGDLLIMPORT __thread bool quote_all_identifiers;target./src/postgres/include/utils/memutils.h
:59:20: extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
error:                    ^

In file included from src/postgres/src_backend_storage_ipc_ipc.c:39:
In file included from ./src/postgres/include/tcop/tcopprot.h:21:
./src/postgres/include/utils/guc.h:252:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool check_function_bodies;
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;                   ^./src/postgres/include/parser/parser.h
thread-local                   ^./src/postgres/include/utils/guc.h: 259
:storage 20: iserror : not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
In file included from src/postgres/src_backend_utils_fmgr_fmgr.c:38:
./src/postgres/include/utils/guc.h:252:./src/postgres/include/portability/instr_time.h20::116 :16: error: error: thread-local storageuse  isof  notundeclared  supportedidentifier  'CLOCK_REALTIME'
for the current target
        clock_gettime(PG_INSTR_CLOCK, &tmp);extern PGDLLIMPORT __thread bool check_function_bodies;

                   ^                      ^

./src/postgres/include/utils/guc.h:259:20: error: thread-local storage is not supported for the current target
./src/postgres/include/portability/instr_time.hextern PGDLLIMPORT __thread int log_min_messages;
                   ^
:106./src/postgres/include/utils/guc.h:266:20: error: thread-local storage is not supported for the current target
:24extern PGDLLIMPORT __thread char *backtrace_functions;
                   ^
: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
In file included from 1 warning and 15 error:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
In file included from src/postgres/src_backend_utils_mmgr_mcxt.c:76:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
In file included from                    ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
./src/postgres/include/portability/instr_time.h:116:16: error: 1 warning and 7 errors generated.
src/postgres/src_backend_catalog_pg_proc.c:39:
./src/postgres/include/miscadmin.h:90:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
./src/postgres/include/miscadmin.h:103:src/postgres/src_backend_utils_mmgr_mcxt.c:20:180 :1:error error: : thread-local storagethread-local is not  supported forstorage  theis current target 
not__thread MemoryContext CurrentMemoryContext = NULL;
^ supported
 for src/postgres/src_backend_utils_mmgr_mcxt.cthe :current187 target:1
: extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;error: 
thread-local storage                    ^
is not supported for the./src/postgres/include/miscadmin.h current :target104:
__thread MemoryContext TopMemoryContext = NULL;20
: ^error
: thread-local storagesrc/postgres/src_backend_utils_mmgr_mcxt.c is not: 189supported: 1for:  error: the current targetthread-local 
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;storage is 
not supported                    ^
for./src/postgres/include/miscadmin.h the current target
__thread MemoryContext ErrorContext = NULL;
^
In file included from src/postgres/src_backend_utils_adt_ruleutils.c:70:
./src/postgres/include/utils/builtins.h:76:20:
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_backend_catalog_namespace.c:51:
In file included from ./src/postgres/include/funcapi.h:21s:
 generated.
In file included from ./src/postgres/include/executor/executor.h:17:
In file included from ./src/postgres/include/executor/execdesc.h:18:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
./src/postgres/include/portability/instr_time.h:116:16: error: use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
thread-local./src/postgres/include/miscadmin.h:104:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
6                   ^
 errors./src/postgres/include/miscadmin.h generated.
:105:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
1 warning and 6 errors generated.
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
14 errors generated.
In file included from src/postgres/src_pl_plpgsql_src_pl_scanner.c:55:
./src/postgres/include/plpgsql.h:1194:8: error: 1thread-local storage is not supported for the current target
extern __thread IdentifierLookup plpgsql_IdentifierLookup;
       ^
./src/postgres/include/plpgsql.h:1196:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_variable_conflict;
       ^
./src/postgres/include/plpgsql.h:1198:8: error: thread-local storage is not supported for the current target
 warning and 20extern __thread bool plpgsql_print_strict_params; error
s generated.
In file included from scan.c:44:
./src/postgres/include/utils/builtins.h:76:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
Makefile:176: recipe for target 'src/postgres/src_backend_nodes_extensible.o' failed
make: *** [src/postgres/src_backend_nodes_extensible.o] Error 1
 storage is not supported for the current target
extern PGDLLIMPORT __thread int log_min_messages;
                   ^
./src/postgres/include/utils/guc.h:266:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread char *backtrace_functions;
                   ^
In file included from src/postgres/src_backend_storage_ipc_ipc.c:39:
./src/postgres/include/tcop/tcopprot.h:28:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread CommandDest whereToSendOutput;
                   ^
./src/postgres/include/tcop/tcopprot.h:29:20: In file included from error: thread-local storage src/postgres/src_backend_utils_mb_mbutils.c: use of error: undeclaredthread-local  identifierstorage  is not       ^ supported'CLOCK_REALTIME'105:20: 
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^error for the current target: 
thread-localextern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
 storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported Makefile:176: recipe for target 'src/postgres_deparse.o' failed
make: *** [src/postgres_deparse.o] Error 1
for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
Makefile:176: recipe for target 'src/postgres/src_backend_nodes_list.o' failed
make: *** [src/postgres/src_backend_nodes_list.o] Error 1
Makefile:176: recipe for target 'src/postgres/src_backend_utils_fmgr_fmgr.o' failed
make: *** [src/postgres/src_backend_utils_fmgr_fmgr.o] Error 1
:Makefile:176: recipe for target 'src/postgres/src_backend_utils_mmgr_mcxt.o' failed
make: *** [src/postgres/src_backend_utils_mmgr_mcxt.o] Error 1
src/postgres/src_backend_commands_define.c:4964:
./src/postgres/include/utils/builtins.h:
./src/postgres/include/utils/builtins.h::76:20: error: thread-local storage is not supported for the current
./src/postgres/include/portability/instr_time.h: target106:
24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIMEextern PGDLLIMPORT __thread bool quote_all_identifiers;

                        ^
                   ^
In file included from src/postgres/src_backend_utils_mb_mbutils.c:65:
./src/postgres/include/utils/memutils.h:58:20:is not supported for error:  the currentthread-local  storagetarget is not
 supported for the current targetextern PGDLLIMPORT __thread const char *debug_query_string;

                   ^extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^

./src/postgres/include/utils/memutils.h:59./src/postgres/include/tcop/tcopprot.h:30:20: :20error::  thread-local error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from pl_gram.y:25:
76storage:./src/postgres/include/utils/builtins.h is 20not : supported for the current target
error: extern PGDLLIMPORT __thread int max_stack_depth;
thread-local                   ^
 storage is not supported for the current target
extern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
4 errors generated.
:76:20src/postgres/src_backend_storage_ipc_ipc.c:: error
: 47thread-local storage :In file included from src/postgres/src_backend_catalog_namespace.c./src/postgres/include/plpgsql.h:151::1212 :8:
:In file included from  ./src/postgres/include/funcapi.h:21:
In file included from errorerror: : thread-local is storage is not supported for the current target
extern __thread bool plpgsql_check_syntax;not supported for
       ^
In file included from src/postgres/src_backend_utils_error_elog.c:135:
./src/postgres/include/executor/executor.h./src/postgres/include/plpgsql.h :1213theIn file included from :8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_DumpExecTree;
       ^
./src/postgres/include/plpgsql.h:1215:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_stmt_block *plpgsql_parse_result;
       ^
./src/postgres/include/plpgsql.h:1217:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_nDatums;
       ^
./src/postgres/include/plpgsql.h:1218:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_datum **plpgsql_Datums;
       ^
./src/postgres/include/plpgsql.h:1220:8: error: thread-local storagethread-local: storageIn file included from 21 src/postgres/src_backend_utils_adt_ruleutils.c:is72 :
not ./src/postgres/include/utils/guc.h:252:20supported: for the current  target
error: __thread bool           proc_exit_inprogress = false;
^1 is not supported for the current  ./src/postgres/include/tcop/tcopprot.h:In file included from current targetMakefile:176: recipe for target 'src/pg_query_parse_plpgsql.o' failed
src/postgres/src_backend_utils_activity_pgstat_database.c warning: and make: *** [src/pg_query_parse_plpgsql.o] Error 1
626 error:
In file included from In file included from :
src/postgres/src_pl_plpgsql_src_pl_comp.c:63:
In file included from ./src/postgres/include/plpgsql.h:22:
In file included from 
./src/postgres/include/executor/spi.h:thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool check_function_bodies;
                   ^
./src/postgres/include/utils/guc.h:259:20: 17 errors generated.
Makefile:176: recipe for target 'src/pg_query_outfuncs_json.o' failed
make: *** [src/pg_query_outfuncs_json.o] Error 1
In file included from src/postgres/src_backend_tcop_postgres.c:48:
In file included from ./src/postgres/include/access/printtup.h:17:
In file included from ./src/postgres/include/utils/portal.h:50:
In file included from ./src/postgres/include/executor/execdesc.h:18src/postgres/src_backend_utils_mb_mbutils.c:100:8: :
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^target
extern __thread char *plpgsql_error_funcname;
       ^

./src/postgres/include/plpgsql.h:1222:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_function *plpgsql_curr_compile;
       ^
./src/postgres/include/plpgsql.h:1223:8: error: thread-local storage is not supported for the current target
extern __thread MemoryContext plpgsql_compile_tmp_cxt;
       ^
In file included from src/postgres/src_backend_catalog_pg_proc.c:44:
./src/postgres/include/pgstat.h:767:20: error: thread-local storage is not supported for the current target21:


./src/postgres/include/utils/guc.hextern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
extern PGDLLIMPORT __thread SessionEndType pgStatSessionEndCause;
                   ^
Makefile:176: recipe for target 'src/postgres/src_backend_storage_ipc_ipc.o' failed
make: *** [src/postgres/src_backend_storage_ipc_ipc.o] Error 1
fatal error: too many errors emitted, stopping now [-ferror-limit=]
:252:20./src/postgres/include/portability/instr_time.h:116:16: :error:  use of undeclared identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
./src/postgres/include/portability/instr_time.h:106:24: note: expanded from macro 'PG_INSTR_CLOCK'
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
In file included from src/postgres/src_backend_catalog_pg_proc.c:47:
In file included from ./src/postgres/include/tcop/tcopprot.h:21:
./src/postgres/include/utils/guc.h:252:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool check_function_bodies;
                   ^
./src/postgres/include/utils/guc.h:259:20: error: thread-local1 storage is not supported for the current target
extern PGDLLIMPORT __thread int log_min_messages;
                   ^
./src/postgres/include/utils/guc.h:266:20: error: thread-local storage is not4 errors generated.
 supported for the current target
s./src/postgres/include/utils/pgstat_internal.h generated.
:18./src/postgres/include/utils/memutils.h20:
::
./src/postgres/include/pgstat.herror: thread-local :storage is not supported for the current target
extern PGDLLIMPORT __thread int log_min_messages;
                   ^
./src/postgres/include/utils/guc.h:266:20: error: thread-local storage is not supported error: thread-local In file included from for the errorstorage is warning : not supported 58./src/postgres/include/parser/parser.h:20::56 :error: 20: error: thread-local storage is not supported for the current target
 and 20 errorextern PGDLLIMPORT __thread int backslash_quote;
                   ^
s generated.
./src/postgres/include/parser/parser.h:57:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
./src/postgres/include/parser/parser.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
1 warning and In file included from src/postgres/src_pl_plpgsql_src_pl_comp.c:63:
./src/postgres/include/plpgsql.h:1194:8: error: thread-local storage is not supported for extern PGDLLIMPORT __thread char *backtrace_functions;767theforcurrentsrc/postgres/src_pl_plpgsql_src_pl_handler.c 
target                   ^

:28:
In file included from  the current targetextern PGDLLIMPORT __thread char *backtrace_functions;
                   ^

static __thread FmgrInfo *Utf8ToServerConvProc = NULL;
       ^
src/postgres/src_backend_utils_mb_mbutils.c:106:8: error: thread-local storage is not supported for the current target
static __thread const pg_enc2name *ClientEncoding = &pg_enc2name_tbl[PG_SQL_ASCII];
       ^
src/postgres/src_backend_utils_mb_mbutils.c:108:8: error: thread-local storage is not supported for the current target
static __thread const pg_enc2name *DatabaseEncoding = &pg_enc2name_tbl[PG_SQL_ASCII];
       ^
Makefile:176: recipe for target 'src/pg_query_outfuncs_protobuf.o' failed
make: *** [src/pg_query_outfuncs_protobuf.o] Error 1
src/postgres/src_backend_utils_mb_mbutils.c5 errors generated.
:110:8: error: thread-local storage is not supported for the current target
static __thread const pg_enc2name *MessageEncoding = &pg_enc2name_tbl[PG_SQL_ASCII];
       ^
In file included from src/postgres/src_backend_catalog_pg_proc.c:47:
./src/postgres/include/tcop/tcopprot.h:28:20: error: thread-local storage is not supported for theMakefile:176: recipe for target 'src/postgres/src_backend_commands_define.o' failed
make: *** [src/postgres/src_backend_commands_define.o] Error 1
 current target
extern PGDLLIMPORT __thread CommandDest whereToSendOutput;
                   ^
./src/postgres/include/tcop/tcopprot.h:29:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread const char *debug_query_string;
                   ^
./src/postgres/include/tcop/tcopprot.h:30:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int max_stack_depth;
                   ^
11 errors generated.
fatal error: toothread-local  storagethread-local: storage20: error: ./src/postgres/include/funcapi.h:21:
In file included from   is notis not supported for./src/postgres/include/executor/executor.h:21:
 the./src/postgres/include/utils/memutils.h current: 58target:20
: errorextern PGDLLIMPORT __thread MemoryContext TopMemoryContext;: 
                   ^thread-local storage 
 current is target
not extern __thread IdentifierLookup plpgsql_IdentifierLookup;supported 
for the ./src/postgres/include/utils/memutils.h:current59 :target20:Makefile:176: recipe for target 'src/postgres/src_backend_nodes_makefuncs.o' failed
make: *** [src/postgres/src_backend_nodes_makefuncs.o] Error 1
In file included from src/postgres/src_backend_nodes_copyfuncs.c:
75:
In file included from ./src/postgres/include/copyfuncs.funcs.c:21:
In file included from ./src/postgres/include/access/tsmapi.h:15:
In file included from ./src/postgres/include/nodes/execnodes.h: 33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: impliciterror declaration : ofextern PGDLLIMPORT __thread MemoryContext TopMemoryContext; function
                   ^ 'clock_gettime'thread-local storage
 is invalid in C99 [-Wimplicit-function-declaration]
 is not supported         clock_gettime(PG_INSTR_CLOCK, &tmp);for
 the        ^ 
current target
./src/postgres/include/utils/memutils.h:extern PGDLLIMPORT __thread MemoryContext ErrorContext;59:
                   ^
20many errors emitted, stoppingthread-local now  [-ferror-limit=]supported
 for the current target
extern PGDLLIMPORT __thread bool check_function_bodies;
                   ^
./src/postgres/include/utils/guc.h:259:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int log_min_messages;
                   ^
./src/postgres/include/utils/guc.h:266:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread char *backtrace_functions;
                   ^
Makefile:176: recipe for target 'src/postgres/src_pl_plpgsql_src_pl_scanner.o' failed
make: *** [src/postgres/src_pl_plpgsql_src_pl_scanner.o] Error 1
1 warning and 20 errors generated.
In file included from src/postgres/src_backend_utils_error_elog.c:135:
./src/postgres/include/tcop/tcopprot.h:28:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread CommandDest whereToSendOutput;
                   ^
./src/postgres/include/tcop/tcopprot.h:29:20: error: thread-local storage is not supported for ./src/postgres/include/portability/instr_time.hthe current :116:16target: 
errorextern PGDLLIMPORT __thread const char *debug_query_string;
:        ^:
                    ^storage
 is ./src/postgres/include/tcop/tcopprot.hnot :supported30: for the current target
./src/postgres/include/plpgsql.h:1196:8: extern PGDLLIMPORT __thread SessionEndType pgStatSessionEndCause;error: 
thread-local storage is not supported                   ^ 
use20: error: thread-local storage is not supported for the current target
Makefile:176: recipe for target 'src/postgres/src_backend_utils_mb_mbutils.o' failed
make: *** [src/postgres/src_backend_utils_mb_mbutils.o] Error 1
extern PGDLLIMPORT __thread int max_stack_depth;
                   ^
for the  error: thread-local storage is not supported for the current target
In file included from src/postgres/src_backend_nodes_equalfuncs.c:99:
In file included from ./src/postgres/include/equalfuncs.funcs.c:21extern PGDLLIMPORT __thread MemoryContext ErrorContext;
:
In file included from ./src/postgres/include/access/tsmapi.h:15:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
                   ^
In file included from src/postgres/src_backend_utils_error_elog.c:137:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
current target
extern __thread int plpgsql_variable_conflict;
./src/postgres/include/portability/instr_time.h:116:16:        ^
error: use./src/postgres/include/plpgsql.h :1198:8:of undeclared  identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
error                      ^: 
./src/postgres/include/portability/instr_time.hthread-local storage is :106:24: note: expanded from macronot 'PG_INSTR_CLOCK'
 supported#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^ for
 the current target
extern __thread bool plpgsql_print_strict_params;
       ^
./src/postgres/include/plpgsql.h:1212:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_check_syntax;
       ^
./src/postgres/include/plpgsql.h:1213:8: error: thread-local storage is not supported for the current targetMakefile:176: recipe for target 'src/postgres/src_backend_utils_adt_ruleutils.o' failed

make: *** [src/postgres/src_backend_utils_adt_ruleutils.o] Error 1
extern __thread bool plpgsql_DumpExecTree;
       ^
./src/postgres/include/plpgsql.h:1215:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_stmt_block *plpgsql_parse_result;
       ^
./src/postgres/include/plpgsql.h:1217:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_nDatums;
       ^
./src/postgres/include/plpgsql.h:1218:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_datum **plpgsql_Datums;
       ^
./src/postgres/include/plpgsql.h:1220:8: error: thread-local storage is not supported for the current target
extern __thread char *plpgsql_error_funcname;
       ^
fatal error: too many errors emitted, stopping  of 9 errorsundeclared generated.
 identifier 'CLOCK_REALTIME'
        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^now 
[-ferror-limit=]
./src/postgres/include/portability/instr_time.h:106:24: note: expandedIn file included from  frompl_gram.y macro 'PG_INSTR_CLOCK'
:27:
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
In file included from ./src/postgres/include/plpgsql.h:21:
In file included from ./src/postgres/include/commands/trigger.h:18:
In file included from ./src/postgres/include/nodes/execnodes.h:33:
In file included from ./src/postgres/include/executor/instrument.h:16:
./src/postgres/include/portability/instr_time.h:116:2: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
        clock_gettime(PG_INSTR_CLOCK, &tmp);
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from src/postgres/src_backend_utils_misc_guc_tables.c:64:
./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: error: src/postgres/src_backend_utils_activity_pgstat_database.c:38thread-local storage is not supported for the current targetIn file included from 
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
src/postgres/src_pl_plpgsql_src_pl_handler.c:29./src/postgres/include/parser/parser.h:58:
:1:20./src/postgres/include/miscadmin.h::90: 20::  error: errorerror: : thread-local storage is not thread-localsupported for the  storagecurrent  istarget 
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
not thread-local storage is notsupported for  the current supportedtarget
 for the current target
__thread SessionEndType pgStatSessionEndCause = DISCONNECT_NORMAL;
^
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
./src/postgres/include/portability/instr_time.h:116:./src/postgres/include/miscadmin.h:103:20: error: 16thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:104:20: error: thread-local storage is not supported for the current target:
 extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:1051 warning and 12 errors generated.
In file included from src/postgres/src_backend_utils_misc_guc_tables.c:65:
In file included from ./src/postgres/include/pgstat.h:18:
In file included from ./src/postgres/include/utils/backend_status.h:15:
./src/postgres/include/miscadmin.h::20: 90:20: error: error: thread-localthread-local  storage isstorage  not supportedis not  forsupported for  the current errortargetIn file included from 
src/postgres/src_backend_nodes_nodeFuncs.c:32:
theextern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                    ^current
 target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^./src/postgres/include/miscadmin.h:103:20: : 
error: thread-local storage is Makefile:176: recipe for target 'src/pg_query_fingerprint.o' failed
notmake: *** [src/pg_query_fingerprint.o] Error 1
 supported for the current./src/postgres/include/miscadmin.h :target170:
20: error: thread-localextern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount; 
storage                    ^is
 not supported for ./src/postgres/include/miscadmin.hthe: 104current: 20target:./src/postgres/include/utils/builtins.h 
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
error: thread-local storage is not supported for the current target
:extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:105:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
76:./src/postgres/include/miscadmin.h:170:20: error: 20:thread-local  storage erroris:  not supported for the current target
thread-localextern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^ 
storage is not supported forIn file included from src/postgres/src_backend_tcop_postgres.c:52:
 the useIn file included from  ofcurrent  target./src/postgres/include/commands/prepare.hundeclared :16:
In file included from 
extern PGDLLIMPORT __thread bool quote_all_identifiers;identifier ./src/postgres/include/commands/explain.h'CLOCK_REALTIME':
16        clock_gettime(PG_INSTR_CLOCK, &tmp);
                      ^
:

In file included from src/postgres/src_backend_utils_misc_guc_tables.c:65In file included from ./src/postgres/include/executor/executor.h:21:
1 warning and 20 errors generated.
:
./src/postgres/include/pgstat.h:Makefile:176: recipe for target 'src/postgres/src_backend_utils_activity_pgstat_database.o' failed
make: *** [src/postgres/src_backend_utils_activity_pgstat_database.o] Error 1
767:20: error:                    ^thread-local storage is not supported for the current target
./src/postgres/include/utils/memutils.hextern PGDLLIMPORT __thread SessionEndType pgStatSessionEndCause;
                   ^
:58:./src/postgres/include/portability/instr_time.h20:106: error: 1 warningthread-local storage is not supported and 20 for the errors current  generated.

In file included from src/postgres/src_backend_nodes_equalfuncs.c:99:
In file included from ./src/postgres/include/equalfuncs.funcs.c:28:
In file included from ./src/postgres/include/nodes/extensible.h:18:
In file included from ./src/postgres/include/commands/explain.h:16:
In file included from ./src/postgres/include/executor/executor.h:21:
./src/postgres/include/utils/memutils.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_pl_plpgsql_src_pl_handler.c:30:
In file included from ./src/postgres/include/plpgsql.h:22:
In file included from ./src/postgres/include/executor/spi.h:18:
./src/postgres/include/parser/parser.h:56:20: error:: 24: Makefile:176: recipe for target 'src/postgres/src_backend_utils_error_elog.o' failed
make: *** [src/postgres/src_backend_utils_error_elog.o] Error 1
note: thread-local storageexpanded  isfrom target macro
 not'PG_INSTR_CLOCK' extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;supported

                   ^
#define PG_INSTR_CLOCK  CLOCK_REALTIME
                        ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext; 
for the                   ^ current
 target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: 1error: thread-local warning and 11 errors generated.
In file included from src/postgres/src_backend_catalog_namespace.c:53:
./src/postgres/include/miscadmin.h:90:20: error : storage is not supported thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^
./src/postgres/include/miscadmin.h:103:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:104:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:105:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
In file included from src/postgres/src_backend_utils_misc_guc_tables.c:81:
./src/postgres/include/tcop/tcopprot.h:28:20: error: thread-local storage is not supportedIn file included from src/postgres/src_backend_nodes_copyfuncs.c: forfor the the current target
 current extern PGDLLIMPORT __thread CommandDest whereToSendOutput;
                   ^
target
./src/postgres/include/tcop/tcopprot.h:29:20extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
: error: thread-local storage is 75./src/postgres/include/parser/parser.h:58:not20: supported for  Makefile:176: recipe for target 'src/postgres/src_backend_catalog_pg_proc.o' failed
make: *** [src/postgres/src_backend_catalog_pg_proc.o] Error 1
theerror : current targetthread-local
 storage is not supported for the currentextern PGDLLIMPORT __thread const char *debug_query_string; 
target
                   ^
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from src/postgres/src_backend_catalog_namespace.c:56:
In file included from ./src/postgres/include/copyfuncs.funcs.c:
./src/postgres/include/storage/ipc.h::28:
In file included from 65:./src/postgres/include/nodes/extensible.h20::18 :
error: In file included from ./src/postgres/include/commands/explain.h:thread-local16:
In file included from  storage./src/postgres/include/executor/executor.h :is21 not supported for the :
./src/postgres/include/utils/memutils.hcurrent: target
58:20extern PGDLLIMPORT __thread bool proc_exit_inprogress;: error: thread-local storage is
                   ^
 not supported for the current target
Makefile:176: recipe for target 'src/postgres/src_backend_nodes_nodeFuncs.o' failed
make: *** [src/postgres/src_backend_nodes_nodeFuncs.o] Error 1
extern PGDLLIMPORT __thread MemoryContext TopMemoryContext;
                   ^
./src/postgres/include/utils/memutils.h:59:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread MemoryContext ErrorContext;
                   ^
In file included from src/postgres/src_pl_plpgsql_src_pl_handler.c:30:
./src/postgres/include/plpgsql.h:1194:8: error: thread-local storage is not supported for the current target
extern __thread IdentifierLookup plpgsql_IdentifierLookup;
       ^
./src/postgres/include/plpgsql.h:1196:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_variable_conflict;
       ^
./src/postgres/include/plpgsql.h:1198:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_print_strict_params;
       ^
./src/postgres/include/plpgsql.h:1212:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_check_syntax;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
scan.c:5370:8: error: thread-local storage is not supported for the current target
static __thread const struct yy_trans_info *yy_start_state_list[25] =
       ^
scan.l:68:1: error: thread-local storage is not supported for In file included from pl_gram.y:27:
the current target
__thread int                    backslash_quote = BACKSLASH_QUOTE_SAFE_ENCODING;
^
./src/postgres/include/plpgsql.h:1194:8:scan.l :70:1: error: thread-local errorstorage:  thread-localis not  storagesupported for  is the current targetnot supported 
for__thread bool           escape_string_warning = true; the current target

extern __thread IdentifierLookup plpgsql_IdentifierLookup;^

       ^
scan.l:72:1./src/postgres/include/plpgsql.h:: 1196:8:error : errorthread-local:  storage thread-localis  storagenot  issupported  notfor  thesupported  currentfor  thetarget current
 __thread bool           standard_conforming_strings = true;target
extern __thread int plpgsql_variable_conflict;

^
       ^
./src/postgres/include/plpgsql.h:1198:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_print_strict_params;
       ^
./src/postgres/include/plpgsql.h:1212:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_check_syntax;
       ^
./src/postgres/include/plpgsql.h:1213:8: error: thread-local storage is not supported for the current target
extern __thread bool plpgsql_DumpExecTree;
       ^
./src/postgres/include/plpgsql.h:1215:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_stmt_block *plpgsql_parse_result;
In file included from        ^
src/postgres/src_backend_catalog_namespace.c:60./src/postgres/include/plpgsql.h:1217:8: error: thread-local storage is not supported for the current target
extern __thread int plpgsql_nDatums;
       ^
:
./src/postgres/include/plpgsql.h./src/postgres/include/utils/builtins.h:76:1218:8: :error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_datum **plpgsql_Datums;
       ^
./src/postgres/include/plpgsql.h:1220:8: error: thread-local storage is not supported for the current target
extern __thread char *plpgsql_error_funcname;
       ^
./src/postgres/include/plpgsql.h:1222:8: error: thread-local storage is not supported for the current target
extern __thread PLpgSQL_function *plpgsql_curr_compile;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool quote_all_identifiers;
                   ^
1 warning and 20 errors generated.
In file included from src/postgres/src_backend_catalog_namespace.c:62:
In file included from ./src/postgres/include/utils/guc_hooks.h:19:
./src/postgres/include/utils/guc.h:252:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool check_function_bodies;
                   ^
./src/postgres/include/utils/guc.h:259:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int log_min_messages;
                   ^
./src/postgres/include/utils/guc.h:266:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread char *backtrace_functions;
In file included from src/postgres/src_backend_tcop_postgres.c:60:
./src/postgres/include/miscadmin.h:90:20: error: thread-local storage is not supported for the current target
                   ^extern PGDLLIMPORT __thread volatile sig_atomic_t InterruptPending;
                   ^

./src/postgres/include/miscadmin.h:103:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 InterruptHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:104:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 QueryCancelHoldoffCount;
                   ^
./src/postgres/include/miscadmin.h:105:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread volatile uint32 CritSectionCount;
                   ^
./src/postgres/include/miscadmin.h:170:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool ExitOnAnyError;
                   ^
12 errors1 generated.
 warning and 20 errors generated.
1 warning and 12 errors generated.
Makefile:176: recipe for target 'src/postgres/src_pl_plpgsql_src_pl_comp.o' failed
make: *** [src/postgres/src_pl_plpgsql_src_pl_comp.o] Error 1
1 warning and 17 errors generated.
In file included from src/postgres/src_backend_tcop_postgres.c:64:
./src/postgres/include/parser/parser.h:56:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int backslash_quote;
                   ^
./src/postgres/include/parser/parser.h:57:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool escape_string_warning;
                   ^
./src/postgres/include/parser/parser.h:58:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool standard_conforming_strings;
                   ^
1 warning and 20 errors generated.
Makefile:176: recipe for target 'src/postgres/src_backend_parser_scan.o' failed
make: *** [src/postgres/src_backend_parser_scan.o] Error 1
Makefile:176: recipe for target 'src/postgres/src_pl_plpgsql_src_pl_handler.o' failed
make: *** [src/postgres/src_pl_plpgsql_src_pl_handler.o] Error 1
Makefile:176: recipe for target 'src/postgres/src_backend_nodes_equalfuncs.o' failed
make: *** [src/postgres/src_backend_nodes_equalfuncs.o] Error 1
In file included from src/postgres/src_backend_tcop_postgres.c:67:
./src/postgres/include/pgstat.h:767:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread SessionEndType pgStatSessionEndCause;
                   ^
Makefile:176: recipe for target 'src/postgres/src_backend_catalog_namespace.o' failed
make: *** [src/postgres/src_backend_catalog_namespace.o] Error 1
Makefile:176: recipe for target 'src/postgres/src_backend_utils_misc_guc_tables.o' failed
make: *** [src/postgres/src_backend_utils_misc_guc_tables.o] Error 1
1 warning and 20 errors generated.
In file included from src/postgres/src_backend_tcop_postgres.c:77:
./src/postgres/include/storage/ipc.h:65:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool proc_exit_inprogress;
                   ^
In file included from src/postgres/src_backend_tcop_postgres.c:84:
In file included from ./src/postgres/include/tcop/tcopprot.h:21:
./src/postgres/include/utils/guc.h:252:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread bool check_function_bodies;
                   ^
./src/postgres/include/utils/guc.h:259:20: error: thread-local storage is not supported for the current target
extern PGDLLIMPORT __thread int log_min_messages;
                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Makefile:176: recipe for target 'src/postgres/src_pl_plpgsql_src_pl_gram.o' failed
make: *** [src/postgres/src_pl_plpgsql_src_pl_gram.o] Error 1
1 warning and 20 errors generated.
Makefile:176: recipe for target 'src/postgres/src_backend_tcop_postgres.o' failed
make: *** [src/postgres/src_backend_tcop_postgres.o] Error 1
4 errors generated.
Makefile:176: recipe for target 'src/pg_query_readfuncs_protobuf.o' failed
make: *** [src/pg_query_readfuncs_protobuf.o] Error 1
1 warning and 12 errors generated.
Makefile:176: recipe for target 'src/postgres/src_backend_nodes_copyfuncs.o' failed
make: *** [src/postgres/src_backend_nodes_copyfuncs.o] Error 1
1 warning and 8 errors generated.
Makefile:176: recipe for target 'src/postgres/src_backend_parser_gram.o' failed
make: *** [src/postgres/src_backend_parser_gram.o] Error 1

@froque froque closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant