BUG #18257: Failed to build postgres, error occurred during linking - Mailing list pgsql-bugs
From | PG Bug reporting form |
---|---|
Subject | BUG #18257: Failed to build postgres, error occurred during linking |
Date | |
Msg-id | 18257-0c435142aef90b82@postgresql.org Whole thread Raw |
List | pgsql-bugs |
The following bug has been logged on the website: Bug reference: 18257 Logged by: Haorong Xu Email address: db_haorong@outlook.com PostgreSQL version: 16.1 Operating system: Fedora 39, Kernel: 6.7.0-rc5+ Description: I just ran git pull today and some error occurred during linking, here's the exact postgres version: (commit 3e2e0d5ad7fcb89d18a71cbfc885ef184e1b6f2e (HEAD -> master, origin/master, origin/HEAD) Author: Peter Eisentraut <peter@eisentraut.org> Date: Fri Dec 22 21:44:55 2023 +0100) Here's the commands that I've run on my laptop:(I ran these commands under postgres, but nothing changed even if I switch to root) git pull make all Here's the output(stderr) that I received: /usr/bin/ld: access/brin/brin.o: in function `brinhandler': brin.c:(.text+0x1161): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: access/gin/ginutil.o: in function `ginhandler': ginutil.c:(.text+0x81): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: access/gist/gist.o: in function `gisthandler': gist.c:(.text+0x6b1): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: access/gist/gistbuild.o: in function `gistbuild': gistbuild.c:(.text+0x189b): undefined reference to `smgrwrite' /usr/bin/ld: access/hash/hash.o: in function `hashhandler': hash.c:(.text+0x531): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: access/nbtree/nbtsort.o: in function `_bt_blwritepage': nbtsort.c:(.text+0x4e9): undefined reference to `smgrwrite' /usr/bin/ld: access/tablesample/bernoulli.o: in function `tsm_bernoulli_handler': bernoulli.c:(.text+0x22e): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: access/tablesample/system.o: in function `tsm_system_handler': system.c:(.text+0x26e): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: bootstrap/bootparse.o: in function `boot_yyparse': bootparse.c:(.text+0x7e2): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: bootparse.c:(.text+0x928): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: bootparse.c:(.text+0xa5b): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: catalog/index.o:index.c:(.text+0xc9d): more undefined references to `MemoryContextAllocZeroAligned' follow /usr/bin/ld: catalog/storage.o: in function `RelationCopyStorage': storage.c:(.text+0x762): undefined reference to `smgrread' /usr/bin/ld: catalog/toasting.o: in function `create_toast_table': toasting.c:(.text+0x20f): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: parser/analyze.o: in function `transformLockingClause': analyze.c:(.text+0x780): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: parser/analyze.o: in function `transformStmt': analyze.c:(.text+0xa8d): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: analyze.c:(.text+0xd3f): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: analyze.c:(.text+0xf9d): undefined reference to `MemoryContextAllocZeroAligned' /usr/bin/ld: parser/analyze.o:analyze.c:(.text+0x10c6): more undefined references to `MemoryContextAllocZeroAligned' follow collect2: error: ld returned 1 exit status make[2]: *** [Makefile:68: postgres] Error 1 make[1]: *** [Makefile:42: all-backend-recurse] Error 2 make: *** [GNUmakefile:11: all-src-recurse] Error 2 Here's the version of my gcc & gnu-make Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.2.1-20231205/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.2.1 20231205 (Red Hat 13.2.1-6) (GCC) GNU Make 4.4.1 Built for x86_64-redhat-linux-gnu
pgsql-bugs by date: