Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914583 - dev-libs/rapidjson: fails to build with gcc 14 (causes dev-util/ccls-0.20230717 compile failure)
Summary: dev-libs/rapidjson: fails to build with gcc 14 (causes dev-util/ccls-0.202307...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2023-09-24 02:10 UTC by Sam James
Modified: 2023-12-09 18:54 UTC (History)
1 user (show)

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


Attachments
build.log (file_914583.txt,44.38 KB, text/plain)
2023-09-24 02:10 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-24 02:10:18 UTC
Created attachment 871212 [details]
build.log

[5/43] /usr/bin/aarch64-unknown-linux-gnu-g++  -I/var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src -isystem /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/third_party -isystem /usr/lib/llvm/16/include  -O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3 -std=c++17 -fdiagnostics-color=always -Wall -Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/position.cc.o -MF CMakeFiles/ccls.dir/src/position.cc.o.d -o CMakeFiles/ccls.dir/src/position.cc.o -c /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src/position.cc
FAILED: CMakeFiles/ccls.dir/src/position.cc.o 
/usr/bin/aarch64-unknown-linux-gnu-g++  -I/var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src -isystem /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/third_party -isystem /usr/lib/llvm/16/include  -O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3 -std=c++17 -fdiagnostics-color=always -Wall -Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/position.cc.o -MF CMakeFiles/ccls.dir/src/position.cc.o.d -o CMakeFiles/ccls.dir/src/position.cc.o -c /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src/position.cc
In file included from /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src/position.cc:8:
/usr/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only location ‘((rapidjson::GenericStringRef<CharType>*)this)->rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
[6/43] /usr/bin/aarch64-unknown-linux-gnu-g++  -I/var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src -isystem /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/third_party -isystem /usr/lib/llvm/16/include  -O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3 -std=c++17 -fdiagnostics-color=always -Wall -Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/lsp.cc.o -MF CMakeFiles/ccls.dir/src/lsp.cc.o.d -o CMakeFiles/ccls.dir/src/lsp.cc.o -c /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src/lsp.cc
FAILED: CMakeFiles/ccls.dir/src/lsp.cc.o 
/usr/bin/aarch64-unknown-linux-gnu-g++  -I/var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src -isystem /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/third_party -isystem /usr/lib/llvm/16/include  -O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3 -std=c++17 -fdiagnostics-color=always -Wall -Wno-sign-compare -Wno-return-type -Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/lsp.cc.o -MF CMakeFiles/ccls.dir/src/lsp.cc.o.d -o CMakeFiles/ccls.dir/src/lsp.cc.o -c /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src/lsp.cc
In file included from /var/tmp/portage/dev-util/ccls-0.20230717/work/ccls-0.20230717/src/lsp.cc:8:
/usr/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only location ‘((rapidjson::GenericStringRef<CharType>*)this)->rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~

----

# emerge --info
Portage 3.0.51 (python 3.11.5-final-0, default/linux/arm64/17.0/desktop/plasma/systemd/merged-usr, gcc-14, glibc-2.38-r3, 5.15.124-gentoo-dist aarch64)
=================================================================
System uname: Linux-5.15.124-gentoo-dist-aarch64-with-glibc2.38
KiB Mem:   262955356 total, 137311552 free
KiB Swap:    9767620 total,   8540508 free
Timestamp of repository gentoo: Sat, 23 Sep 2023 21:16:37 +0000
sh dash 0.5.12
ld GNU ld (Gentoo 2.41 p2) 2.41.0
ccache version 4.8.3 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.5::gentoo, 3.12.0_rc3::gentoo
dev-lang/rust-bin:         1.72.0::gentoo
dev-util/ccache:           4.8.3::gentoo
dev-util/cmake:            3.27.6::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.4::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.69-r9::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/gcc:             10.5.0::gentoo, 11.4.1_p20230914::gentoo, 12.3.1_p20230825::gentoo, 13.2.1_p20230826::gentoo, 14.0.0.9999::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r3::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-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

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

Installed sets: @sam
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="*"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3"
CHOST="aarch64-unknown-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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --complete-graph"
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="-O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
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"
USE="X a52 aac accessibility acl acpi activities alsa arm64 bluetooth branding brotli bzip2 cairo cdda cdr cli colord crypt cups dbus declarative dot dri dts dvdr encode exif flac fortran gdbm gif gpm gtk gui http http2 iconv icu ipv6 jadetex jpeg kde kwallet lcms libnotify libtirpc libxml2 lua lz4 lzma mad mng mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pcre pcre32 pdf perl pim pipewire plasma png policykit ppds pulseaudio python qml qt5 readline ruby screencast sdk sdl seccomp semantic-desktop snappy sound spell sql sqlite ssh ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland webchannel webengine webkit widgets wifi wireless wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gnat_2021" 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_ARM="edsp vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="fbdev 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, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-24 02:10:26 UTC
I'll fix this now, I just wanted a bug for it.
Comment 2 Larry the Git Cow gentoo-dev 2023-09-24 02:20:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=120da2933e42c8d0f2b03cb2e6600550a83a55d8

commit 120da2933e42c8d0f2b03cb2e6600550a83a55d8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-24 02:19:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-24 02:19:14 +0000

    dev-libs/rapidjson: fix compat w/ gcc 14
    
    Revbump to fix installed headers as well as add EAPI 8.
    
    While here, style tweaks to conform w/ skel.ebuild and sync live ebuild.
    
    Closes: https://bugs.gentoo.org/914583
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/rapidjson-1.1.0-gcc14-const.patch        | 20 ++++++++
 dev-libs/rapidjson/rapidjson-1.1.0-r4.ebuild       | 59 ++++++++++++++++++++++
 dev-libs/rapidjson/rapidjson-9999.ebuild           | 20 ++++----
 3 files changed, 89 insertions(+), 10 deletions(-)