Forums

Skip to content

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

Failed to emerge dev-util/spirv-llvm-translator-17.0.0

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
Torpus
Apprentice
Apprentice
User avatar
Posts: 184
Joined: Sun Aug 20, 2023 6:23 pm

Failed to emerge dev-util/spirv-llvm-translator-17.0.0

  • Quote

Post by Torpus » Sat Sep 30, 2023 7:26 am

How stubborn are LLVM+Clang...

Originally I had originally mesa failed to compile because it didn't find spirv-llvm-translator in its version 17.0.0 despite it is already "installed":

Code: Select all

# emerge -aq dev-util/spirv-llvm-translator

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: 9 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
[ebuild   R   ] dev-util/spirv-llvm-translator-17.0.0
So I tried emerging it again just as I did with Clang which seemed to had installed before the ver. 16 instead of 17.

But now even dev-util/spirv-llvm-translator itself failed to emerge. The only error shown in the log was:

Code: Select all

FAILED: tools/llvm-spirv/llvm-spirv
Here's the full log though.

I don't know if that's a bug or something (fedeliallalinea might know it if it is :wink: ) but I don't think I found it at Gentoo Bugzilla, and I have a feeling that it's "inactive" compared to the forums. :oops:

Here's more:

Code: Select all

# emerge --info 
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-12, glibc-2.38-r2, 5.15.0-76-generic x86_64)
=================================================================
System uname: Linux-5.15.0-76-generic-x86_64-AMD_A10-9620P_RADEON_R5,_10_COMPUTE_CORES_4C+6G-with-glibc2.38
KiB Mem:     7558456 total,   3018592 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 26 Sep 2023 00:45:01 +0000
Head commit of repository gentoo: 7f7ef87b3eca34e0e7401f97335927338479c2a0
Timestamp of repository guru: Wed, 27 Sep 2023 09:16:35 +0000
Head commit of repository guru: 295660a13a9329ac8c3d0fe64ad10bd29fd045bd

Timestamp of repository palemoon: Thu, 14 Sep 2023 14:16:43 +0000
Head commit of repository palemoon: a2f06a48b0d726808550b8d65126502306329f6c

Timestamp of repository pentoo: Wed, 27 Sep 2023 07:01:34 +0000
Head commit of repository pentoo: aa3a1f5dec7da944a076a443d71fce85a355c8d5

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo, 3.12.0_rc3::gentoo
dev-lang/rust:             1.72.0::gentoo
dev-util/cmake:            3.27.6-r1::gentoo
dev-util/meson:            1.2.1-r2::gentoo
sec-policy/selinux-base:   2.20221101-r4::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.50::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo, 2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.1::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/llvm:            16.0.6::gentoo, 17.0.1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r2::gentoo
sys-libs/libselinux:       3.5-r1::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-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1 --load-average=1"
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 -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live candy config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="https://repo.ifca.es/gentoo-distfiles https://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ http://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4 -l4"
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"
SHELL="/bin/bash"
USE="acl alsa amd64 audit bzip2 caps cet clamav cli contrib crypt daemon donate dri fortran gcc gdbm git gtk2 hardened hwloc iconv imagemagick ipv6 java libinput libtirpc luatex lvm multilib ncurses nls nptl numa opencl openmp pam pcre perl pie pipewire png radeon readline seccomp selinux sound-server split-usr ssl ssp static sync-plugin-portage systemsqlite test-rust trypandoc udev unicode usb vhost-net virtfs webp x xattr xtpax zlib zstd" 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" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics keyboard mouse" 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="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, 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, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
:)
Illegitimi non carborundum.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sat Sep 30, 2023 9:55 am

Code: Select all

/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: /usr/lib64/libSPIRV-Tools.so: undefined reference to `std::ios_base_library_init()@GLIBCXX_3.4.32'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Try to rebuild dev-util/spirv-tools package
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

  • Quote

Post by jody » Sat Feb 10, 2024 6:27 pm

Hi
I also have a problem withdev-util/spirv-llvm-translator, but with version 16.0.0-r1 instead of 17.0.0.
When i do a emerge --ask --verbose --update --deep --newuse @world this fails with a problem in spirv-llvm-translator.
The relevant lines in the build log are

Code: Select all

[6/42] /usr/bin/x86_64-pc-linux-gnu-g++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/16/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/include -I/usr/include/spirv/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/Mangler  -march=native -O2 -pipe -fno-builtin-strlen -mavx -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -std=gnu++17 -fPIC -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o -MF lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o.d -o lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o -c /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/LLVMToSPIRVDbgTran.cpp
FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/16/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/include -I/usr/include/spirv/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/Mangler  -march=native -O2 -pipe -fno-builtin-strlen -mavx -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -std=gnu++17 -fPIC -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o -MF lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o.d -o lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/LLVMToSPIRVDbgTran.cpp.o -c /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/LLVMToSPIRVDbgTran.cpp
In file included from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVModule.h:44,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/LLVMToSPIRVDbgTran.h:42,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:38:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVEntry.h: In member function ‘SPIRV::SPIRVCapVec SPIRV::SPIRVContinuedInstINTELBase<OC>::getRequiredCapability() const’:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVEntry.h:906:19: error: ‘CapabilityLongCompositesINTEL’ was not declared in this scope
  906 |     return getVec(CapabilityLongCompositesINTEL);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/SPIRVInternal.h:45,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/OCLUtil.h:42,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/SPIRVWriter.h:47,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/LLVMToSPIRVDbgTran.cpp:39:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h: In member function ‘void SPIRV::SPIRVMap<Ty1, Ty2, Identifier>::init() [with Ty1 = spv::Capability; Ty2 = std::__cxx11::basic_string<char>; Identifier = void]’:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h:607:7: error: ‘CapabilityLongCompositesINTEL’ was not declared in this scope
  607 |   add(CapabilityLongCompositesINTEL, "LongCompositesINTEL");
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[7/42] /usr/bin/x86_64-pc-linux-gnu-g++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/16/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/include -I/usr/include/spirv/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/Mangler  -march=native -O2 -pipe -fno-builtin-strlen -mavx -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -std=gnu++17 -fPIC -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o -MF lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o.d -o lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o -c /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/OCLToSPIRV.cpp
FAILED: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/16/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/include -I/usr/include/spirv/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV -I/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/Mangler  -march=native -O2 -pipe -fno-builtin-strlen -mavx -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -std=gnu++17 -fPIC -MD -MT lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o -MF lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o.d -o lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/OCLToSPIRV.cpp.o -c /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/OCLToSPIRV.cpp
In file included from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/SPIRVInternal.h:45,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/OCLUtil.h:42,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/OCLToSPIRV.h:43,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/OCLToSPIRV.cpp:41:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h: In member function ‘void SPIRV::SPIRVMap<Ty1, Ty2, Identifier>::init() [with Ty1 = spv::Capability; Ty2 = std::__cxx11::basic_string<char>; Identifier = void]’:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h:607:7: error: ‘CapabilityLongCompositesINTEL’ was not declared in this scope
  607 |   add(CapabilityLongCompositesINTEL, "LongCompositesINTEL");
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVType.h:47,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/SPIRVInternal.h:46:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVEntry.h: In member function ‘SPIRV::SPIRVCapVec SPIRV::SPIRVContinuedInstINTELBase<OC>::getRequiredCapability() const’:
/var/tmp/portage/dev-util/spirv-llvm-translator-16.0.0-r1/work/SPIRV-LLVM-Translator-16.0.0/lib/SPIRV/libSPIRV/SPIRVEntry.h:906:19: error: ‘CapabilityLongCompositesINTEL’ was not declared in this scope
  906 |     return getVec(CapabilityLongCompositesINTEL);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
 * ERROR: dev-util/spirv-llvm-translator-16.0.0-r1::gentoo failed (compile phase):
 *   ninja -v -j2 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 2320:  Called cmake_src_compile
 *   environment, line  878:  Called cmake_build
 *   environment, line  845:  Called eninja
 *   environment, line 1316:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
I also rebuilt the dev-util/spirv-tools but this didn't help.
This issue is a bit annoying because almost everything i want to emerge pulls in spirv-llvm-translator
Is there a way to fix this issue?
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Sun Feb 11, 2024 1:50 am

Torpus,

Code: Select all

/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: /usr/lib64/libSPIRV-Tools.so: undefined reference to `std::ios_base_library_init()@GLIBCXX_3.4.32'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
is probably from your gcc downgrade (emerge --info means you using gcc-12)
Set the latest (already installed) stable gcc-13 with gcc-config should work then.

Or/and see https://wiki.gentoo.org/wiki/Upgrading_ ... rading_GCC
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Sun Feb 11, 2024 1:53 am

@jody
it is probably a different issue,
i think https://bugs.gentoo.org/922779

Please test it after a fresh emerge --sync
Top
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

  • Quote

Post by jody » Sun Feb 11, 2024 7:42 am

@josef.95
The description of bug 922779 matches what i observed.
I did a resync, but unfortunatelyi still get the same error.
Is it possible that the commit of the bug fix hasn't "come through" yet?
Top
VPlanida
n00b
n00b
Posts: 5
Joined: Sun Feb 11, 2024 1:17 pm

  • Quote

Post by VPlanida » Sun Feb 11, 2024 1:21 pm

One upping the issue translator-16.0.0-r1. Ran in to issue emerging world while doing fresh install from the latest liveCD and stage3 with fresh sync.
Cheers
Top
Hu
Administrator
Administrator
Posts: 24386
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Feb 11, 2024 4:17 pm

