Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] cowsql failing to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 547

PostPosted: Sat Nov 11, 2023 8:26 pm    Post subject: [SOLVED] cowsql failing to build Reply with quote

Trying to install incus which relies on cowsql, but getting the error below.

Thoughts?

Code:

...
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"libcowsql\" -DPACKAG
E_TARNAME=\"libcowsql\" -DPACKAGE_VERSION=\"1.15.4\" "-DPACKAGE_STRING=\"libcows
ql 1.15.4\"" -DPACKAGE_BUGREPORT=\"https://github.com/cowsql/cowsql\" -DPACKAGE_
URL=\"\" -DPACKAGE=\"libcowsql\" -DVERSION=\"1.15.4\" -DHAVE_STDIO_H=1 -DHAVE_ST
DLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_
H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1
-DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_AL
T_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEM
ANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT
__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -
D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MA
TH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_PTHREAD_PRIO_INHE
RIT=1 -DHAVE_PTHREAD=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ARPA_INET_
H=1 -DHAVE_FCNTL_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAV
E_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -I. -std=c11 -g -fcf-protection --param=ssp-b
uffer-size=4 -pipe -fno-strict-aliasing -fdiagnostics-color -fexceptions -fstack
-clash-protection -fstack-protector-strong -fasynchronous-unwind-tables -fdiagno
stics-show-option -Wall -Wextra -Wimplicit-fallthrough=5 -Wcast-align -Wstrict-p
rototypes -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Winit-self
 -Wfloat-equal -Wsuggest-attribute=noreturn -Wformat=2 -Wshadow -Wendif-labels -
Wdate-time -Wnested-externs -Wconversion -pthread -O2 -fvisibility=hidden -march
=znver3 -O2 -pipe -c src/tuple.c  -fPIC -DPIC -o src/.libs/libcowsql_la-tuple.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"libcowsql\" -DPACKAG
E_TARNAME=\"libcowsql\" -DPACKAGE_VERSION=\"1.15.4\" "-DPACKAGE_STRING=\"libcows
ql 1.15.4\"" -DPACKAGE_BUGREPORT=\"https://github.com/cowsql/cowsql\" -DPACKAGE_
URL=\"\" -DPACKAGE=\"libcowsql\" -DVERSION=\"1.15.4\" -DHAVE_STDIO_H=1 -DHAVE_ST
DLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_
H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1
-DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_AL
T_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEM
ANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT
__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -
D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MA
TH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_PTHREAD_PRIO_INHE
RIT=1 -DHAVE_PTHREAD=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ARPA_INET_
H=1 -DHAVE_FCNTL_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAV
E_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -I. -std=c11 -g -fcf-protection --param=ssp-b
uffer-size=4 -pipe -fno-strict-aliasing -fdiagnostics-color -fexceptions -fstack
-clash-protection -fstack-protector-strong -fasynchronous-unwind-tables -fdiagno
stics-show-option -Wall -Wextra -Wimplicit-fallthrough=5 -Wcast-align -Wstrict-p
rototypes -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Winit-self
 -Wfloat-equal -Wsuggest-attribute=noreturn -Wformat=2 -Wshadow -Wendif-labels -
Wdate-time -Wnested-externs -Wconversion -pthread -O2 -fvisibility=hidden -march
=znver3 -O2 -pipe -c src/vfs.c  -fPIC -DPIC -o src/.libs/libcowsql_la-vfs.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"libcowsql\" -DPACKAG
E_TARNAME=\"libcowsql\" -DPACKAGE_VERSION=\"1.15.4\" "-DPACKAGE_STRING=\"libcows
ql 1.15.4\"" -DPACKAGE_BUGREPORT=\"https://github.com/cowsql/cowsql\" -DPACKAGE_
URL=\"\" -DPACKAGE=\"libcowsql\" -DVERSION=\"1.15.4\" -DHAVE_STDIO_H=1 -DHAVE_ST
DLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_
H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1
-DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_AL
T_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEM
ANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT
__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -
D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MA
TH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_PTHREAD_PRIO_INHE
RIT=1 -DHAVE_PTHREAD=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ARPA_INET_
H=1 -DHAVE_FCNTL_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAV
E_SYS_SOCKET_H=1 -DHAVE_UNISTD_H=1 -I. -std=c11 -g -fcf-protection --param=ssp-b
uffer-size=4 -pipe -fno-strict-aliasing -fdiagnostics-color -fexceptions -fstack
-clash-protection -fstack-protector-strong -fasynchronous-unwind-tables -fdiagno
stics-show-option -Wall -Wextra -Wimplicit-fallthrough=5 -Wcast-align -Wstrict-p
rototypes -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Winit-self
 -Wfloat-equal -Wsuggest-attribute=noreturn -Wformat=2 -Wshadow -Wendif-labels -
