Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933462 - app-office/scribus-1.6.1-r1 fails to compile: scribus/scribusapp.cpp:285:39: error: ambiguous overload for ‘operator==’ (operand types are ‘const QChar’ and ‘const char [2]’)
Summary: app-office/scribus-1.6.1-r1 fails to compile: scribus/scribusapp.cpp:285:39: ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-03 07:24 UTC by Zoltan Puskas
Modified: 2025-02-19 00:23 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,645.20 KB, text/x-log)
2024-06-03 07:24 UTC, Zoltan Puskas
Details
Compare to character, not to string (scribus-ambiguous-overload.patch,2.38 KB, patch)
2024-06-19 14:15 UTC, Alexander B. Ustinov
Details | Diff
Patch that applies for app-office/scribus-1.6.1-r1 (scribus-1.6.1-string-comparison.patch,2.48 KB, patch)
2024-07-14 05:26 UTC, Markus Meier
Details | Diff
Patch that applies to app-office/scribus-1.6.2 (scribus-1.6.2-string-comparison.patch,2.46 KB, patch)
2024-07-14 07:10 UTC, Markus Meier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Puskas 2024-06-03 07:24:21 UTC
Scribus fails to compile QT frameworks update.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 scribus

Actual Results:  
Compile fails with:

/var/tmp/portage/app-office/scribus-1.6.1-r1/work/scribus-1.6.1/scribus/scribusapp.cpp:285:39: error: ambiguous overload for ‘operator==’ (operand types are ‘const QChar’ and ‘const char [2]’)
  285 |                         if (arg.at(0) == "-")
      |                             ~~~~~~~~~ ^~ ~~~
      |                                   |      |
      |                                   |      const char [2]
      |                                   const QChar


Expected Results:  
Successful build.

$ emerge --info
Portage 3.0.64 (python 3.11.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-12, glibc-2.39-r7, 6.9.1-gentoo x86_64)
=================================================================
System uname: Linux-6.9.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-glibc2.39
KiB Mem:    32770192 total,   3702152 free
KiB Swap:    2096852 total,   1889492 free
Timestamp of repository gentoo: Sat, 01 Jun 2024 18:15:00 +0000
Head commit of repository gentoo: 62b2ee64ffcab7bb7e9caf2a98890bbd943c83ef
Timestamp of repository science: Sat, 01 Jun 2024 21:18:44 +0000
Head commit of repository science: add839ae44036f198d10488a0f36471f6a0e9123

Head commit of repository sinustrom: cecc7fee675049f63cc5abbaf4b33a34a2351ec3

Head commit of repository sinustrom-intranet: 46a31941d243ba9459730c67d58c7e54d6086cdd

sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
distcc 3.4 x86_64-pc-linux-gnu [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r6::gentoo
dev-lang/python:           3.10.14_p1-r1::gentoo, 3.11.9-r1::gentoo, 3.12.3-r1::gentoo, 3.13.0_beta1_p3::gentoo
dev-lang/rust:             1.78.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.7::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.6::gentoo
sys-devel/gcc:             12.3.1_p20240502::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.6::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://barbican.sinustrom.net/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

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

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

sinustrom-intranet
    location: /var/db/repos/sinustrom-intranet
    sync-type: git
    sync-uri: https://git.sinustrom.net/infra/sinustrom-intranet-overlay.git/
    masters: gentoo
    volatile: False

sinustrom-test
    location: /var/db/repos/sinustrom-test
    masters: gentoo
    volatile: False

Installed sets: @openwrt-prerequisites
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -mabm -madx -maes -mavx -mavx2 -mbmi -mbmi2 -mclflushopt -mcx16 -mf16c -mfma -mfsgsbase -mfxsr -mlzcnt -mmmx -mmovbe -mpclmul -mpopcnt -mprfchw -mrdrnd -mrdseed -msahf -msgx -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mxsave -mxsavec -mxsaveopt -mxsaves --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192 -O
3 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=skylake -mabm -madx -maes -mavx -mavx2 -mbmi -mbmi2 -mclflushopt -mcx16 -mf16c -mfma -mfsgsbase -mfxsr -mlzcnt -mmmx -mmovbe -mpclmul -mpopcnt -mprfchw -mrdrnd -mrdseed -msahf -msgx -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mxsave -mxsavec -mxsaveopt -mxsaves --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192
-O3 -pipe -frecord-gcc-switches"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms s
trict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://barbican.sinustrom.net/gentoo-distfiles http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LEX="flex"
MAKEOPTS="-j80 -l7"
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/zsh"
USE="X a52 aac acl acpi activities alsa amd64 avif bash-completion bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr encode exif flac fortran gdbm gif gphoto2 gpm gtk gui hardened heif iconv icu ipv6 jpeg jpeg2k jpegxl kde kwallet lcms libnotify libtirpc lm_sensors lto lzma mad mng mp3 mp4 mpeg multilib ncurses networkmanag
er nls ogg opencl opengl openmp opus pam pango pcre pdf pipewire plasma png policykit posix ppds pulseaudio qml qt5 readline screencast sdl seccomp smp sound spell ssl startup-notification svg systemd test-rust threads tiff truetype udev udisks unicode upower usb uxa vaapi vdpau vim-syntax vorbis vulkan wayland webp widgets wifi wxwidgets x264 xattr xcb xft xml
xpm xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" ALSA_CARDS="hda-intel usb-audio" 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 h
eaders 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 sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc"
 GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput wacom synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="x86 BPF" LU
A_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm aarch64" QEMU_USER_TARGETS="i386 x86_64 arm aarch64" RUBY_TARGETS="ruby32" SANE_BACKENDS="plustek genesys pixma" VIDEO_CARDS="intel
 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYN
C_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Zoltan Puskas 2024-06-03 07:24:48 UTC
Created attachment 894985 [details]
build.log
Comment 2 Alexander B. Ustinov 2024-06-19 14:15:56 UTC
Created attachment 896109 [details, diff]
Compare to character, not to string

Attached patch seem to fix the issue
Comment 3 Andreas Sturmlechner gentoo-dev 2024-06-19 15:38:54 UTC
Both 1.6.1-r1 and 1.6.2 build fine for me against Qt 5.15.14. Is the patch taken from upstream? If so, which commit?
Comment 4 Alexander B. Ustinov 2024-06-19 15:45:06 UTC
(In reply to Andreas Sturmlechner from comment #3)
> Both 1.6.1-r1 and 1.6.2 build fine for me against Qt 5.15.14. Is the patch
> taken from upstream? If so, which commit?

Written myself...
I have ambiguous feelings about upstreaming such changes, should i try?
Comment 5 Markus Meier 2024-07-14 05:26:28 UTC
Created attachment 897556 [details, diff]
Patch that applies for app-office/scribus-1.6.1-r1

Hi everyone,
compilation fails for me, too, on all systems I take care of. Exactly same error as reported above. Tried app-office/scribus-1.6.1-r1, app-office/scribus-1.6.2.ebuild and app-office/scribus-1.6.9999. All fail.

I am using sys-devel/gcc:11 to compile.

Proposed patch works for me "in spirit", but does not apply automatically to version app-office/scribus-1.6.1-r1 (lines don't match exactly -> rejects).

I have attached a patch that worked for me for app-office/scribus-1.6.1-r1.

With best regards,
Markus
Comment 6 Markus Meier 2024-07-14 05:27:59 UTC
emerge --info
Portage 3.0.65 (python 3.11.9-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-11, glibc-2.39-r6, 6.1.57-gentoo x86_64)
=================================================================
System uname: Linux-6.1.57-gentoo-x86_64-AMD_Ryzen_9_6900HX_with_Radeon_Graphics-with-glibc2.39
KiB Mem:    15610176 total,   7338572 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sun, 14 Jul 2024 04:00:00 +0000
Head commit of repository gentoo: aa94fd460301ae08770b73c26296498e40d6d611
sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.10.14_p1-r1::gentoo, 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.7-r1::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             11.4.1_p20240111::gentoo, 12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

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

myRepo
    location: /var/db/repos/myRepo
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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"
CXXFLAGS="-march=native -mfpmath=sse -O2 -pipe"
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=native -mfpmath=sse -O2 -pipe"
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 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=native -mfpmath=sse -O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j8"
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"
PYTHONPATH="/software/lib64/python3.8/site-packages:/home/markus/scripts/lib/pylib"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 avif bash-completion bluetooth branding brotli bzip2 cairo cdda cdr cet clang colord corefonts crypt cuda cups curl cxx dbus dri dts dvd dvdr encode epub exif expat ffmpeg fftw flac fontconfig fuse gdbm gif gnome-keyring gphoto2 gpm graphviz gstreamer gtk gtk3 gui hddtemp hdri heif iconv icu idn imagemagick introspection ipv6 jbig jpeg jpeg2k jpegxl keyring kf6compat lapack lcms libedit libnotify libtirpc logitech lto lz4 lzma mad mng modplug mp3 mp4 mpeg mpi multilib ncurses networkmanager nls numpy nvme ogg openexr opengl openh264 openmp pam pango pcre pdf png policykit postscript ppds psck pulseaudio python qt5 rav1e raw rdp readline sdl seccomp sound spell ssh ssl startup-notification svg synaptics systemd taglib test-rust theora threads tiff tk truetype udev udisks unicode upower usb vnc vorbis vpx vulkan webp wmf wxwidgets x264 x265 xattr xcb xft xml xmp xpm xv xvid zip zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" 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" CAMERAS="ptp2 sierra" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de-CH de_CH en en-CA en-GB en_CA en_GB" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, 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
Comment 7 Markus Meier 2024-07-14 07:10:43 UTC
Created attachment 897562 [details, diff]
Patch that applies to app-office/scribus-1.6.2

Separate patch required for app-office/scribus-1.6.2
Comment 8 Markus Meier 2024-07-14 07:16:35 UTC
Another note:
I have one system with sys-devel/gcc:13.

Here, the compilation succeeds without error and above patches are not required.

In summary:
sys-devel/gcc:11 -> compilation fails, but works with submitted patch
sys-devel/gcc:12 -> compilation fails, but works with submitted patch
sys-devel/gcc:13 -> compilation succeeds, patch not required
Comment 9 Miroslav Šulc gentoo-dev 2024-07-14 08:11:11 UTC
scribus compiles fine for me too. i use gcc-14. i have no idea why older versions of gcc fail on this code but the newer ones don't.