gcc -I/opt/homebrew/opt/postgresql@15/include -I/opt/homebrew/Cellar/openssl@3/3.2.1/include -fPIC -c -o pkg/publisher/pg/clibpq/copy.o pkg/publisher/pg/clibpq/copy.c
gcc -shared -L/opt/homebrew/opt/postgresql@15/lib -lpq -o pkg/publisher/pg/clibpq/libcopy.so pkg/publisher/pg/clibpq/copy.o
ld: warning: ignoring file '/opt/homebrew/Cellar/postgresql@15/15.6_1/lib/libpq.5.15.dylib': found architecture 'arm64', required architecture 'x86_64'
ld: Undefined symbols:
_PQclear, referenced from:
_copy_table_data in copy.o
_copy_table_data in copy.o
_copy_table_data in copy.o
_start_copy_origin_tx in copy.o
_start_copy_origin_tx in copy.o
_start_copy_target_tx in copy.o
_finish_copy_origin_tx in copy.o
...
clang: error: linker command failed with exit code 1 (use -v to see invocation)