Wdate-time -Wnested-externs -Wconversion -pthread -O2 -fvisibility=hidden -march
=znver3 -O2 -pipe -c src/client/protocol.c  -fPIC -DPIC -o src/client/.libs/libc
owsql_la-protocol.o
src/server.c: In function 'cowsql__init':
src/server.c:98:16: error: 'struct raft' has no member named 'legacy'
   98 |         d->raft.legacy.step_cb = monitor_cb;
      |                ^
make: *** [Makefile:1594: src/libcowsql_la-server.lo] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-libs/cowsql-1.15.4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/cowsql-1.15.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/cowsql-1.15.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/cowsql-1.15.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/cowsql-1.15.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/cowsql-1.15.4/work/cowsql-1.15.4'
 * S: '/var/tmp/portage/dev-libs/cowsql-1.15.4/work/cowsql-1.15.4'

>>> Failed to emerge dev-libs/cowsql-1.15.4, Log file:

>>>  '/var/tmp/portage/dev-libs/cowsql-1.15.4/temp/build.log'

 * Messages for package dev-libs/cowsql-1.15.4:

 * ERROR: dev-libs/cowsql-1.15.4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/cowsql-1.15.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/cowsql-1.15.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/cowsql-1.15.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/cowsql-1.15.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/cowsql-1.15.4/work/cowsql-1.15.4'
 * S: '/var/tmp/portage/dev-libs/cowsql-1.15.4/work/cowsql-1.15.4'


Code:

 $ emerge --info
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/no-multilib, gcc
-12, glibc-2.37-r7, 6.1.19-gentoo x86_64)
=================================================================
System uname: Linux-6.1.19-gentoo-x86_64-AMD_Ryzen_9_7900X_12-Core_Processor-wit
h-glibc2.37
KiB Mem:    64967904 total,  21604560 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Fri, 10 Nov 2023 20:00:01 +0000
Head commit of repository gentoo: 394c80149155060e91a9c3ae8771d6d7a3028c70
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::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-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver3 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GO
BIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHO
RITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME
"
FCFLAGS="-march=znver3 -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 multilib-strict network-sandbox news nostrip parallel-fetch 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=znver3 -O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ https://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j20"
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"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="X acl alsa alsa-plugin amd64 apng berkdb boost bzip2 cairo cg cli compress conntrack cpus crypt cxx dbus dri elogind flash fortran freeimag gdbm gtk gudev gui iconv icu initramfs ipv6 libinput libtirpc lua lvm minizip ncurses network nls nptl nsplugin ois opengl openmp pam pcap pcre pcre16 png printsupport pulseaudio python qt5 readline redistributable rendering savedconfig script sdl seccomp split-usr sqlite ssl stats suid tcl test-rust tiff tk toolbar tools transparent-proxy truetype udev unicode webkit widgets xattr xcb xkb xorg zlib" ABI_X86="64" 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_X86="mmx mmxext sse sse2 aes avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl 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 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics" 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" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon" 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, 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_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS


Last edited by Wizumwalt on Sun Nov 12, 2023 2:34 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Nov 11, 2023 8:47 pm    Post subject: Reply with quote

Alright your system is stable but this package is only testing.
In my case it installed fine in my testing system,but failed in my stable one with
Code:

IC -DPIC -o src/.libs/libcowsql_la-server.o
src/server.c: In function 'cowsql__init':
src/server.c:98:16: error: 'struct raft' has no member named 'legacy'
   98 |         d->raft.legacy.step_cb = monitor_cb;
      |                ^


Same as you.
Try also installing the testing version of
Code:

dev-libs/raft

Ok confirmed it works with testing raft
Code:

=dev-libs/raft-0.18.2

_________________
:)


Last edited by alamahant on Sat Nov 11, 2023 8:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 547

PostPosted: Sat Nov 11, 2023 8:56 pm    Post subject: Reply with quote

Yeah, it's testing. I'm trying to install Incus which is masked and therefore this package.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Nov 11, 2023 8:58 pm    Post subject: Reply with quote

Plz see above updated my comment.
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum