Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949594 - dev-games/godot-4.3-r1: error: use of undeclared identifier & error: cannot initialize a parameter of type 'char *' with an lvalue of type 'FILE *const __restrict' (aka 'jpge::_IO_FILE *const __restrict')
Summary: dev-games/godot-4.3-r1: error: use of undeclared identifier & error: cannot i...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-11 00:53 UTC by Neko-san
Modified: 2025-02-12 10:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log (emerge_godot-4.3-r1_build.log,580.46 KB, text/x-log)
2025-02-11 00:53 UTC, Neko-san
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2025-02-11 00:53:36 UTC
Created attachment 918628 [details]
Build Log

When building with LLVM19 (with libcxx), building Godot fails to errors regarding:
/usr/include/bits/stdio2.h

-----

Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr/hardened, gcc-14, glibc-2.40-r8, 6.10.9-tkg-eevdf-gentoo-llvm18-generic_v3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.10.9-tkg-eevdf-gentoo-llvm18-generic_v3-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.40
KiB Mem:    32765600 total,  18109240 free
KiB Swap:   33554428 total,  23866876 free
Timestamp of repository gentoo: Sat, 08 Feb 2025 07:18:43 +0000
Head commit of repository gentoo: 490c54883217edc1a3e4e4eab3fe313bca9e7d3a

Timestamp of repository guru: Fri, 07 Feb 2025 15:03:23 +0000
Head commit of repository guru: 3aa5683d01784ed2821ba1dfb01dac4b84b4bbfa

Timestamp of repository kde: Thu, 06 Feb 2025 22:48:22 +0000
Head commit of repository kde: 7645e2e8287dc6822f399be66f117e67043d61d4

Timestamp of repository pf4public: Fri, 07 Feb 2025 21:48:30 +0000
Head commit of repository pf4public: e76b0a57d15894819d1301a0f7a7d9da471f2d7a

Timestamp of repository steam-overlay: Wed, 05 Feb 2025 18:48:29 +0000
Head commit of repository steam-overlay: 5b1fd31c48074c752648dd949fc7c6bc3fc20783

Head commit of repository waffle-builds: 411893ae555f010adef2fdf97193563064054136

Head commit of repository FireBurn: 20a8297e1a387780da468ee088b1392269f939f0

Head commit of repository bobwya: a8496a14aee3c337b0e547b97b546b08607242a8

Head commit of repository farmboy0: 97e6ebdbecdb59e29985794061410ff4299c4240

Head commit of repository kzd: aabfd1a61c7645c37a90a06f949974e27b84fd9a

Head commit of repository librewolf: edee332b42d5b174260928c8ad237e03caba5874

Head commit of repository oxen-overlay: caa06ee33866f344b827f2bf7105839272cd7b3e

Head commit of repository parona-overlay: 81e81c178a764459adb3a2ea13e5e831bc430ffe

Head commit of repository tatsh-overlay: b8425d9fb55ab26a51421892bfe9b63f1c76813b

Head commit of repository tezeta: 7644636a57317ba864880f7f93a95d3e49ba9474

Head commit of repository thegreatmcpain: ee6847358412beec55f1e88336aa9ea2c3d89bb6

Head commit of repository x0rzavi: e560dddb58c5baebc899623129a9db37f9a8da4b

Head commit of repository xarblu-overlay: 943dd3e360be0cb9b73f34193f03ecba985b1a80

Timestamp of repository xwing: Tue, 28 Jan 2025 07:36:42 +0000
Head commit of repository xwing: 140f6df8f50b08af4df6e85437f1dab7c98ffd16

sh lksh
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust-bin:         1.83.0::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.7::gentoo
llvm-core/lld:             18.1.8::gentoo, 19.1.7::gentoo
llvm-core/llvm:            17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

local-custom-profiles
    location: /var/db/repos/local-custom-profiles
    masters: gentoo
    volatile: False

neko-san_override
    location: /var/db/repos/neko-san_override
    masters: gentoo
    volatile: False

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

waffle-builds
    location: /var/db/repos/waffle-builds
    sync-type: git
    sync-uri: https://github.com/FlyingWaffleDev/waffle-builds
    masters: gentoo
    volatile: False

FireBurn
    location: /var/db/repos/FireBurn
    sync-type: git
    sync-uri: https://github.com/FireBurn/Overlay.git
    masters: gentoo
    priority: 50
    volatile: False

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/bobwya
    masters: gentoo
    priority: 50
    volatile: False

farmboy0
    location: /var/db/repos/farmboy0
    sync-type: git
    sync-uri: https://github.com/farmboy0/portage-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

kzd
    location: /var/db/repos/kzd-ebuilds
    sync-type: git
    sync-uri: https://gitlab.com/kzdixon/kzd-ebuilds.git
    masters: gentoo steam-overlay
    priority: 50
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    priority: 50
    volatile: False

oxen-overlay
    location: /var/db/repos/oxen-overlay
    sync-type: git
    sync-uri: https://github.com/XutaxKamay/oxen-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

parona-overlay
    location: /var/db/repos/parona-overlay
    sync-type: git
    sync-uri: https://gitlab.com/Parona/parona-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tatsh-overlay
    location: /var/db/repos/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tezeta
    location: /var/db/repos/tezeta
    sync-type: git
    sync-uri: https://github.com/tezeta/tezeta-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://gitlab.com/TheGreatMcPain/thegreatmcpain-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

x0rzavi
    location: /var/db/repos/x0rzavi
    sync-type: git
    sync-uri: https://github.com/x0rzavi/x0rzavi-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

