# RuntimeError: PostgreSQL compilation failed

**URL:** <https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499>\
**Category:** General\
**Created:** [June 12, 2025, 3:57pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499 "2025-06-12T15:57:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielCoder834](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/danielcoder834/32/961_2.png) [@DanielCoder834](https://forum.yugabyte.com/u/DanielCoder834)\
**Post date:** [June 12, 2025, 3:57pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/1 "2025-06-12T15:57:54Z")

</div>

Hi, I am new to YugaByte and I want to contribute to the codebase. I followed the [build insturction](https://docs.yugabyte.com/preview/contribute/core-database/build-from-src-macos/) for Mac M1, but I got this error. What does this error mean and what would you recommend I do to fix this? Thank you for any help.

 ![Screenshot 2025-06-12 at 10.02.43 AM](https://canada1.discourse-cdn.com/flex027/uploads/yugabyte/original/1X/eb56b4ed82bb03e81e01b56161760a53a6588a66.png)

---

<div class="post-metadata">

**Author:** ![jason](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/jason/32/114_2.png) [@jason](https://forum.yugabyte.com/u/jason)\
**Post date:** [June 12, 2025, 6:40pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/2 "2025-06-12T18:40:47Z")

</div>

Hi. I maintain the linux compilation instructions. No one maintains the mac instructions. If possible, it is recommended you use Almalinux 8 for the smoothest experience. Otherwise, I can still attempt to help.

- Can you send and/or look at `build/latest/postgres_build/config.log`, `build/latest/postgres_build/make.out`, `build/latest/postgres_build/make.err`?
- You may be missing packages. Look at the linux instructions for inspiration on what might be missing.

---

<div class="post-metadata">

**Author:** ![DanielCoder834](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/danielcoder834/32/961_2.png) [@DanielCoder834](https://forum.yugabyte.com/u/DanielCoder834)\
**Post date:** [June 12, 2025, 7:36pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/3 "2025-06-12T19:36:42Z")

</div>

Thank you for the response.  
Here is the response from the make.err:  
cat: access/objfiles.txt: No such file or directory  
cat: backup/objfiles.txt: No such file or directory  
cat: bootstrap/objfiles.txt: No such file or directory  
cat: catalog/objfiles.txt: No such file or directory  
cat: parser/objfiles.txt: No such file or directory  
cat: commands/objfiles.txt: No such file or directory  
cat: executor/objfiles.txt: No such file or directory  
cat: foreign/objfiles.txt: No such file or directory  
cat: lib/objfiles.txt: No such file or directory  
cat: libpq/objfiles.txt: No such file or directory  
cat: main/objfiles.txt: No such file or directory  
cat: nodes/objfiles.txt: No such file or directory  
cat: optimizer/objfiles.txt: No such file or directory  
cat: partitioning/objfiles.txt: No such file or directory  
cat: port/objfiles.txt: No such file or directory  
cat: postmaster/objfiles.txt: No such file or directory  
cat: regex/objfiles.txt: No such file or directory  
cat: replication/objfiles.txt: No such file or directory  
cat: rewrite/objfiles.txt: No such file or directory  
cat: statistics/objfiles.txt: No such file or directory  
cat: storage/objfiles.txt: No such file or directory  
cat: tcop/objfiles.txt: No such file or directory  
cat: tsearch/objfiles.txt: No such file or directory  
cat: utils/objfiles.txt: No such file or directory  
cat: jit/objfiles.txt: No such file or directory  
cat: ybgate/objfiles.txt: No such file or directory  
cat: access/objfiles.txt: No such file or directory  
cat: backup/objfiles.txt: No such file or directory  
cat: bootstrap/objfiles.txt: No such file or directory  
cat: catalog/objfiles.txt: No such file or directory  
cat: parser/objfiles.txt: No such file or directory  
cat: commands/objfiles.txt: No such file or directory  
cat: executor/objfiles.txt: No such file or directory  
cat: foreign/objfiles.txt: No such file or directory  
cat: lib/objfiles.txt: No such file or directory  
cat: libpq/objfiles.txt: No such file or directory  
cat: main/objfiles.txt: No such file or directory  
cat: nodes/objfiles.txt: No such file or directory  
cat: optimizer/objfiles.txt: No such file or directory  
cat: partitioning/objfiles.txt: No such file or directory  
cat: port/objfiles.txt: No such file or directory  
cat: postmaster/objfiles.txt: No such file or directory  
cat: regex/objfiles.txt: No such file or directory  
cat: replication/objfiles.txt: No such file or directory  
cat: rewrite/objfiles.txt: No such file or directory  
cat: statistics/objfiles.txt: No such file or directory  
cat: storage/objfiles.txt: No such file or directory  
cat: tcop/objfiles.txt: No such file or directory  
cat: tsearch/objfiles.txt: No such file or directory  
cat: utils/objfiles.txt: No such file or directory  
cat: jit/objfiles.txt: No such file or directory  
cat: ybgate/objfiles.txt: No such file or directory  
cat: access/objfiles.txt: No such file or directory  
cat: backup/objfiles.txt: No such file or directory  
cat: bootstrap/objfiles.txt: No such file or directory  
cat: catalog/objfiles.txt: No such file or directory  
cat: parser/objfiles.txt: No such file or directory  
cat: commands/objfiles.txt: No such file or directory  
cat: executor/objfiles.txt: No such file or directory  
cat: foreign/objfiles.txt: No such file or directory  
cat: lib/objfiles.txt: No such file or directory  
cat: libpq/objfiles.txt: No such file or directory  
cat: main/objfiles.txt: No such file or directory  
cat: nodes/objfiles.txt: No such file or directory  
cat: optimizer/objfiles.txt: No such file or directory  
cat: partitioning/objfiles.txt: No such file or directory  
cat: port/objfiles.txt: No such file or directory  
cat: postmaster/objfiles.txt: No such file or directory  
cat: regex/objfiles.txt: No such file or directory  
cat: replication/objfiles.txt: No such file or directory  
cat: rewrite/objfiles.txt: No such file or directory  
cat: statistics/objfiles.txt: No such file or directory  
cat: storage/objfiles.txt: No such file or directory  
cat: tcop/objfiles.txt: No such file or directory  
cat: tsearch/objfiles.txt: No such file or directory  
cat: utils/objfiles.txt: No such file or directory  
cat: jit/objfiles.txt: No such file or directory  
cat: ybgate/objfiles.txt: No such file or directory  
cat: access/objfiles.txt: No such file or directory  
cat: backup/objfiles.txt: No such file or directory  
cat: bootstrap/objfiles.txt: No such file or directory  
cat: catalog/objfiles.txt: No such file or directory  
cat: parser/objfiles.txt: No such file or directory  
cat: commands/objfiles.txt: No such file or directory  
cat: executor/objfiles.txt: No such file or directory  
cat: foreign/objfiles.txt: No such file or directory  
cat: lib/objfiles.txt: No such file or directory  
cat: libpq/objfiles.txt: No such file or directory  
cat: main/objfiles.txt: No such file or directory  
cat: nodes/objfiles.txt: No such file or directory  
cat: optimizer/objfiles.txt: No such file or directory  
cat: partitioning/objfiles.txt: No such file or directory  
cat: port/objfiles.txt: No such file or directory  
cat: postmaster/objfiles.txt: No such file or directory  
cat: regex/objfiles.txt: No such file or directory  
cat: replication/objfiles.txt: No such file or directory  
cat: rewrite/objfiles.txt: No such file or directory  
cat: statistics/objfiles.txt: No such file or directory  
cat: storage/objfiles.txt: No such file or directory  
cat: tcop/objfiles.txt: No such file or directory  
cat: tsearch/objfiles.txt: No such file or directory  
cat: utils/objfiles.txt: No such file or directory  
cat: jit/objfiles.txt: No such file or directory  
cat: ybgate/objfiles.txt: No such file or directory  
make[2]: \*\*\* [po/de.mo] Segmentation fault: 11  
make[1]: \*\*\* [all-backend-recurse] Error 2  
make: \*\*\* [all-src-recurse] Error 2

Here is the response for the make.out:  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./src/backend generated-headers  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C catalog distprep generated-header-symlinks  
make[2]: Nothing to be done for `distprep'. make[2]: Nothing to be done for `generated-header-symlinks’.  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C utils distprep generated-header-symlinks  
make[2]: Nothing to be done for `distprep'. make[2]: Nothing to be done for `generated-header-symlinks’.  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src all  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C config all  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C common all  
make[1]: Nothing to be done for `all'. make[2]: Nothing to be done for `all’.  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C port all  
echo “#define PGBINDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/bin"” \>pg\_config\_paths.h  
echo “#define PGSHAREDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/share"” \>\>pg\_config\_paths.h  
echo “#define SYSCONFDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/etc"” \>\>pg\_config\_paths.h  
echo “#define INCLUDEDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/include"” \>\>pg\_config\_paths.h  
echo “#define PKGINCLUDEDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/include"” \>\>pg\_config\_paths.h  
echo “#define INCLUDEDIRSERVER "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/include/server"” \>\>pg\_config\_paths.h  
echo “#define LIBDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/lib"” \>\>pg\_config\_paths.h  
echo “#define PKGLIBDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/lib"” \>\>pg\_config\_paths.h  
echo “#define LOCALEDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/share/locale"” \>\>pg\_config\_paths.h  
echo “#define DOCDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/share/doc/"” \>\>pg\_config\_paths.h  
echo “#define HTMLDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/share/doc/"” \>\>pg\_config\_paths.h  
echo “#define MANDIR "/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres/share/man"” \>\>pg\_config\_paths.h  
/Users/danielkaplan/code/yugabyte-db/build-support/compiler-wrappers/cc -DCATCACHE\_STATS -I/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/src -I/Users/danielkaplan/code/yugabyte-db/src -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/usearch -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/fp16 -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/hnswlib -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/simsimd -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include/libbson-1.0 -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include/bid -Wno-error=unused-but-set-variable -Wno-error=deprecated-non-prototype -Wno-nullability-completeness -Wno-availability -Werror -fno-strict-aliasing -Wall -fsigned-char -ffp-contract=off -Winvalid-pch -pthread -DBOOST\_BIND\_NO\_PLACEHOLDERS -DROCKSDB\_PLATFORM\_POSIX -DBOOST\_ERROR\_CODE\_HEADER\_ONLY -DYB\_COMPILER\_TYPE=clang -DYB\_COMPILER\_VERSION=16.0.0 -DSNAPPY -DLZ4 -DYB\_ZLIB -D\_\_STDC\_FORMAT\_MACROS -Wno-deprecated-declarations -DGFLAGS=gflags -Werror=enum-compare -Werror=switch -Werror=return-type -Werror=string-plus-int -Werror=return-stack-address -Werror=implicit-fallthrough -D\_LIBCPP\_ENABLE\_THREAD\_SAFETY\_ANNOTATIONS -Wthread-safety-analysis -Wthread-safety-reference -Wthread-safety-precise -Wshorten-64-to-32 -DOS\_MACOSX -O3 -g -DNDEBUG -fno-omit-frame-pointer -Wno-ambiguous-member-template -Wimplicit-fallthrough -Qunused-arguments -Wno-c++17-compat-mangling -stdlib=libc++ -D\_GLIBCXX\_EXTERN\_TEMPLATE=0 -fPIC -DYB\_GPERFTOOLS\_TCMALLOC -DYB\_TCMALLOC\_ENABLED -Wimplicit-function-declaration -Wno-error=unused-function -DHAVE\_\_BUILTIN\_CONSTANT\_P=1 -Werror=implicit-function-declaration -Werror=int-conversion -Wno-builtin-requires-header -Wno-shorten-64-to-32 -Wall -Werror -Wno-error=unused-function -Wno-error=array-bounds -Wno-error=gnu-designator -fdebug-prefix-map=/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres\_build=/Users/danielkaplan/code/yugabyte-db/src/postgres -I../../src/port -DFRONTEND -I../../src/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -I/Users/danielkaplan/code/yugabyte-db/src -c -o path.o path.c -MMD -MP -MF .deps/path.Po  
rm -f libpgport.a  
/Users/danielkaplan/code/yugabyte-db/build-support/compiler-wrappers/cc -DCATCACHE\_STATS -I/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/src -I/Users/danielkaplan/code/yugabyte-db/src -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/usearch -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/fp16 -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/hnswlib -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/simsimd -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include/libbson-1.0 -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include/bid -Wno-error=unused-but-set-variable -Wno-error=deprecated-non-prototype -Wno-nullability-completeness -Wno-availability -Werror -fno-strict-aliasing -Wall -fsigned-char -ffp-contract=off -Winvalid-pch -pthread -DBOOST\_BIND\_NO\_PLACEHOLDERS -DROCKSDB\_PLATFORM\_POSIX -DBOOST\_ERROR\_CODE\_HEADER\_ONLY -DYB\_COMPILER\_TYPE=clang -DYB\_COMPILER\_VERSION=16.0.0 -DSNAPPY -DLZ4 -DYB\_ZLIB -D\_\_STDC\_FORMAT\_MACROS -Wno-deprecated-declarations -DGFLAGS=gflags -Werror=enum-compare -Werror=switch -Werror=return-type -Werror=string-plus-int -Werror=return-stack-address -Werror=implicit-fallthrough -D\_LIBCPP\_ENABLE\_THREAD\_SAFETY\_ANNOTATIONS -Wthread-safety-analysis -Wthread-safety-reference -Wthread-safety-precise -Wshorten-64-to-32 -DOS\_MACOSX -O3 -g -DNDEBUG -fno-omit-frame-pointer -Wno-ambiguous-member-template -Wimplicit-fallthrough -Qunused-arguments -Wno-c++17-compat-mangling -stdlib=libc++ -D\_GLIBCXX\_EXTERN\_TEMPLATE=0 -fPIC -DYB\_GPERFTOOLS\_TCMALLOC -DYB\_TCMALLOC\_ENABLED -Wimplicit-function-declaration -Wno-error=unused-function -DHAVE\_\_BUILTIN\_CONSTANT\_P=1 -Werror=implicit-function-declaration -Werror=int-conversion -Wno-builtin-requires-header -Wno-shorten-64-to-32 -Wall -Werror -Wno-error=unused-function -Wno-error=array-bounds -Wno-error=gnu-designator -fdebug-prefix-map=/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres\_build=/Users/danielkaplan/code/yugabyte-db/src/postgres -I../../src/port -DFRONTEND -I../../src/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -I/Users/danielkaplan/code/yugabyte-db/src -c path.c -o path\_shlib.o  
/Users/danielkaplan/code/yugabyte-db/build-support/compiler-wrappers/cc -DCATCACHE\_STATS -I/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/src -I/Users/danielkaplan/code/yugabyte-db/src -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/usearch -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/fp16 -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/hnswlib -I/Users/danielkaplan/code/yugabyte-db/src/inline-thirdparty/simsimd -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include/libbson-1.0 -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include/bid -Wno-error=unused-but-set-variable -Wno-error=deprecated-non-prototype -Wno-nullability-completeness -Wno-availability -Werror -fno-strict-aliasing -Wall -fsigned-char -ffp-contract=off -Winvalid-pch -pthread -DBOOST\_BIND\_NO\_PLACEHOLDERS -DROCKSDB\_PLATFORM\_POSIX -DBOOST\_ERROR\_CODE\_HEADER\_ONLY -DYB\_COMPILER\_TYPE=clang -DYB\_COMPILER\_VERSION=16.0.0 -DSNAPPY -DLZ4 -DYB\_ZLIB -D\_\_STDC\_FORMAT\_MACROS -Wno-deprecated-declarations -DGFLAGS=gflags -Werror=enum-compare -Werror=switch -Werror=return-type -Werror=string-plus-int -Werror=return-stack-address -Werror=implicit-fallthrough -D\_LIBCPP\_ENABLE\_THREAD\_SAFETY\_ANNOTATIONS -Wthread-safety-analysis -Wthread-safety-reference -Wthread-safety-precise -Wshorten-64-to-32 -DOS\_MACOSX -O3 -g -DNDEBUG -fno-omit-frame-pointer -Wno-ambiguous-member-template -Wimplicit-fallthrough -Qunused-arguments -Wno-c++17-compat-mangling -stdlib=libc++ -D\_GLIBCXX\_EXTERN\_TEMPLATE=0 -fPIC -DYB\_GPERFTOOLS\_TCMALLOC -DYB\_TCMALLOC\_ENABLED -Wimplicit-function-declaration -Wno-error=unused-function -DHAVE\_\_BUILTIN\_CONSTANT\_P=1 -Werror=implicit-function-declaration -Werror=int-conversion -Wno-builtin-requires-header -Wno-shorten-64-to-32 -Wall -Werror -Wno-error=unused-function -Wno-error=array-bounds -Wno-error=gnu-designator -fdebug-prefix-map=/Users/danielkaplan/code/yugabyte-db/build/release-clang-dynamic-arm64-ninja/postgres\_build=/Users/danielkaplan/code/yugabyte-db/src/postgres -I../../src/port -I../../src/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/common/include -I/opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20250605223825-96bf8ffaeb-macos-arm64/installed/uninstrumented/include -I/Users/danielkaplan/code/yugabyte-db/src -c path.c -o path\_srv.o  
ar crs libpgport.a explicit\_bzero.o pthread\_barrier\_wait.o pg\_crc32c\_armv8.o bsearch\_arg.o chklocale.o inet\_net\_ntop.o noblock.o path.o pg\_bitutils.o pg\_strong\_random.o pgcheckdir.o pgmkdirp.o pgsleep.o pgstrcasecmp.o pgstrsignal.o pqsignal.o qsort.o qsort\_arg.o quotes.o snprintf.o strerror.o tar.o thread.o  
rm -f libpgport\_shlib.a  
rm -f libpgport\_srv.a  
ar crs libpgport\_shlib.a explicit\_bzero\_shlib.o pthread\_barrier\_wait\_shlib.o pg\_crc32c\_armv8\_shlib.o bsearch\_arg\_shlib.o chklocale\_shlib.o inet\_net\_ntop\_shlib.o noblock\_shlib.o path\_shlib.o pg\_bitutils\_shlib.o pg\_strong\_random\_shlib.o pgcheckdir\_shlib.o pgmkdirp\_shlib.o pgsleep\_shlib.o pgstrcasecmp\_shlib.o pgstrsignal\_shlib.o pqsignal\_shlib.o qsort\_shlib.o qsort\_arg\_shlib.o quotes\_shlib.o snprintf\_shlib.o strerror\_shlib.o tar\_shlib.o thread\_shlib.o  
ar crs libpgport\_srv.a explicit\_bzero\_srv.o pthread\_barrier\_wait\_srv.o pg\_crc32c\_armv8\_srv.o bsearch\_arg\_srv.o chklocale\_srv.o inet\_net\_ntop\_srv.o noblock\_srv.o path\_srv.o pg\_bitutils\_srv.o pg\_strong\_random\_srv.o pgcheckdir\_srv.o pgmkdirp\_srv.o pgsleep\_srv.o pgstrcasecmp\_srv.o pgstrsignal\_srv.o pqsignal\_srv.o qsort\_srv.o qsort\_arg\_srv.o quotes\_srv.o snprintf\_srv.o strerror\_srv.o tar\_srv.o thread\_srv.o  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C timezone all  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../../src/port all  
make[3]: Nothing to be done for `all'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../../src/common all make[3]: Nothing to be done for `all’.  
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C backend all  
/opt/homebrew/bin/msgfmt -c -o po/de.mo po/de.po

**The config.log is too big to post, but I saw multiple complication failures:**  
| COMPILATION FAILED

|-------------------------------------------------------------------------------

clang: error: argument to ‘-V’ is missing (expected 1 value)

clang: error: no input files

* * *

| COMPILATION FAILED

|-------------------------------------------------------------------------------

clang: error: unknown argument ‘-qversion’; did you mean ‘–version’?

clang: error: no input files

* * *

clang++: error: argument to ‘-V’ is missing (expected 1 value)

clang++: error: no input files

* * *

clang++: error: unknown argument ‘-qversion’; did you mean ‘–version’?

clang++: error: no input files

* * *

(What does this mean by the way?)  
conftest.c:25:1: error: use of undeclared identifier ‘choke’  
25 | choke me  
| ^  
1 error generated.

* * *

conftest.c:25:1: error: use of undeclared identifier ‘choke’  
25 | choke me  
| ^  
1 error generated.

* * *

conftest.c:20:10: fatal error: ‘ac\_nonexistent.h’ file not found  
20 | #include \<ac\_nonexistent.h\>  
| ^ ~~~~~~~~~~~~~~~~~  
1 error generated.

* * *

conftest.c:214:2: error: **SSE4\_2** not defined  
214 | #error **SSE4\_2** not defined  
| ^  
1 error generated.

Do you think it would be better if I used a VM?

---

<div class="post-metadata">

**Author:** ![jason](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/jason/32/114_2.png) [@jason](https://forum.yugabyte.com/u/jason)\
**Post date:** [June 12, 2025, 8:51pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/4 "2025-06-12T20:51:20Z")

</div>

I personally am not sure what is wrong with the given information. If you use a VM, docker, or other equivalent, that’s one path forward, but the binaries will be for linux, not for mac, in case you care. If you are only trying to contribute, then that shouldn’t be a concern.

---

<div class="post-metadata">

**Author:** ![jharveysmith](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/jharveysmith/32/863_2.png) [@jharveysmith](https://forum.yugabyte.com/u/jharveysmith)\
**Post date:** [June 12, 2025, 9:11pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/5 "2025-06-12T21:11:39Z")

</div>

If you choose to go the docker route, the docker image we use in our github actions is `yugabyteci/yb_build_infra_almalinux8_x86_64:latest`. Here is a small example script that uses it

```auto
#!/usr/bin/env bash

SRC_ROOT="${BASH_SOURCE%/*}"

TARGET_ARCH=${TARGET_ARCH:-$(uname -m)}
TARGET_OS=${TARGET_OS:-almalinux8}
BUILD_IMAGE_TAG=${BUILD_IMAGE_TAG:-latest}
pull="missing"
if [["$BUILD_IMAGE_TAG" == "latest"]]; then
  pull="always"
fi

docker run -it \
  --cap-add SYS_PTRACE \
  --pull "$pull" \
  --env UID=$(id -u) \
  --env GID=$(id -u) \
  --ulimit core=-1 \
  -v "$(pwd):$(pwd)" \
  -w "$(pwd)" \
  yugabyteci/yb_build_infra_${TARGET_OS}_${TARGET_ARCH}:${BUILD_IMAGE_TAG} \
    "${@}"

```

If you save it to your checkout directory as `bic.sh` and set the executable bit, you could use it like this:

```auto
 ~/code/yugabyte-db $ ./bic.sh ./yb_build.sh release

```

If you don’t already have a docker setup on your mac I would recommend podman-desktop.

---

<div class="post-metadata">

**Author:** ![DanielCoder834](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/danielcoder834/32/961_2.png) [@DanielCoder834](https://forum.yugabyte.com/u/DanielCoder834)\
**Post date:** [June 13, 2025, 4:12pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/6 "2025-06-13T16:12:09Z")

</div>

> [@jharveysmith](#):
>
> checkout directory

Thank you for help and the script. What do you mean by checkout directory? Do you mean the `/usr/local/bin` folder for mac?

---

<div class="post-metadata">

**Author:** ![DanielCoder834](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/danielcoder834/32/961_2.png) [@DanielCoder834](https://forum.yugabyte.com/u/DanielCoder834)\
**Post date:** [June 13, 2025, 4:12pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/7 "2025-06-13T16:12:39Z")

</div>

Thank you for the help.

---

<div class="post-metadata">

**Author:** ![jharveysmith](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/jharveysmith/32/863_2.png) [@jharveysmith](https://forum.yugabyte.com/u/jharveysmith)\
**Post date:** [June 13, 2025, 4:51pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/8 "2025-06-13T16:51:16Z")

</div>

The directory where you have the code checked out. The same directory that `yb_build.sh` is in.

---

<div class="post-metadata">

**Author:** ![DanielCoder834](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/danielcoder834/32/961_2.png) [@DanielCoder834](https://forum.yugabyte.com/u/DanielCoder834)\
**Post date:** [June 13, 2025, 5:18pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/9 "2025-06-13T17:18:50Z")

</div>

I ran `./bic.sh ./yb_build.sh release`, but I got:

```auto
docker: Error response from daemon: pull access denied for yugabyteci/yb_build_infra_almalinux8_arm64, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

```

I did `docker login` with no issue. I just realized it was the wrong image. Is there a version for arm64 or would the x86\_64 version work on my machine? What would you recommend I do? Thank you for the help.

---

<div class="post-metadata">

**Author:** ![jharveysmith](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/jharveysmith/32/863_2.png) [@jharveysmith](https://forum.yugabyte.com/u/jharveysmith)\
**Post date:** [June 13, 2025, 6:45pm UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/10 "2025-06-13T18:45:47Z")

</div>

Sorry, If you `export TARGET_ARCH=aarch64` first that should work I think. The available images are at [https://hub.docker.com/u/yugabyteci](https://hub.docker.com/u/yugabyteci)

---

<div class="post-metadata">

**Author:** ![DanielCoder834](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/danielcoder834/32/961_2.png) [@DanielCoder834](https://forum.yugabyte.com/u/DanielCoder834)\
**Post date:** [June 18, 2025, 1:33am UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/11 "2025-06-18T01:33:46Z")

</div>

Thank you for the help. I just want to clarify, but would I need to do [start a local cluster](https://docs.yugabyte.com/preview/tutorials/quick-start/macos/) in order to be able to contribute? If so, what is the difference between the previous docker command and starting a cluster? Sorry for many questions. I don’t have a lot of experience in Docker.

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [June 18, 2025, 6:57am UTC](https://forum.yugabyte.com/t/runtimeerror-postgresql-compilation-failed/4499/12 "2025-06-18T06:57:03Z")

</div>

> [@DanielCoder834](#):
>
> but would I need to do [start a local cluster](https://docs.yugabyte.com/preview/tutorials/quick-start/macos/) in order to be able to contribute?

Hi @DanielCoder834

Maybe. Depends what exactly you’re contributing. Please read [Contribute to YugabyteDB | YugabyteDB Docs](https://docs.yugabyte.com/preview/contribute/), pick an issue and verify the approach with our team before you start coding.

> [@DanielCoder834](#):
>
> If so, what is the difference between the previous docker command and starting a cluster?

The docker command build the database, compiling it to generate the binaries. The `starting a cluster` command runs the database like a user does.

> [@DanielCoder834](#):
>
> Sorry for many questions. I don’t have a lot of experience in Docker.

No worries!
