Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

problem with updating librsvg

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
esemds
n00b
n00b
Posts: 4
Joined: Wed Dec 31, 2025 2:25 pm

problem with updating librsvg

  • Quote

Post by esemds » Wed Dec 31, 2025 2:38 pm

Hello everybody,
It's almost 2 weeks i am trying to update my gentoo system but some package (librsvg) does not update and does not compile.
Because lots of other packages depend on librsvg, they dont compile and i can not update lot's of my packaes. (I should mention the version in gentoo packages repo is not updated and is a little outdated). I cloned the git repo (version 2.60.0) and even that version did not compile (updated version does compile), i guess there is a bug or something like that.

this is the output of emerge --info '=gnome-base/librsvg-2.60.0::gentoo'

Code: Select all

Portage 3.0.73 (python 3.13.11-final-0, default/linux/amd64/23.0/desktop, gcc-15, glibc-2.42-r3, 6.15.8-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.15.8-gentoo-dist-x86_64-12th_Gen_Intel-R-_Core-TM-_i5-12450H-with-glibc2.42
KiB Mem:    16086236 total,   9104440 free
KiB Swap:    8388604 total,   7494668 free
Timestamp of repository gentoo: Wed, 31 Dec 2025 08:50:00 +0000
Head commit of repository gentoo: 95499c8f4e317646dae04a0d4a997ce59f068207
sh bash 5.3_p9
ld GNU ld (Gentoo 2.44 p4) 2.44.0
app-misc/pax-utils:        1.3.10::gentoo
app-shells/bash:           5.3_p9::gentoo
dev-build/autoconf:        2.72-r5::gentoo
dev-build/automake:        1.18.1::gentoo
dev-build/cmake:           4.2.1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r102::gentoo
dev-build/meson:           1.10.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.42.0-r1::gentoo
dev-lang/python:           3.13.11::gentoo, 3.14.0_p1::gentoo
dev-lang/rust-bin:         1.88.0::gentoo, 1.89.0::gentoo, 1.92.0::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.8::gentoo
llvm-core/lld:             19.1.7::gentoo, 20.1.8::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.8::gentoo, 21.1.7::gentoo
sys-apps/baselayout:       2.18::gentoo
sys-apps/openrc:           0.63::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.44-r3::gentoo, 2.45.1::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc:             15.2.1_p20251122::gentoo
sys-devel/gcc-config:      2.12.2::gentoo
sys-kernel/linux-headers:  6.18::gentoo (virtual/os-headers)
sys-libs/glibc:            2.42-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-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.4/ext-active/ /etc/php/apache2-php8.5/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cgi-php8.5/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/cli-php8.5/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/fpm-php8.5/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /etc/php/phpdbg-php8.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-index 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.aliyun.com/gentoo/     https://mirrors.mit.edu/gentoo-distfiles/     http://mirrors.mit.edu/gentoo-distfiles/     rsync://mirrors.mit.edu/gentoo-distfiles/     https://gentoo.osuosl.org/     http://gentoo.osuosl.org/     https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
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/bash"
USE="X a52 aac acl acpi alsa amd64 avif bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg jpegxl lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qml qt6 readline sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland webp wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_15" 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_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="i915 intel" 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, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Thanks for any help.
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: problem with updating librsvg

  • Quote

Post by GDH-gentoo » Wed Dec 31, 2025 3:00 pm

esemds wrote:Hello everybody,
It's almost 2 weeks i am trying to update my gentoo system but some package (librsvg) does not update and does not compile.
Then have Portage build librsvg with emerge --oneshot gnome-base/librsvg, wait until it fails, and then post the build log so that we can have a look at it. Use wgetpaste and a pastebin site if it is too large.
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
esemds
n00b
n00b
Posts: 4
Joined: Wed Dec 31, 2025 2:25 pm

Re: problem with updating librsvg

  • Quote

Post by esemds » Thu Jan 01, 2026 10:08 am

GDH-gentoo wrote:
esemds wrote:Hello everybody,
It's almost 2 weeks i am trying to update my gentoo system but some package (librsvg) does not update and does not compile.
Then have Portage build librsvg with emerge --oneshot gnome-base/librsvg, wait until it fails, and then post the build log so that we can have a look at it. Use wgetpaste and a pastebin site if it is too large.
OK, this is the output of emerge --oneshot gnome-base/librsvg https://pastebin.com/FCUyr2eB

AND this is the full log (meson log) https://pastebin.com/bwKz7xx6
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: problem with updating librsvg

  • Quote

Post by GDH-gentoo » Fri Jan 02, 2026 4:23 pm

esemds wrote:AND this is the full log (meson log) https://pastebin.com/bwKz7xx6
Do you still have directory /var/tmp/portage/gnome-base/librsvg-2.60.0 from the failed build? If yes, could you post the output of:

Code: Select all

$ cd /var/tmp/portage/gnome-base/librsvg-2.60.0/work/librsvg-2.60.0/meson
$ /usr/bin/python3.13 query-rustc.py /opt/rust-bin-1.92.0/bin/rustc --query=native-static-libs
$ /opt/rust-bin-1.92.0/bin/rustc --print=native-static-libs --crate-type staticlib /dev/null
?
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
esemds
n00b
n00b
Posts: 4
Joined: Wed Dec 31, 2025 2:25 pm

Re: problem with updating librsvg

  • Quote

Post by esemds » Sat Jan 03, 2026 8:38 am

GDH-gentoo wrote:
esemds wrote:AND this is the full log (meson log) https://pastebin.com/bwKz7xx6
Do you still have directory /var/tmp/portage/gnome-base/librsvg-2.60.0 from the failed build? If yes, could you post the output of:

Code: Select all

$ cd /var/tmp/portage/gnome-base/librsvg-2.60.0/work/librsvg-2.60.0/meson
$ /usr/bin/python3.13 query-rustc.py /opt/rust-bin-1.92.0/bin/rustc --query=native-static-libs
$ /opt/rust-bin-1.92.0/bin/rustc --print=native-static-libs --crate-type staticlib /dev/null
?
Yes, i have.
the line /usr/bin/python3.13 query-rustc.py /opt/rust-bin-1.92.0/bin/rustc --query=native-static-libs returns:

Code: Select all

util dl rt gcc_s pthread m c
and the line /opt/rust-bin-1.92.0/bin/rustc --print=native-static-libs --crate-type staticlib /dev/null returns:

Code: Select all

note: link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Mon Jan 05, 2026 7:04 pm

OK. The build fails while doing this, so I wanted to narrow down who's responsible for the "RuntimeWarning: Unexpected value in sys.prefix, expected /usr, got /usr/bin" message. Doesn't seem to be the Rust compiler or the build system's query-rustc.py script at first glance.

What's the output of:

Code: Select all

$ python3.13 -c "$(printf 'import sys\nprint(sys.prefix)')"
?
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
esemds
n00b
n00b
Posts: 4
Joined: Wed Dec 31, 2025 2:25 pm

  • Quote

Post by esemds » Tue Jan 06, 2026 12:40 pm

GDH-gentoo wrote:OK. The build fails while doing this, so I wanted to narrow down who's responsible for the "RuntimeWarning: Unexpected value in sys.prefix, expected /usr, got /usr/bin" message. Doesn't seem to be the Rust compiler or the build system's query-rustc.py script at first glance.

What's the output of:

Code: Select all

$ python3.13 -c "$(printf 'import sys\nprint(sys.prefix)')"
?
OK, the line python3.13 -c "$(printf 'import sys\nprint(sys.prefix)')" returns:

Code: Select all

/usr
Is it possible to edit that part of the source, kinda comment it out. I mean will it even work temporary till next update?
BTW, thanks for your time man.
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Tue Jan 06, 2026 6:45 pm

Well, since we know in this particular case what the output of meson/query-rustc.py is, and the build fails only because running it through Meson's run_command() function (in the environment set up by Portage) also prints that message to standard error, you could try cheating and using /etc/portage/patches to apply this patch (warning: untested), and seeing what happens:

Code: Select all

--- orig/meson.build	2026-01-06 15:25:19.746255813 -0300
+++ patched/meson.build	2026-01-06 15:31:11.735179088 -0300
@@ -347,8 +347,7 @@
   endif
   rustc_query_native_static_libs_args += ['--query=native-static-libs']
 
-  native_libs = run_command(
-    rustc_query_native_static_libs_args,
+  native_libs = run_command('printf', 'm pthread dl c util rt gcc_s',
     capture: true,
     check: true
   )
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
shieru
n00b
n00b
User avatar
Posts: 3
Joined: Mon Mar 30, 2026 8:44 am
Location: Canada

  • Quote

Post by shieru » Mon Mar 30, 2026 8:40 pm

Hello,
I've also encountered this same problem, and have been prevented from updating my system from sometime in early January because of it (package pinning notwithstanding).

What I am trying to do:
sudo emerge --update --newuse --deep --with-bdeps=y @world

Build log: https://paste.gentoo.zip/AMGZ8PIE (not sure why it displays as a binary file...)
Output of `emerge --info '=gnome-base/librsvg-2.60.0::gentoo'`: https://paste.gentoo.zip/NKGOlrNY
Output of `emerge -pqv '=gnome-base/librsvg-2.60.0::gentoo'`: https://paste.gentoo.zip/rYQnN1qU

After a quick search, I came across [bug=962767]bug #962767 - gnome-base/librsvg-2.60.0 fails to build [/bug], where the apparent issue was a conflict between llvm and libxml that can be resolved via revdep-rebuild.sh

output of $ sudo revdep-rebuild.sh: https://paste.gentoo.zip/ajU70sfK
* Dynamic linking on your system is consistent... All done.
This apparently changed nothing.

I also followed, albeit knowing that it doesn't seem applicable to my case, the advice of GDH-Gentoo in this thread, and created that patch in my system. I should clarify that the build log and outputs shared above are after applying that patch. Thus, the patch did not solve the issue.

I see in the build log posted in the bug report that they face the same problem of ninja failing when die is invoked at some point in the build process. But then the reporter says the problem was with LLVM.
Thank you for any suggestions.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon Mar 30, 2026 9:45 pm

shieru wrote:I also followed, albeit knowing that it doesn't seem applicable to my case, the advice of GDH-Gentoo in this thread, and created that patch in my system. I should clarify that the build log and outputs shared above are after applying that patch. Thus, the patch did not solve the issue.
As I read the linked build log, no user patches were applied. We don't know what you did to try to apply GDH-gentoo's patch, but it seems your attempt was ignored.
Top
shieru
n00b
n00b
User avatar
Posts: 3
Joined: Mon Mar 30, 2026 8:44 am
Location: Canada

  • Quote

Post by shieru » Tue Mar 31, 2026 1:29 am

Hu,
thanks for that important point.

I've traced my steps on that front and it seems that not only did I misplace the patch file in another directory completely, but I also failed to perform all the steps outlined in the wiki for /etc/portage/patches. So it makes sense that you saw no mention of the patch.

Upon placing the file correctly in the /etc/portage/patches/gnome-base/librsvg-2.60.0 folder, I ran

Code: Select all

bash-5.3$ sudo cd $(portageq get_repo_path / gentoo)/gnome-base/librsvg
bash-5.3$ sudo ebuild librsvg-2.60.0.ebuild clean prepare
This was the output, seemed successful enough: https://paste.gentoo.zip/CiNmyKXX.

Afterwards, I emerged the librsvg package, simply using sudo emerge --ask gnome-base/librsvg

It failed again in a similar way, but this time I did notice that the user patch was applied: https://paste.gentoo.zip/uQ9IDmtv

Running a diff on the two log files shows me that the only substantial change was that the patch was applied. Did I do something wrong in the emerging step?
Top
grknight
Retired Dev
Retired Dev
Posts: 2550
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Tue Mar 31, 2026 12:29 pm

shieru,

This is your problem:

Code: Select all

RUSTFLAGS=" -C target -cpu=znver2"
Should be:

Code: Select all

RUSTFLAGS=" -C target-cpu=znver2"
The command is erroring out on "-c" as unknown option and the only thing that starts is the above.
Top
shieru
n00b
n00b
User avatar
Posts: 3
Joined: Mon Mar 30, 2026 8:44 am
Location: Canada

Re: problem with updating librsvg

  • Quote

Post by shieru » Thu Apr 02, 2026 1:21 am

Indeed, grknight, that was the problem. The package builds successfully now, thank you!
Top
Post Reply

13 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy