[58/201] cd /var/tmp/portage/sys-libs/libomp-13.0.0/work/libomp-13.0.0_build-abi_x86_32.x86/libomptarget/deviceRTLs/amdgcn && CLANG_TOOL-NOTFOUND -xc++ -c -mllvm -openmp-opt-disable -std=c++14 -ffreestanding -target amdgcn-amd-amdhsa -emit-llvm -Xclang -aux-triple -Xclang x86_64-unknown-linux-gnu -fopenmp -fopenmp-cuda-mode -Xclang -fopenmp-is-device -D__AMDGCN__ -Xclang -target-cpu -Xclang gfx701 -fvisibility=default -Wno-unused-value -nogpulib -O2 -I/var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs/amdgcn/src -I/var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs/common/include -I/var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs /var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs/amdgcn/src/amdgcn_locks.hip -o amdgcn_locks.gfx701.bc FAILED: libomptarget/deviceRTLs/amdgcn/amdgcn_locks.gfx701.bc /var/tmp/portage/sys-libs/libomp-13.0.0/work/libomp-13.0.0_build-abi_x86_32.x86/libomptarget/deviceRTLs/amdgcn/amdgcn_locks.gfx701.bc cd /var/tmp/portage/sys-libs/libomp-13.0.0/work/libomp-13.0.0_build-abi_x86_32.x86/libomptarget/deviceRTLs/amdgcn && CLANG_TOOL-NOTFOUND -xc++ -c -mllvm -openmp-opt-disable -std=c++14 -ffreestanding -target amdgcn-amd-amdhsa -emit-llvm -Xclang -aux-triple -Xclang x86_64-unknown-linux-gnu -fopenmp -fopenmp-cuda-mode -Xclang -fopenmp-is-device -D__AMDGCN__ -Xclang -target-cpu -Xclang gfx701 -fvisibility=default -Wno-unused-value -nogpulib -O2 -I/var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs/amdgcn/src -I/var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs/common/include -I/var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs /var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp/libomptarget/deviceRTLs/amdgcn/src/amdgcn_locks.hip -o amdgcn_locks.gfx701.bc /bin/sh: line 1: CLANG_TOOL-NOTFOUND: command not found ninja: build stopped: subcommand failed. * ERROR: sys-libs/libomp-13.0.0::gentoo failed (compile phase): * ninja -v -j1 -l0 failed * * Call stack: * ebuild.sh, line 127: Called src_compile * environment, line 4393: Called cmake-multilib_src_compile * environment, line 1413: Called multilib-minimal_src_compile * environment, line 3192: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile' * environment, line 3462: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 3127: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 3125: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile' * environment, line 622: Called multilib-minimal_abi_src_compile * environment, line 3186: Called multilib_src_compile * environment, line 3674: Called cmake_src_compile * environment, line 1524: Called cmake_build * environment, line 1493: Called eninja * environment, line 2000: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" * * If you need support, post the output of `emerge --info '=sys-libs/libomp-13.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-libs/libomp-13.0.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-libs/libomp-13.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libomp-13.0.0/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/libomp-13.0.0/work/libomp-13.0.0_build-abi_x86_32.x86' * S: '/var/tmp/portage/sys-libs/libomp-13.0.0/work/openmp'
Created attachment 742986 [details] build.log
Portage 3.0.26 (python 3.9.7-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r7, 5.14.6-gentoo x86_64) ================================================================= System uname: Linux-5.14.6-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1275_v6_@_3.80GHz-with-glibc2.33 KiB Mem: 65622332 total, 60445712 free KiB Swap: 67633148 total, 67633148 free Timestamp of repository gentoo: Mon, 04 Oct 2021 17:15:01 +0000 Head commit of repository gentoo: eb8c8ba78b79aef423dcd9439076a463bda60d0e sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 distcc 3.4 x86_64-pc-linux-gnu [disabled] ccache version 4.4.2 [enabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r2::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.9.7::gentoo, 3.10.0_rc2::gentoo dev-lang/rust: 1.55.0::gentoo dev-util/ccache: 4.4.2::gentoo dev-util/cmake: 3.21.3::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.5::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: --compress --exclude-from=/etc/portage/rsync_excludes --new-compress sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 bl4ckb0x location: /usr/local/portage masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/teamspeak3-server/ts3server.ini /etc/teamspeak3-server/ts3server_mariadb.ini /etc/teamspeak3-server/tsdns_settings.ini /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/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y" 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 -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance ccache 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 sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe" GENTOO_MIRRORS="https://packages.hetzner.com/gentoo/" INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/*" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-O1 -Wl,--sort-common -Wl,-z,now" LINGUAS="de de_DE" MAKEOPTS="-j9 -l8" PKGDIR="/var/cache/binpkgs" PORTAGE_BUNZIP2_COMMAND="pbunzip2" PORTAGE_BZIP2_COMMAND="pbzip2" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9e" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--compress --exclude-from=/etc/portage/rsync_excludes --new-compress" 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" USE="X aalib accessibility acl alsa amd64 berkdb bzip2 cairo calendar caps cddb cgi cjk colord cracklib crypt cups curl cvs cxx dbus dga djvu dri dvb elogind encode exif fbcon ffmpeg fftw filecaps flac fontconfig fortran ftp gd gdbm geolocation gif git gmp gnutls gphoto2 gpm graphviz gsm iconv icu idn ieee1394 imap imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k kerberos latex lcms ldap libass libcaca libglvnd libnotify libsamplerate lm-sensors lua luajit lz4 lzma lzo magic maildir mbox mhash mikmod milter mmap modplug motif mp3 mysql mysqli ncurses nls nntp offensive ogg openal openexr opengl openmp opus orc oss pam pcre pdf perl pie png policykit posix postgres postscript pulseaudio python raw readline rtmp samba sasl scanner sdl seccomp session slang smartcard sndfile snmp soap sockets sound sox speex spell split-usr sqlite ssl startup-notification subversion suid svg symlink syslog tcl tcpd theora threads tiff truetype udev unicode usb v4l vaapi vdpau verify-sig vhosts vim-syntax vnc vorbis wavpack wayland webkit webp wmf x264 xattr xcb xcomposite xface xft xinetd xml xmpp xpm xscreensaver xv xvid zeroconf zip zlib zsh-completion zstd" ABI_X86="32 64" COLLECTD_PLUGINS="apcups battery buddyinfo capabilities cgroups check_uptime connectivity conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount hddtemp hugepages interface ipc ipmi iptables irq load java mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn pcie_errors ping postgresql processes procevent protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users wireless" CPU_FLAGS_X86="aes avx avx2 rdrand mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt nmea0183" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" LUA_SINGLE_TARGET="lua5-3" LUA_TARGETS="lua5-3 lua5-4" NGINX_MODULES_HTTP="access addition auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip geoip2 gunzip gzip gzip_static headers_more image_filter javascript limit_conn limit_req map metrics proxy realip referer rewrite secure_link sticky stub_status upload_progress upstream_keepalive vhost_traffic_status xslt" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_STREAM="access geo geoip geoip2 javascript limit_conn map realip return ssl_preread" PHP_TARGETS="php7-4" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby27 ruby30" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="i965 intel iris" Unset: CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST, RUSTFLAGS
## Workaround ## USE=-openmp emerge -1a sys-devel/clang-runtime sys-devel/clang \ && emerge -1a sys-devel/clang-runtime sys-devel/clang
I suspect you can also solve this by installing clang. I need to play with upstream build system some, so it will take a while. However, I think I'll end up introducing a USE flag for this.
(In reply to Michał Górny from comment #4) > I suspect you can also solve this by installing clang. Yes, this indeed helped. I emerged manually clang:13 and after that, sys-libs/libomp:13 emerged fine.
*** Bug 816357 has been marked as a duplicate of this bug. ***
(In reply to Conrad Kostecki from comment #5) > (In reply to Michał Górny from comment #4) > > I suspect you can also solve this by installing clang. > > Yes, this indeed helped. I emerged manually clang:13 and after that, > sys-libs/libomp:13 emerged fine. So I first emerge sys-devel/clang-runtime:13.0.0 with USE=-openmp to build sys-devel/clang:13 and then rebuild it again with USE=openmp to get OpenMP support?
(In reply to Dennis Schridde from comment #7) > (In reply to Conrad Kostecki from comment #5) > > (In reply to Michał Górny from comment #4) > > > I suspect you can also solve this by installing clang. > > > > Yes, this indeed helped. I emerged manually clang:13 and after that, > > sys-libs/libomp:13 emerged fine. > > So I first emerge sys-devel/clang-runtime:13.0.0 with USE=-openmp to build > sys-devel/clang:13 and then rebuild it again with USE=openmp to get OpenMP > support? Sorry, I missed comment #3.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20caeaec04410f2470ea6ed2bd6aac14ed09ee9c commit 20caeaec04410f2470ea6ed2bd6aac14ed09ee9c Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-10-05 15:33:38 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-10-05 15:34:22 +0000 sys-libs/libomp: Add flags & deps for deviceRTLs Closes: https://bugs.gentoo.org/816270 Signed-off-by: Michał Górny <mgorny@gentoo.org> sys-libs/libomp/libomp-13.0.0.9999.ebuild | 20 ++++++++++++++++---- sys-libs/libomp/libomp-13.0.0.ebuild | 20 ++++++++++++++++---- sys-libs/libomp/libomp-14.0.0.9999.ebuild | 20 ++++++++++++++++---- 3 files changed, 48 insertions(+), 12 deletions(-)