Forums

Skip to content

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

[Solved] gcc 12.1.1_p20220625 fails to emerge

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Courier6
n00b
n00b
User avatar
Posts: 15
Joined: Fri Jul 30, 2021 7:13 pm

[Solved] gcc 12.1.1_p20220625 fails to emerge

  • Quote

Post by Courier6 » Sat Jul 02, 2022 4:50 am

GCC 12.1.1_p20220625 fails to emerge, and I have failed in figuring out how exactly to fix the issue.
Any help in solving this issue would be would be greatly appreciated.

Edit: I had forgotten to post the output of the build.log file, I would recommend reading the raw form as the one
of the main part of the page does not give all of the information

Output of the build.log file: https://gist.github.com/Maxz963/1348848 ... 490ae03e8b

Output of "emerge -pqv sys-devel/gcc-12.1.1_p20220625":

Code: Select all

[ebuild  NS   ] sys-devel/gcc-12.1.1_p20220625 [11.3.0] USE="(cxx) hardened (multilib) nptl openmp (pie) sanitize (ssp) (-ada) -cet (-custom-cflags) -d -debug -doc (-fixed-point) -fortran -go -graphite -jit (-libssp) -lto -nls -objc -objc++ -objc-gc (-pch) -pgo -systemtap -test -valgrind -vanilla -vtv -zstd" 
Output of "emerge --info sys-devel/gcc-12.1.1_p20220625":

Code: Select all

Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/hardened, gcc-11.3.0, glibc-2.35-r7, 5.18.7-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.18.7-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-8500_CPU_@_3.00GHz-with-glibc2.35
KiB Mem:    16153220 total,   9863272 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 01 Jul 2022 00:45:01 +0000
Head commit of repository gentoo: 6d394bba10e836b03681a3e8458896f1f454221a
Timestamp of repository flussence: Wed, 22 Jun 2022 16:10:51 +0000
Head commit of repository flussence: 80140c9cb392716fdcc0689c52217939d4179308

Timestamp of repository guru: Sat, 25 Jun 2022 00:47:39 +0000
Head commit of repository guru: 4be19bbedfc28ab8927fde158ca46f12f47f7e14

Head commit of repository librewolf: efe8bf9322346291217aa6f10c7095f6d0718417

Head commit of repository steam-overlay: 9a51cae3ff28b54137d2991679ac363f5775692b

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust-bin:         1.61.0::gentoo
dev-util/cmake:            3.23.2::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

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

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

librewolf
    location: /repos/librewolf
    sync-type: git
    sync-uri: https://gitlab.com/librewolf-community/browser/gentoo.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @FREE @GPL-COMPATIBLE @BINARY-REDISTRIBUTABLE @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -mstackrealign"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -mstackrealign"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news 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=native -O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 amdgpu bluray bzip2 cdr cli crypt dvd elogind gtk hardened iconv intel ipv6 jpeg libglvnd libmpv libtirpc mount multilib ncurses nptl openmp pam pcre pie pipewire-alsa readline seccomp split-usr ssl ssp themes truetype unicode usbredir vulkan x x264 x265 xattr xinerama xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput joystick" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc i386 x86 m68k ppc ppc64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, 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 
Last edited by Courier6 on Sat Jul 02, 2022 11:20 am, edited 1 time in total.
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 Jul 02, 2022 6:31 am

Code: Select all

/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625/libgcc/unwind.inc: In function '_Unwind_RaiseException':
/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625/libgcc/unwind.inc:141:1: sorry, unimplemented: Stack realignment not supported with '__builtin_eh_return'
  141 | }
      | ^
make[3]: *** [/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625/libgcc/shared-object.mk:14: unwind-dw2.o] Error 1
So try to disable -mstackrealign in your cflags.
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
Courier6
n00b
n00b
User avatar
Posts: 15
Joined: Fri Jul 30, 2021 7:13 pm

  • Quote

Post by Courier6 » Sat Jul 02, 2022 6:42 am

fedeliallalinea wrote: So try to disable -mstackrealign in your cflags
Just did and issued the the command for updating gcc! Will report back later with results. Thank you by the way.
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Sat Jul 02, 2022 7:19 am

On a related note, -mstackrealign is now used on multilib 32bit glibc and ncurses with USE=stack-realign (default enabled) to deal with these 32bit steam issues among others with old software, and setting this manually on any package shouldn't be relevant anymore, so I'd just leave it out entirely.
Top
Courier6
n00b
n00b
User avatar
Posts: 15
Joined: Fri Jul 30, 2021 7:13 pm

  • Quote

Post by Courier6 » Sat Jul 02, 2022 7:57 am

Ionen wrote:On a related note, -mstackrealign is now used on multilib 32bit glibc and ncurses with USE=stack-realign (default enabled) to deal with these 32bit steam issues among others with old software, and setting this manually on any package shouldn't be relevant anymore, so I'd just leave it out entirely.
I bring good news and bad news, for the good news, gcc and a lot of other programs I had installed had updated themselves to being 64 bit, and they all compiled without fail barring one. The bad news is that media-libs/vulkan-loader has been consistantly failing to compile.Thank you both for your help in this. I will be posting the build log and the emerge -pqv output for media-libs/vulkan-loader. I'm sorry to bother again but I am not able to figure out how to fix it properly. I'm betting that I have misconfigured something in the past and now it come back to bite me.

Output of "emerge -pqv media-libs/vulkan-loader-1.3.216":

Code: Select all

 [ebuild  U    ] media-libs/vulkan-loader-1.3.216  USE="X -layers -wayland" ABI_X86="32 (64) (-x32)" 
the build.log file

Code: Select all

[32m * [39;49;00mPackage:    media-libs/vulkan-loader-1.3.216
[32m * [39;49;00mRepository: gentoo
[32m * [39;49;00mMaintainer: x11@gentoo.org sarnex@gentoo.org
[32m * [39;49;00mUSE:        X abi_x86_32 abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
[32m * [39;49;00mFEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking vulkan-loader-1.3.216.tar.gz to /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work
>>> Source unpacked in /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work
>>> Preparing source in /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216 ...
 [32m*[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216"
 [32m*[0m Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build"
 [32m*[0m Hardcoded definition(s) removed in CMakeLists.txt:
 [32m*[0m      set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "defaul
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216 ...
 [32m*[0m abi_x86_32.x86: running multilib-minimal_abi_src_configure
 [32m*[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216"
 [32m*[0m Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86"
cmake -C /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS=-march=native -O2 -pipe -DNDEBUG -DCMAKE_CXX_FLAGS=-march=native -O2 -pipe -DNDEBUG -DCMAKE_SKIP_RPATH=ON -DBUILD_TESTS=OFF -DBUILD_WSI_WAYLAND_SUPPORT=no -DBUILD_WSI_XCB_SUPPORT=yes -DBUILD_WSI_XLIB_SUPPORT=yes -DVULKAN_HEADERS_INSTALL_DIR=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86/gentoo_toolchain.cmake /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216
loading initial cache file /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86/gentoo_common_config.cmake
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
********************************************************************************
* NOTE: Not adding target to run update_deps.py automatically.                 *
********************************************************************************
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found VulkanHeaders: /usr/include  
-- Found VulkanRegistry: /usr/share/vulkan/registry  
-- Detected Vulkan Version 1.3.216
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.0") 
-- Found Git: /usr/bin/git (found version "2.35.1") 
-- Found xcb: /usr/include  
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - not found
-- Looking for secure_getenv
-- Looking for secure_getenv - found
-- Looking for __secure_getenv
-- Looking for __secure_getenv - not found
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Looking for cet.h
-- Looking for cet.h - found
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe -DNDEBUG
C++             -march=native -O2 -pipe -DNDEBUG
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86
 [32m*[0m abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 [32m*[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216"
 [32m*[0m Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_64.amd64"
cmake -C /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_64.amd64/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS=-march=native -O2 -pipe -DNDEBUG -DCMAKE_CXX_FLAGS=-march=native -O2 -pipe -DNDEBUG -DCMAKE_SKIP_RPATH=ON -DBUILD_TESTS=OFF -DBUILD_WSI_WAYLAND_SUPPORT=no -DBUILD_WSI_XCB_SUPPORT=yes -DBUILD_WSI_XLIB_SUPPORT=yes -DVULKAN_HEADERS_INSTALL_DIR=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_64.amd64/gentoo_toolchain.cmake /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216
loading initial cache file /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_64.amd64/gentoo_common_config.cmake
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
********************************************************************************
* NOTE: Not adding target to run update_deps.py automatically.                 *
********************************************************************************
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found VulkanHeaders: /usr/include  
-- Found VulkanRegistry: /usr/share/vulkan/registry  
-- Detected Vulkan Version 1.3.216
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.0") 
-- Found Git: /usr/bin/git (found version "2.35.1") 
-- Found xcb: /usr/include  
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Looking for secure_getenv
-- Looking for secure_getenv - found
-- Looking for __secure_getenv
-- Looking for __secure_getenv - not found
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Looking for cet.h
-- Looking for cet.h - found
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe -DNDEBUG
C++             -march=native -O2 -pipe -DNDEBUG
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_64.amd64
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216 ...
 [32m*[0m abi_x86_32.x86: running multilib-minimal_abi_src_compile
 [32m*[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216"
 [32m*[0m Build directory  (BUILD_DIR):     "/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86"
ninja -v -j6 -l0
[1/21] /usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DAPI_NAME="Vulkan" -DFALLBACK_CONFIG_DIRS="/etc/xdg" -DFALLBACK_DATA_DIRS="/usr/local/share:/usr/share" -DHAVE_CET_H -DHAVE_SECURE_GETENV -DLOADER_ENABLE_LINUX_SORT -DSYSCONFDIR="/etc" -DVK_ENABLE_BETA_EXTENSIONS -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT -D_GNU_SOURCE -I/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader -I/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/generated -I/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86/loader  -march=native -O2 -pipe -DNDEBUG -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp -Wno-stringop-truncation -Wno-stringop-overflow -Wimplicit-fallthrough=0 -fvisibility=hidden -Wpointer-arith -std=c99 -MD -MT loader/CMakeFiles/asm_offset.dir/asm_offset.c.o -MF loader/CMakeFiles/asm_offset.dir/asm_offset.c.o.d -o loader/CMakeFiles/asm_offset.dir/asm_offset.c.o -c /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/asm_offset.c
FAILED: loader/CMakeFiles/asm_offset.dir/asm_offset.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DAPI_NAME="Vulkan" -DFALLBACK_CONFIG_DIRS="/etc/xdg" -DFALLBACK_DATA_DIRS="/usr/local/share:/usr/share" -DHAVE_CET_H -DHAVE_SECURE_GETENV -DLOADER_ENABLE_LINUX_SORT -DSYSCONFDIR="/etc" -DVK_ENABLE_BETA_EXTENSIONS -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT -D_GNU_SOURCE -I/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader -I/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/generated -I/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86/loader  -march=native -O2 -pipe -DNDEBUG -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp -Wno-stringop-truncation -Wno-stringop-overflow -Wimplicit-fallthrough=0 -fvisibility=hidden -Wpointer-arith -std=c99 -MD -MT loader/CMakeFiles/asm_offset.dir/asm_offset.c.o -MF loader/CMakeFiles/asm_offset.dir/asm_offset.c.o.d -o loader/CMakeFiles/asm_offset.dir/asm_offset.c.o -c /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/asm_offset.c
In file included from /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/vk_loader_platform.h:77,
                 from /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/loader_common.h:32,
                 from /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/loader.h:32,
                 from /var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/asm_offset.c:26:
/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/generated/vk_layer_dispatch_table.h:671:5: error: unknown type name 'PFN_vkCmdTraceRaysIndirect2KHR'
  671 |     PFN_vkCmdTraceRaysIndirect2KHR CmdTraceRaysIndirect2KHR;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/generated/vk_layer_dispatch_table.h:876:5: error: unknown type name 'PFN_vkGetImageSubresourceLayout2EXT'
  876 |     PFN_vkGetImageSubresourceLayout2EXT GetImageSubresourceLayout2EXT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216/loader/generated/vk_layer_dispatch_table.h:925:5: error: unknown type name 'PFN_vkGetPipelinePropertiesEXT'
  925 |     PFN_vkGetPipelinePropertiesEXT GetPipelinePropertiesEXT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
 [31;01m*[0m ERROR: media-libs/vulkan-loader-1.3.216::gentoo failed (compile phase):
 [31;01m*[0m   ninja -v -j6 -l0 failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  127:  Called src_compile
 [31;01m*[0m   environment, line 2558:  Called cmake-multilib_src_compile
 [31;01m*[0m   environment, line  725:  Called multilib-minimal_src_compile
 [31;01m*[0m   environment, line 1889:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 [31;01m*[0m   environment, line 2156:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 [31;01m*[0m   environment, line 1849:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 [31;01m*[0m   environment, line 1847:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 [31;01m*[0m   environment, line  487:  Called multilib-minimal_abi_src_compile
 [31;01m*[0m   environment, line 1883:  Called multilib_src_compile
 [31;01m*[0m   environment, line 2368:  Called cmake_src_compile
 [31;01m*[0m   environment, line  836:  Called cmake_build
 [31;01m*[0m   environment, line  805:  Called eninja
 [31;01m*[0m   environment, line 1285:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=media-libs/vulkan-loader-1.3.216::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=media-libs/vulkan-loader-1.3.216::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/media-libs/vulkan-loader-1.3.216/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/media-libs/vulkan-loader-1.3.216/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/vulkan-loader-1.3.216_build-abi_x86_32.x86'
 [31;01m*[0m S: '/var/tmp/portage/media-libs/vulkan-loader-1.3.216/work/Vulkan-Loader-sdk-1.3.216'
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Sat Jul 02, 2022 9:05 am

That's odd, it would happen if vulkan-headers version mismatch (e.g. had vulkan-headers-1.3.211 while trying to build 1.3.216) but it depends on exact ~dev-util/vulkan-headers-${PV}

Is it finding headers a vulkan_core.h somewhere else, like /usr/local?
Top
Courier6
n00b
n00b
User avatar
Posts: 15
Joined: Fri Jul 30, 2021 7:13 pm

  • Quote

Post by Courier6 » Sat Jul 02, 2022 9:17 am

I would suppose so, I did install the vulkan sdk from the official tarball a while back to mess around with it a bit. I'll get rid of the vulkan related files in /usr/local/ and report back later this morning.

EDIT: It works!
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Jul 02, 2022 3:40 pm

If you wish to use an out-of-Portage version of a package, such as the Vulkan SDK, you are better off creating an ebuild for that version, so that Portage is aware of what was installed and can advise you if you try to mix incompatible versions.
Top
Post Reply

8 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