Forums

Skip to content

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

Can't emerge rocBLAS. Need help.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
sonofnet
n00b
n00b
Posts: 27
Joined: Fri Jan 05, 2007 11:53 pm

Can't emerge rocBLAS. Need help.

  • Quote

Post by sonofnet » Tue Mar 24, 2026 10:29 am

Hi, guys,

I'd appreciate some help.
I'm trying to emerge llama-cpp, but it fails on rocBLAS install.


What do I do wrong?

Here are the files:
https://codeberg.org/sonofnet/gentoo/sr ... _build.log
https://codeberg.org/sonofnet/gentoo/sr ... rocblas720

emerge -pqv

Code: Select all

[ebuild  N    ] sci-libs/rocBLAS-7.2.0  USE="-benchmark -doc -hipblaslt -roctracer -test" AMDGPU_TARGETS="gfx90a gfx908 gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201 -gfx803 -gfx900 -gfx906 -gfx940 -gfx941 -gfx1010 -gfx1011 -gfx1012 -gfx1031 -gfx1102 -gfx1103 -gfx1150 -gfx1151" LLVM_SLOT="22"
emerge --info

Code: Select all

Portage 3.0.77 (python 3.13.12-final-0, default/linux/amd64/23.0/desktop, gcc-15, glibc-2.43, 6.18.9-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.18.9-gentoo-dist-x86_64-AMD_RYZEN_AI_MAX+_395_w-_Radeon_8060S-with-glibc2.43
KiB Mem:    32473076 total,  20687652 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 20 Mar 2026 15:00:00 +0000
Head commit of repository gentoo: c4deffa1bc1f9ae131c938eaadabaef57ce275a7
Head commit of repository ROKO__: 8da7b71ceb37e04164409103bbf1f3579988c328

Timestamp of repository guru: Fri, 20 Mar 2026 11:15:55 +0000
Head commit of repository guru: 8b0ee259938522d1901d6efb6b192d55abee293d

Head commit of repository hyproverlay: e56fde6171ceaad5a27d6756ac8612ba41a28985

Head commit of repository librewolf: 2387fc6f0b5cac40fd1ed2682152ce4fe2902f9b

sh bash 5.3_p9
ld GNU ld (Gentoo 2.46.0 p1) 2.46.0
app-misc/pax-utils:        1.3.10::gentoo
app-shells/bash:           5.3_p9::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r6::gentoo
dev-build/automake:        1.18.1::gentoo
dev-build/cmake:           4.2.3::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r102::gentoo
dev-build/meson:           1.10.2::gentoo
dev-lang/perl:             5.42.0-r1::gentoo
dev-lang/python:           3.13.12::gentoo, 3.14.3::gentoo
dev-lang/rust-bin:         1.77.1-r102::gentoo, 1.86.0-r1::gentoo, 1.93.1::gentoo, 1.94.0::gentoo
llvm-core/clang:           21.1.8::gentoo, 22.1.1::gentoo
llvm-core/lld:             21.1.8::gentoo, 22.1.1::gentoo
llvm-core/llvm:            21.1.8::gentoo, 22.1.1::gentoo
sys-apps/baselayout:       2.18-r1::gentoo
sys-apps/openrc:           0.63-r1::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.46.0::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc:             15.2.1_p20260214::gentoo
sys-devel/gcc-config:      2.12.2::gentoo
sys-kernel/linux-headers:  6.19::gentoo (virtual/os-headers)
sys-libs/glibc:            2.43::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: 3
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

ROKO__
    location: /var/db/repos/ROKO__
    sync-type: git
    sync-uri: https://github.com/sandikata/ROKO__.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

hyproverlay
    location: /var/db/repos/hyproverlay
    sync-type: git
    sync-uri: https://codeberg.org/hyproverlay/hyproverlay.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    location: /var/cache/binhost/gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
    verify-signature: None

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
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"
CXXFLAGS="-march=native -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=native -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="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.mephi.ru/gentoo-distfiles/ 		https://mirror.yandex.ru/gentoo-distfiles/ 		rsync://ftp.byfly.by/gentoo/ 		rsync://mirrors.kernel.org/mirrors/gentoo/"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j14 -l14"
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"
RUSTFLAGS=" -C target-cpu=native"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 amdgpu apparmor avif bluetooth branding btrfs bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel djvu dracut dri dts dvd dvdr echo-cancel elgind elogind encode exif ffmpeg flac fontconfig gdbm gif gpm grub gtk gui iconv icu imagemagick ipv6 jpeg jpeg2k jpegxl kvazaar lcms libnotify libtirpc lm-sensors lzma mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg openal opencl opengl openmp osmesa pam pango pcre pdf pipewire png policykit ppds qml qt6 radeonsi raw readline rocm samba savedconfig screencast sdl seccomp sound spell ssl startup-notification svg test-rust thunderbolt tiff truetype udev udisks unicode upower usb v4l vorbis wayland webp wifi wxwidgets x264 x265 xattr xcb xft xml xv xvid zeroconf zip zlib znver1" 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 aes avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl avx_vnni bmi1 bmi2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oncore skytraq superstar2 tsip tripmate tnt" 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="amdgpu radeonsi" 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, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Top
sonofnet
n00b
n00b
Posts: 27
Joined: Fri Jan 05, 2007 11:53 pm

Re: Can't emerge rocBLAS. Need help.

  • Quote

Post by sonofnet » Thu Apr 02, 2026 10:00 pm

Ok, I've got some new info in the ROCm github.

Extracted error message:

Code: Select all

return Common.ParallelMap(
~~~~~~~~~~~~~~~~~~^
LibraryIO.parseLibraryLogicFile, logicFiles, "Reading logic files", multiArg=False
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
OSError: [Errno 12] Cannot allocate memory
Reason of such high usage is attempt to compile for AMDGPU_TARGETS="gfx90a gfx908 gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201. You can mitigate the issue by specifying one concrete target as described in https://wiki.gentoo.org/wiki/ROCm#:~:te ... use%20flag (enable only gfx1151 in your case)

This issue is discussed in #316 with some measurements in #316 (comment) - and specifically gfx942 was the culprit (but gfx950 might be even worse).
Top
sonofnet
n00b
n00b
Posts: 27
Joined: Fri Jan 05, 2007 11:53 pm

Re: Can't emerge rocBLAS. Need help.

  • Quote

Post by sonofnet » Thu Apr 02, 2026 10:08 pm

I've then added

Code: Select all

# 00video_cards
*/* VIDEO_CARDS: amdgpu radeonsi

# 00-amdgpu-targets
*/* AMDGPU_TARGETS: -* gfx1151
to my /etc/portage/package.use.

But it didn't help either.
Top
Post Reply

3 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

 

 

magic