jody wrote:Is it possible that the commit of the bug fix hasn't "come through" yet?
Only if your emerge --sync pulled a commit from before the fix was applied. The output of emerge --info would show us whether this happened.
Top
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

  • Quote

Post by jody » Sun Feb 11, 2024 4:29 pm

This is the output of emerge --info:

Code: Select all

Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.6.13-gentoo-x86_64-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-1355U-with-glibc2.38
KiB Mem:    32589932 total,  21362164 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of repository gentoo: Sun, 11 Feb 2024 08:30:02 +0000
Head commit of repository gentoo: b19d426bb4270f876855b0f1db12b4420100fa2d
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::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-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes

Binary Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-builtin-strlen -mavx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fno-builtin-strlen -mavx"
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 -fno-builtin-strlen -mavx"
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 parallel-fetch pid-sandbox 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=native -O2 -pipe -fno-builtin-strlen -mavx"
GENTOO_MIRRORS="rsync://ftp.tu-ilmenau.de/gentoo/     rsync://ftp.fau.de/gentoo     https://mirror.init7.net/gentoo/     rsync://mirror.init7.net/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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 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-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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, 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, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
BTW, this also happened during the installation of gentoo on a clean new machine
Last edited by jody on Sun Feb 11, 2024 6:41 pm, edited 1 time in total.
Top
VPlanida
n00b
n00b
Posts: 5
Joined: Sun Feb 11, 2024 1:17 pm

  • Quote

Post by VPlanida » Sun Feb 11, 2024 4:58 pm

Interesting thing, seems like ninja or portage got whacked during the initial world update.
After I got the error, emerge is now running verbose without the --verbose comand

And now that I think about it, I have decided to go for complete reinstall because portage was acting up with the world update on a running system.
Cheers
Top
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

  • Quote

Post by jody » Mon Feb 12, 2024 12:18 pm

I found a sort of workaround:
After having unmasked dev-util/spirv-llvm-translator-17.0.0-r2, I emerged it without encountering any errors.

After that, emerge --ask --verbose --update --deep --newuse @world also completed without any further error messages.

So this solved the problem for me.
Top
Maverick59
n00b
n00b
Posts: 1
Joined: Fri Feb 16, 2024 9:21 pm
Location: FR

  • Quote

Post by Maverick59 » Fri Feb 16, 2024 9:42 pm

Hello Guys,

Just the same here, new machine with fresh portage and stage3 (installed yesterday).

Got to add an accept keyword ~amd64 for spirv-llvm-translator and spirv-headers (dependancy for the first one), in order to be able to emerge spirv-llvm-translator-17.0.0-r2 instead of 16.0.0-r1.

Curiously, spirv-headers is an update in my case, guess it has been installed just before in the emerge @world i'm trying to get rid with.

Once this packet built, able to continue emerge @world without other problems. This warkaround seems to work, but i can't explain why. Thanks Jody for the lead on this.

Just to be more precise, i was trying to achieve an emerge --newuse --update @world after switching profile to desktop. No other packages installed, bare metal fresh install.
Top
danomac
l33t
l33t
User avatar
Posts: 881
Joined: Sat Nov 06, 2004 6:30 am
Location: Vancouver, BC

  • Quote

Post by danomac » Sat Feb 17, 2024 3:21 am

I had this problem.

Updated the headers only to a new version manually (odd the ebuild doesn't do this automatically):

Code: Select all

Keywords for dev-util/spirv-headers:
           |                               |   u   |  
           | a   a     p s     l r   a     |   n   |  
           | m   r h   p p   i o i s l m m | e u s | r
           | d a m p p c a x a o s 3 p 6 i | a s l | e
           | 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o | p
           | 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t | o
-----------+-------------------------------+-------+-------
   1.3.268 | + + + o + + o + o ~ ~ o o o o | 8 o 0 | gentoo
[I]1.3.275 | + + + o ~ ~ o + o ~ ~ o o o o | 8 o   | gentoo
  99999999 | o o o o o o o o o o o o o o o | 8 o   | gentoo
After this, spirv-llvm-translator installed fine:

Code: Select all

Keywords for dev-util/spirv-llvm-translator:
             |                               |   u    |  
             | a   a     p s     l r   a     |   n    |  
             | m   r h   p p   i o i s l m m | e u s  | r
             | d a m p p c a x a o s 3 p 6 i | a s l  | e
             | 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o  | p
             | 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t  | o
-------------+-------------------------------+--------+-------
   15.0.0-r1 | + o o o o o o ~ o o ~ o o o o | 8 o 15 | gentoo
-------------+-------------------------------+--------+-------
[I]16.0.0-r1 | + o o o o o o ~ o o ~ o o o o | 8 o 16 | gentoo
-------------+-------------------------------+--------+-------
   17.0.0-r2 | ~ o ~ o o o o ~ o o ~ o o o o | 8 o 17 | gentoo
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

 

 

magic