| Summary: | dev-db/postgresql-14.5 with sys-devel/llvm-15.0.0: LLVMJITCSymbolMapPair undeclared | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Karl-Johan Karlsson <creideiki+gentoo-bugzilla> |
| Component: | Current packages | Assignee: | PgSQL Bugs <pgsql-bugs> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | compressed build.log | ||
Created attachment 803803 [details]
compressed build.log
*** This bug has been marked as a duplicate of bug 869044 *** |
After upgrading LLVM to version 15, PostgreSQL 14.5 builds break with: llvmjit.c: In function ‘llvm_resolve_symbols’: llvmjit.c:1115:57: error: ‘LLVMJITCSymbolMapPair’ undeclared (first use in this function); did you mean ‘LLVMOrcCSymbolM apPair’? 1115 | LLVMOrcCSymbolMapPairs symbols = palloc0(sizeof(LLVMJITCSymbolMapPair) * LookupSetSize); | ^~~~~~~~~~~~~~~~~~~~~ | LLVMOrcCSymbolMapPair llvmjit.c:1115:57: note: each undeclared identifier is reported only once for each function it appears in llvmjit.c: In function ‘llvm_create_jit_instance’: llvmjit.c:1233:19: error: too few arguments to function ‘LLVMOrcCreateCustomCAPIDefinitionGenerator’ 1233 | ref_gen = LLVMOrcCreateCustomCAPIDefinitionGenerator(llvm_resolve_symbols, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from llvmjit.c:22: /usr/lib/llvm/15/include/llvm-c/Orc.h:997:31: note: declared here 997 | LLVMOrcDefinitionGeneratorRef LLVMOrcCreateCustomCAPIDefinitionGenerator( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Upstream has noted that LLVM 15 is not compatible with current PostgreSQL, e.g. here: https://marc.info/?l=postgresql-hackers&m=165605963620096&w=2 Reproducible: Always Portage 3.0.35 (python 3.10.7-final-0, default/linux/amd64/17.1/hardened, gcc-12.2.0, glibc-2.35-r8, 5.18.12-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.18.12-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-glibc2.35 KiB Mem: 65738004 total, 21645048 free KiB Swap: 67042300 total, 50591484 free Timestamp of repository gentoo: Tue, 06 Sep 2022 22:00:01 +0000 Head commit of repository gentoo: 448cf78f12d15d9e706b00f79835a80e9f25430b sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.38 p4) 2.38 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.10.7::gentoo, 3.11.0_rc1_p2::gentoo dev-util/cmake: 3.24.1::gentoo sys-apps/baselayout: 2.8-r2::gentoo sys-apps/openrc: 0.45.2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo, 2.39-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo, 15.0.0::gentoo sys-devel/gcc: 12.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/llvm: 14.0.6-r2::gentoo, 15.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: --timeout=10 --ipv6 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/ossec/etc /var/ossec/etc/" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/ossec/etc/shared/" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=y --backtrack=30 --verbose-conflicts --usepkg --binpkg-respect-use=y --binpkg-changed-deps=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10 --ipv6" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="acl amd64 bzip2 crypt hardened iconv idn ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= sys-devel/llvm-14.0.6-r2::gentoo was built with the following: USE="binutils-plugin -debug -doc -exegesis -libedit libffi ncurses -test -verify-sig -xar -xml -z3" ABI_X86="-32 (64) (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (-ARC) (ARM) (AVR) (BPF) (-CSKY) (Hexagon) (Lanai) (-M68k) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore)" FEATURES="qa-unresolved-soname-deps unmerge-logs buildpkg userfetch pid-sandbox sfperms compressdebug news distlocks config-protect-if-modified unmerge-orphans unknown-features-warn userpriv protect-owned binpkg-logs assume-digests strict binpkg-docompress usersandbox xattr parallel-fetch binpkg-multi-instance preserve-libs ebuild-locks ipc-sandbox network-sandbox sandbox splitdebug usersync merge-sync binpkg-dostrip multilib-strict buildpkg-live fixlafiles" sys-devel/llvm-15.0.0::gentoo was built with the following: USE="binutils-plugin -debug -doc -exegesis -libedit libffi ncurses -test -verify-sig -xar -xml -z3" ABI_X86="-32 (64) (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (-ARC) (ARM) (AVR) (BPF) (-CSKY) (-DirectX) (Hexagon) (Lanai) (-LoongArch) (-M68k) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (-SPIRV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore)" FEATURES="binpkg-multi-instance preserve-libs unmerge-logs buildpkg usersync config-protect-if-modified xattr qa-unresolved-soname-deps merge-sync binpkg-logs strict binpkg-docompress pid-sandbox sandbox ipc-sandbox usersandbox ebuild-locks protect-owned parallel-fetch distlocks fixlafiles assume-digests sfperms network-sandbox news buildpkg-live userfetch binpkg-dostrip multilib-strict splitdebug compressdebug unmerge-orphans userpriv unknown-features-warn" dev-db/postgresql-14.5::gentoo was built with the following: USE="-debug -doc -icu -kerberos -ldap llvm -lz4 nls pam -perl -python readline (-selinux) server ssl -static-libs -systemd -tcl threads -uuid -xml zlib" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_10 -python3_11 -python3_8 -python3_9"