Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936409 - app-admin/lnav-0.11.2: build failure with gcc-15 (sqlite3_vtab*()’: vtab_module.hh:593:59: error: ‘struct vtab_module<T>::vtab’ has no member named ‘base’; did you mean ‘v_base’?)
Summary: app-admin/lnav-0.11.2: build failure with gcc-15 (sqlite3_vtab*()’: vtab_modu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/tstack/lnav/pull/1285
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-07-21 01:00 UTC by Sam James
Modified: 2024-07-24 07:12 UTC (History)
2 users (show)

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


Attachments
build.log (file_936409.txt,481.28 KB, text/plain)
2024-07-21 01:00 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 2024-07-21 01:00:50 UTC
Created attachment 898048 [details]
build.log

aarch64-unknown-linux-gnu-g++ -std=c++14 -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"' -DSQLITE_OMIT_LOAD_EXTENSION -I./fmtlib -I./third-party -I./third-party/base64/include -I./third-party/rapidyaml -I../src/third-party/scnlib/include -Wall       -I../src/third-party/doctest-root  -D_ISOC99_SOURCE -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -I/usr/include -I/usr/include -I/usr/local/include  -O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3 -fno-vect-cost-model  -c -o network-extension-functions.o network-extension-functions.cc
In file included from network-extension-functions.cc:42:
vtab_module.hh: In member function ‘vtab_module<T>::vtab::operator sqlite3_vtab*()’:
vtab_module.hh:593:59: error: ‘struct vtab_module<T>::vtab’ has no member named ‘base’; did you mean ‘v_base’?
  593 |         explicit operator sqlite3_vtab*() { return &this->base; }
      |                                                           ^~~~
      |                                                           v_base
make[3]: *** [Makefile:1531: network-extension-functions.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-admin/lnav-0.11.2/work/lnav-0.11.2/src'
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/var/tmp/portage/app-admin/lnav-0.11.2/work/lnav-0.11.2/src'
aarch64-unknown-linux-gnu-g++ -std=c++14 -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"' -DSQLITE_OMIT_LOAD_EXTENSION -I./fmtlib -I./third-party -I./third-party/base64/include -I./third-party/rapidyaml -I../src/third-party/scnlib/include -Wall       -I../src/third-party/doctest-root  -D_ISOC99_SOURCE -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -I/usr/include -I/usr/include -I/usr/local/include  -O3 -pipe -mcpu=native -fdiagnostics-color=always -ggdb3 -fno-vect-cost-model  -c -o fs-extension-functions.o fs-extension-functions.cc
In file included from fs-extension-functions.cc:45:
vtab_module.hh: In member function ‘vtab_module<T>::vtab::operator sqlite3_vtab*()’:
vtab_module.hh:593:59: error: ‘struct vtab_module<T>::vtab’ has no member named ‘base’; did you mean ‘v_base’?
  593 |         explicit operator sqlite3_vtab*() { return &this->base; }
      |                                                           ^~~~
      |                                                           v_base
make[3]: *** [Makefile:1531: fs-extension-functions.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-admin/lnav-0.11.2/work/lnav-0.11.2/src'
make[3]: Entering directory '/var/tmp/portage/app-admin/lnav-0.11.2/work/lnav-0.11.2/src'

----

# emerge --info
Portage 3.0.65-12+gb65da90fe (python 3.12.4-final-0, default/linux/arm64/23.0/hardened, gcc-15, glibc-2.39-r9, 5.15.161-gentoo-dist aarch64)
=================================================================
System uname: Linux-5.15.161-gentoo-dist-aarch64-with-glibc2.39
KiB Mem:   262953728 total, 143173268 free
KiB Swap:    9767620 total,   9534916 free
Timestamp of repository gentoo: Sat, 20 Jul 2024 23:04:56 +0000
sh dash 0.5.12
ld GNU ld (Gentoo 2.42 p6) 2.42.0
ccache version 4.10.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r8::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.69-r9::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.30.1::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.10.14_p1-r1::gentoo, 3.11.9-r1::gentoo, 3.12.4_p2::gentoo, 3.13.0_beta4::gentoo
dev-lang/rust-bin:         1.79.0::gentoo
dev-util/ccache:           4.10.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.2::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo
sys-devel/gcc:             11.5.0::gentoo, 12.4.1_p20240711::gentoo, 13.3.1_p20240712::gentoo, 15.0.9999::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo, 18.1.8::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6-r2::gentoo, 18.1.8::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r9::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-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

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 -flto=jobserver -fno-vect-cost-model -fpermissive"
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 -flto=jobserver -fno-vect-cost-model"
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 -flto=jobserver -fno-vect-cost-model"
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 merge-wait multilib-strict news parallel-fetch pkgdir-index-trusted 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 -flto=jobserver -fno-vect-cost-model"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
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 colord crypt cups dbus declarative dot dri dts dvdr encode exif flac gdbm gif gpm gtk gui hardened http http2 iconv icu ipv6 jadetex jpeg kde kf6compat kwallet lcms libnotify libtirpc libxml2 lua lz4 lzma mad mng mp3 mp4 mpeg ncurses networkmanager nls ogg opengl openmp opus pam pango pcre pcre32 pdf perl pic pie pipewire plasma png policykit ppds pulseaudio python qml qt5 readline ruby screencast sdk sdl seccomp semantic-desktop snappy sound spell sql sqlite ssh ssl ssp startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wifi wireless wxwidgets x264 xattr xcb xft xml xtpax xv xvid zlib zstd" 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" 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" 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_12" PYTHON_TARGETS="python3_12 python3_10 python3_11" RUBY_TARGETS="ruby31 ruby32 ruby33" VIDEO_CARDS="fbdev dummy" 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, 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, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-21 01:01:44 UTC
base doesn't exist, it's a typo introduced in https://github.com/tstack/lnav/commit/db8a3c4d3842fc3f72ff4c787f5c49a8ab8ba15e#diff-5ea9b2716ffaa7861bed1c4fa9c7c6180a42b06db14875f16aae8473137eee12R501-R511.

GCC added this checking in r15-2117-g313afcfdabeab3.
Comment 2 Agostino Sarubbo gentoo-dev 2024-07-23 06:51:32 UTC
gcc15_tinderbox has reproduced this issue with version 0.11.2 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2024-07-24 07:12:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=985c76dc6abde7bead4ac3eeef75c1e797c041bb

commit 985c76dc6abde7bead4ac3eeef75c1e797c041bb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-07-24 07:11:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-24 07:11:50 +0000

    app-admin/lnav: fix build w/ gcc-15
    
    Closes: https://bugs.gentoo.org/936409
    Thanks-to: David Seifert <soap@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-admin/lnav/files/lnav-0.11.2-gcc15.patch | 23 +++++++++++++++++++++++
 app-admin/lnav/lnav-0.11.2.ebuild            |  3 ++-
 2 files changed, 25 insertions(+), 1 deletion(-)