* installing *source* package ‘RPostgreSQL’ ...
** package ‘RPostgreSQL’ successfully unpacked and MD5 sums checked
** using staged installation
checking build system type... aarch64-apple-darwin22.5.0
checking host system type... aarch64-apple-darwin22.5.0
checking target system type... aarch64-apple-darwin22.5.0
checking for pg_config... no
configure: checking for PostgreSQL header files
configure: Checking include /usr/include.
configure: Checking include /usr/include/postgresql.
configure: Checking include /usr/local/include.
configure: Checking include /usr/local/include/postgresql.
configure: Checking include /usr/local/pgsql/include.
configure: Checking include /usr/local/postgresql/include.
configure: Checking lib /usr/lib.
configure: Checking lib /usr/lib/postgresql.
configure: Checking lib /usr/local/lib.
configure: Checking lib /usr/local/lib/postgresql.
configure: Checking lib /usr/local/postgresql/lib.
clang -arch arm64 -falign-functions=64 -Wall -g -O2 -I -L conftest.c -lpq -o pqconftest
conftest.c:1:10: fatal error: 'libpq-fe.h' file not found
#include <libpq-fe.h>
         ^~~~~~~~~~~~
1 error generated.
./pqconftest
./configure: line 1999: ./pqconftest: No such file or directory
system -lpq don't appear to work; use internal
configure: Using internal package libpq-fe.h
checking for "src/libpq/libpq-fe.h"... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
using SDK: ‘MacOSX11.3.sdk’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-DBI.c -o RS-DBI.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-PQescape.c -o RS-PQescape.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-PostgreSQL.c -o RS-PostgreSQL.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-copy.c -o RS-pgsql-copy.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-getResult.c -o RS-pgsql-getResult.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-pqexec.c -o RS-pgsql-pqexec.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilibpq  -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RS-pgsql-pqexecparams.c -o RS-pgsql-pqexecparams.o
(cd libpq; make CC="clang -arch arm64" CFLAGS="-falign-functions=64 -Wall -g -O2 " -f Makefile.darwin pg_config.h pg_config_os.h all)
cp pg_config.h.darwin pg_config.h
cp pg_config_os.h.darwin pg_config_os.h
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-auth.o fe-auth.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-connect.o fe-connect.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-exec.o fe-exec.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-misc.o fe-misc.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-print.o fe-print.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-lobj.o fe-lobj.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-protocol2.o fe-protocol2.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-protocol3.o fe-protocol3.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o pqexpbuffer.o pqexpbuffer.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o fe-secure.o fe-secure.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o libpq-events.o libpq-events.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o chklocale.o chklocale.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o inet_net_ntop.o inet_net_ntop.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o noblock.o noblock.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o pgstrcasecmp.o pgstrcasecmp.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o pqsignal.o pqsignal.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o thread.o thread.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o ip.o ip.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o md5.o md5.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o encnames.o encnames.c
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND -DUNSAFE_STAT_OK -I. -I../src/include  -I. -DSO_MAJOR_VERSION=5  -c -o wchar.o wchar.c
awk '/^[^#]/ {printf "_%s\n",$1}' exports.txt >exports.list
clang -arch arm64 -falign-functions=64 -Wall -g -O2  -D_REENTRANT  -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -dynamiclib -install_name '/usr/local/pgsql/lib/libpq.5.dylib' -compatibility_version 5 -current_version 5.9 -exported_symbols_list exports.list -multiply_defined suppress -o libpq.5.9.dylib fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o fe-protocol2.o fe-protocol3.o pqexpbuffer.o fe-secure.o libpq-events.o chklocale.o inet_net_ntop.o noblock.o pgstrcasecmp.o pqsignal.o thread.o  ip.o md5.o encnames.o wchar.o -Wl,-dead_strip_dylibs     
rm -f libpq.5.dylib
ln -s libpq.5.9.dylib libpq.5.dylib
rm -f libpq.dylib
ln -s libpq.5.9.dylib libpq.dylib
rm -f libpq.a
ar crs libpq.a fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o fe-protocol2.o fe-protocol3.o pqexpbuffer.o fe-secure.o libpq-events.o chklocale.o inet_net_ntop.o noblock.o pgstrcasecmp.o pqsignal.o thread.o ip.o md5.o encnames.o wchar.o
ranlib libpq.a
clang -arch arm64 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o RPostgreSQL.so RS-DBI.o RS-PQescape.o RS-PostgreSQL.o RS-pgsql-copy.o RS-pgsql-getResult.o RS-pgsql-pqexec.o RS-pgsql-pqexecparams.o libpq/libpq.a -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.4/RPostgreSQL.Rcheck/00LOCK-RPostgreSQL/00new/RPostgreSQL/libs
** generating debug symbols (dSYM)
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RPostgreSQL)