xarblu-overlay
    location: /var/db/repos/xarblu-overlay
    sync-type: git
    sync-uri: https://github.com/xarblu/xarblu-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

xwing
    location: /var/db/repos/xwing
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/xwing.git
    masters: gentoo
    priority: 50
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ADDR2LINE="/usr/lib/llvm/19/bin/llvm-addr2line"
AR="/usr/lib/llvm/19/bin/llvm-ar"
AS="/usr/lib/llvm/19/bin/llvm-as"
CBUILD="x86_64-pc-linux-gnu"
CC="clang-19"
CFLAGS="-march=znver2 -pipe -O2 -fplugin=LLVMPolly.so -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Wstrict-aliasing=2 -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection --param=ssp-buffer-size=4 -fPIC -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPP="clang-cpp-19"
CXX="clang++-19"
CXXFLAGS="-march=znver2 -pipe -O2 -fplugin=LLVMPolly.so -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Wstrict-aliasing=2 -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection --param=ssp-buffer-size=4 -fPIC -ggdb3"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=znver2 -pipe -O2 -fplugin=LLVMPolly.so -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Wstrict-aliasing=2 -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection --param=ssp-buffer-size=4 -fPIC -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver2 -pipe -O2 -fplugin=LLVMPolly.so -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Wstrict-aliasing=2 -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection --param=ssp-buffer-size=4 -fPIC -ggdb3"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LD="ld.lld"
LDFLAGS="-flto=thin -Wl,-O2,--sort-common,--as-needed,--enable-new-dtags,-z,relro,-z,now"
LEX="flex"
MAKEOPTS="-j7 -l8"
NM="/usr/lib/llvm/19/bin/llvm-nm"
OBJCOPY="/usr/lib/llvm/19/bin/llvm-objcopy"
OBJDUMP="/usr/lib/llvm/19/bin/llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-9 -R -p4"
PORTAGE_CONFIGROOT="/"
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"
RANLIB="/usr/lib/llvm/19/bin/llvm-ranlib"
READELF="/usr/lib/llvm/19/bin/llvm-readelf"
RUSTFLAGS="-C opt-level=2 -C target-cpu=native"
SHELL="/bin/bash"
STRINGS="/usr/lib/llvm/19/bin/llvm-strings"
STRIP="/usr/lib/llvm/19/bin/llvm-strip"
USE="7z X a52 aac acl acpi activities alsa amd64 autotype bash-completion binutils-plugin bluetooth branding browser browser-integration bzip2 cairo cdda cdr cet clang cli colord crash-handler crypt cups dbus declarative default-compiler-rt default-libcxx default-lld desktop-portal dhclient discover dri dts dvd dvdr echo-cancel elogind encode eselect-ldso exif ffmpeg firewall flac flatpak fluidsynth gbm gdbm gif gles2 gles3 gpm gstreamer gtk gui hardened iconv icu ipv6 iwd jack jack-client jpeg kde keyring kf6compat kwallet lcms legacy-systray libcxx libnotify libtirpc llvm-libunwind lm-sensors mad mgba mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openh264 openmp openssl opus pam pango pcre pdf pic pie pipewire pipewire-alsa plasma png policykit ppds pulseaudio qml qt5 qt6 raw readline resolvconf retroachievements rtc screencast sddm sdl seccomp sechash semantic-desktop share smart sound sound-server spell split-usr ssl ssp startup-notification svg system-crontab system-man test-rust threads tiff timidity truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vorbis vulkan wallpapers wav wayland widgets wired wxwidgets x264 xattr xcb xcsecurity xft xml xorg xscreensaver xtpax xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_13" AMDGPU_TARGETS="gfx1101 gfx908 gfx90a" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="19" LLVM_TARGETS="SPIRV X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby32" SANE_BACKENDS="hp" VIDEO_CARDS="fbdev vesa dummy v4l lavapipe amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
YACC="byacc"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, SIZE, YFLAGS

=================================================================
                        Package Settings
=================================================================

dev-games/godot-4.3-r1::gentoo was built with the following:
USE="alsa dbus fontconfig gui pulseaudio raycast speech theora tools udev upnp vulkan wayland webp -debug -deprecated -test" ABI_X86="(64)"
CFLAGS="-march=znver2 -pipe -O2 -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
CXXFLAGS="-march=znver2 -pipe -O2 -mllvm=-polly -mllvm=-polly-ast-use-context -mllvm=-polly-vectorizer=stripmine -mllvm=-polly-invariant-load-hoisting -mllvm=-polly-run-inliner -mllvm=-polly-run-dce -fno-plt -ftrivial-auto-var-init=pattern -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection -fPIC -ggdb3"
LDFLAGS="-Wl,-O2,--sort-common,--as-needed,-z,relro,-z,now"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-11 01:42:39 UTC
```
In file included from thirdparty/jpeg-compressor/jpge.cpp:936:
In file included from /usr/include/c++/v1/stdio.h:108:
In file included from /usr/include/stdio.h:970:
/usr/include/bits/stdio2.h:128:13: error: use of undeclared identifier '__builtin___vfprintf_chk'; did you mean '__builtin___sprintf_chk'?
  128 |   int __r = __builtin___vfprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1,
      |             ^
/usr/include/bits/stdio2.h:128:39: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'FILE *const __restrict' (aka 'jpge::_IO_FILE *const __restrict')
  128 |   int __r = __builtin___vfprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1,
      |                                       ^~~~~~~~
2 errors generated.
scons: *** [thirdparty/jpeg-compressor/jpge.linuxbsd.editor.x86_64.llvm.o] Error 1
```

That may be a glibc bug (or a libc++ one).