Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge systemd error on RISC-V
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
martin.wozenilek
n00b
n00b


Joined: 16 Jun 2024
Posts: 2
Location: Germany

PostPosted: Sun Jun 30, 2024 10:33 am    Post subject: emerge systemd error on RISC-V Reply with quote

Hi there!

When I try a

Code:
emerge --ask --verbose --update --deep --newuse @world


on my RISC-V VisionFive2 the emerge of systemd generates this error:

Code:

[749/1728] riscv64-unknown-linux-gnu-gcc -Isrc/vmspawn/libvmspawn-core.a.p -Isrc/vmspawn -I../systemd-256.1/src/vmspawn -Isrc/basic -I../systemd-256.1/src/basic -Isrc/fundamental -I../systemd-256.1/src/fundamental -Isrc/systemd -I../systemd-256.1/src/systemd -I. -I../systemd-256.1 -I../systemd-256.1/src/libsystemd/sd-bus -I../systemd-256.1/src/libsystemd/sd-device -I../systemd-256.1/src/libsystemd/sd-event -I../systemd-256.1/src/libsystemd/sd-hwdb -I../systemd-256.1/src/libsystemd/sd-id128 -I../systemd-256.1/src/libsystemd/sd-journal -I../systemd-256.1/src/libsystemd/sd-netlink -I../systemd-256.1/src/libsystemd/sd-network -I../systemd-256.1/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-256.1/src/shared -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays --param=ssp-buffer-size=4 -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -Werror=shadow -march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections -fdata-sections -include config.h -MD -MQ src/vmspawn/libvmspawn-core.a.p/vmspawn-util.c.o -MF src/vmspawn/libvmspawn-core.a.p/vmspawn-util.c.o.d -o src/vmspawn/libvmspawn-core.a.p/vmspawn-util.c.o -c ../systemd-256.1/src/vmspawn/vmspawn-util.c
FAILED: src/vmspawn/libvmspawn-core.a.p/vmspawn-util.c.o
riscv64-unknown-linux-gnu-gcc -Isrc/vmspawn/libvmspawn-core.a.p -Isrc/vmspawn -I../systemd-256.1/src/vmspawn -Isrc/basic -I../systemd-256.1/src/basic -Isrc/fundamental -I../systemd-256.1/src/fundamental -Isrc/systemd -I../systemd-256.1/src/systemd -I. -I../systemd-256.1 -I../systemd-256.1/src/libsystemd/sd-bus -I../systemd-256.1/src/libsystemd/sd-device -I../systemd-256.1/src/libsystemd/sd-event -I../systemd-256.1/src/libsystemd/sd-hwdb -I../systemd-256.1/src/libsystemd/sd-id128 -I../systemd-256.1/src/libsystemd/sd-journal -I../systemd-256.1/src/libsystemd/sd-netlink -I../systemd-256.1/src/libsystemd/sd-network -I../systemd-256.1/src/libsystemd/sd-resolve -Isrc/shared -I../systemd-256.1/src/shared -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=strict-flex-arrays -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong -fstrict-flex-arrays --param=ssp-buffer-size=4 -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -Werror=shadow -march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe -fPIC -fno-strict-aliasing -fstrict-flex-arrays=1 -fvisibility=hidden -ffunction-sections -fdata-sections -include config.h -MD -MQ src/vmspawn/libvmspawn-core.a.p/vmspawn-util.c.o -MF src/vmspawn/libvmspawn-core.a.p/vmspawn-util.c.o.d -o src/vmspawn/libvmspawn-core.a.p/vmspawn-util.c.o -c ../systemd-256.1/src/vmspawn/vmspawn-util.c
In file included from ../systemd-256.1/src/vmspawn/vmspawn-util.c:27:
../systemd-256.1/src/vmspawn/vmspawn-util.h:44:4: error: #error "No qemu machine defined for this architecture"
   44 | #  error "No qemu machine defined for this architecture"
      |    ^~~~~


This is a new error after a

Code:
emaint --auto sync


Is this an error in the ebuild or has something changed I've to react to?

Thanks for your assistance!
Back to top
View user's profile Send private message
martin.wozenilek
n00b
n00b


Joined: 16 Jun 2024
Posts: 2
Location: Germany

PostPosted: Sun Jun 30, 2024 10:37 am    Post subject: emerge --info Reply with quote

And the emerge --info:

Code:

StarFive ~ # emerge --info '=sys-apps/systemd-256.1-r1::gentoo'
Portage 3.0.65 (python 3.12.4-final-0, default/linux/riscv/23.0/rv64/lp64d/desktop/gnome/systemd, gcc-14, glibc-2.39-r9, 6.6.20 riscv64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.20-riscv64-with-glibc2.39
KiB Mem:     8098028 total,   5511880 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 30 Jun 2024 09:00:00 +0000
Head commit of repository gentoo: 318d4366277e272a4bacb0d7f89123399954e862
Timestamp of repository dilfridge: Thu, 20 Jun 2024 07:33:59 +0000
Head commit of repository dilfridge: 232bf6259e6bda4aa1b009a5447862ec35f37eff

Timestamp of repository guru: Sat, 29 Jun 2024 10:04:02 +0000
Head commit of repository guru: 2c9f271b98a83f4a5161d600a225f23c63fdc0d7

Timestamp of repository riscv: Wed, 26 Jun 2024 00:03:59 +0000
Head commit of repository riscv: cb3fd927bc805bde2c21ab1d519d08e4f84b0169

sh bash 5.2_p26-r5
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r5::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-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.4_p1::gentoo, 3.13.0_beta2_p9::gentoo
dev-lang/rust-bin:         1.79.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          255.7::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             14.1.1_p20240622::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            16.0.6::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-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

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

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

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

ACCEPT_KEYWORDS="riscv ~riscv"
ACCEPT_LICENSE="@FREE"
CBUILD="riscv64-unknown-linux-gnu"
CFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
CHOST="riscv64-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/sandbox.d"
CXXFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -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=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync merge-wait multilib-strict news parallel-fetch 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=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="C"
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="/data/portage_tmpdir/"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa bluetooth branding bzip2 cairo cdda cdr colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac gdbm gif gnome gnome-keyring gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline riscv sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" 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" 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" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="fbdev" 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, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22602

PostPosted: Sun Jun 30, 2024 2:17 pm    Post subject: Reply with quote

Welcome to the forums.

Generally, if post length permits, you should edit extra information into your first post instead of replying to it. Some users run a canned search for threads with zero replies as a way of finding posts to answer. When you replied to yourself, you removed your thread from that list, even though you were not replying to announce that the thread was solved. Thus, they would no longer see your thread on the list of unanswered threads.

To your specific problem, this looks to me like an error in the ebuild. systemd does not support systemd-vmspawn for your architecture, so the ebuild should have configured systemd not to attempt to build it. Please file a bug asking to have this feature disabled on riscv.
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