Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877015 - media-gfx/krita-5.1.1[jpegxl] w/ <media-libs/libjxl-0.7.0_pre20220825: JPEGXLExport.cpp:307:17: error: ‘JxlEncoderFrameSettingsSetFloatOption’ was not declared in this scope; did you mean ‘JxlEncoderFrameSettingsSetOption’?
Summary: media-gfx/krita-5.1.1[jpegxl] w/ <media-libs/libjxl-0.7.0_pre20220825: JPEGXL...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 877289
Blocks:
  Show dependency tree
 
Reported: 2022-10-13 19:42 UTC by Bob Johnson
Modified: 2022-10-18 10:29 UTC (History)
0 users

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


Attachments
Build log (media-gfx:krita-5.1.1:20221013-183624.log.gz,365.99 KB, application/octet-stream)
2022-10-13 19:45 UTC, Bob Johnson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Johnson 2022-10-13 19:42:36 UTC
When building with the jpegxl USE flag, the following error occurs during compilation:

/var/tmp/portage/media-gfx/krita-5.1.1/work/krita-5.1.1/plugins/impex/jxl/JPEGXLExport.cpp: In lambda function:
/var/tmp/portage/media-gfx/krita-5.1.1/work/krita-5.1.1/plugins/impex/jxl/JPEGXLExport.cpp:307:17: error: <E2><80><98>JxlEncoderFrameSettingsSetFloatOption<E2<E2><80><99> was not declared in this scope; did you mean <E2><80><98>JxlEncoderFrameSettingsSetOption<E2><80><99>?
  307 |             if (JxlEncoderFrameSettingsSetFloatOption(frameSettings, id, v) != JXL_ENC_SUCCESS) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 JxlEncoderFrameSettingsSetOption

The build completes normally when the jpegxl USE flag is not used.

Reproducible: Always




# emerge --info media-gfx/krita
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.35-r8, 5.15.72-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.72-gentoo-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.35
KiB Mem:    65794420 total,  56481012 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Thu, 13 Oct 2022 08:15:01 +0000
Head commit of repository gentoo: 07e37e46c3946b7bb633f9c29443e1e454b107fc
sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.8::gentoo
dev-lang/rust:             1.64.0-r1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=32"
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 XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="--jobs=32 --load-average=35"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 apache2 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups curl dbus declarative doc dri dts dvd dvdr elogind encode examples exif flac fontconfig fortran gcj gd gdbm gif gtk gtk-doc gui handbook iconv icu ipv6 jack java jbig jpeg kde kpathsea kwallet lcms libglvnd libnotify libtirpc lzma mad mbox mng mp3 mp4 mpeg multilib ncurses nls nptl odbc ogg openexr opengl openmp pam pango pcre pdf plasma png policykit postgres ppds qml qt5 readline sdl seccomp semantic-desktop source spell split-usr ssl startup-notification svg t1lib test-rust threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis webp widgets wxwidgets x264 xattr xcb xinerama xml xpm xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers http2 ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http proxy_http2 rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" 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 mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi fbdev vesa" 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, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

media-gfx/krita-5.1.1::gentoo was built with the following:
USE="color-management gif gsl heif mypaint-brush-engine openexr pdf qtmedia raw webp -debug -fftw -jpegxl -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_10 (-python3_11) -python3_8 -python3_9"
FEATURES="parallel-install ebuild-locks buildpkg-live binpkg-docompress binpkg-dostrip sfperms qa-unresolved-soname-deps cgroup unmerge-orphans preserve-libs multilib-strict network-sandbox sandbox distlocks strict unknown-features-warn usersync assume-digests fixlafiles pid-sandbox xattr userfetch config-protect-if-modified ipc-sandbox usersandbox userpriv news protect-owned binpkg-logs unmerge-logs merge-sync parallel-fetch"
Comment 1 Bob Johnson 2022-10-13 19:45:14 UTC
Created attachment 823985 [details]
Build log
Comment 2 Andreas Sturmlechner gentoo-dev 2022-10-14 08:06:31 UTC
Version of media-libs/libjxl?
Comment 3 Bob Johnson 2022-10-14 16:51:15 UTC
# equery list media-libs/libjxl
 * Searching for libjxl in media-libs ...
[IP-] [  ] media-libs/libjxl-0.7.0_pre20220511:0

That's the current stable version. However, putting this in package.accept_keywords:

=dev-cpp/highway-1.0.1-r1
=media-libs/libjxl-0.7.0_pre20220825

allows media-gfx/krita-5.1.1 to build successfully with the jpegxl USE flag on my stable system.

So it appears you've found the issue--libjxl and its dependency dev-ccp/highway need to be stabilized.
Comment 4 Andreas Sturmlechner gentoo-dev 2022-10-16 08:59:55 UTC
Thanks for your report, stabilisation was requested.
Comment 5 Larry the Git Cow gentoo-dev 2022-10-16 09:42:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=3559bab801067b7c1a86dc7bcb932b59736861be

commit 3559bab801067b7c1a86dc7bcb932b59736861be
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-10-16 09:14:59 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-10-16 09:42:36 +0000

    media-gfx/krita: Raise minimum media-libs/libjxl version
    
    To one that krita builds with.
    
    Bug: https://bugs.gentoo.org/877015
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/krita/krita-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)