Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927738 - sys-libs/libomp-18.1.2 error: option 'cf-protection={return,branch}' cannot be specified on this target
Summary: sys-libs/libomp-18.1.2 error: option 'cf-protection={return,branch}' cannot b...
Status: RESOLVED DUPLICATE of bug 927752
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-24 17:29 UTC by Conrad Kostecki
Modified: 2024-03-26 05:50 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,130.60 KB, text/plain)
2024-03-24 17:30 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2024-03-24 17:29:51 UTC
[45/875] cd /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/libomptarget/DeviceRTL && /usr/lib/llvm/18/bin/clang -c -foffload-lto -std=c++17 -fvisibility=hidden -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512 -mllvm -vectorize-slp=false --offload-device-only -nocudalib -nogpulib -nostdinc -fopenmp -fopenmp-cuda-mode -Wno-unknown-cuda-version -DOMPTARGET_DEVICE_RUNTIME -I/var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL/include -I/var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL/../include -I/usr/lib/llvm/18/include --offload-arch=gfx700 -Xclang -mcode-object-version=none -MD -MF Allocator.cpp-gfx700.bc.d /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL/src/Allocator.cpp -o Allocator.cpp-gfx700.bc && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64 /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/libomptarget/DeviceRTL /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/libomptarget/DeviceRTL/Allocator.cpp-gfx700.bc.d /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/CMakeFiles/d/4ca48289ff0c6922da646f582781fd911e60b9218ba5feecadd6de1c2ad6eaaf.d
FAILED: libomptarget/DeviceRTL/Allocator.cpp-gfx700.bc /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/libomptarget/DeviceRTL/Allocator.cpp-gfx700.bc
cd /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/libomptarget/DeviceRTL && /usr/lib/llvm/18/bin/clang -c -foffload-lto -std=c++17 -fvisibility=hidden -O3 -mllvm -openmp-opt-disable -DSHARED_SCRATCHPAD_SIZE=512 -mllvm -vectorize-slp=false --offload-device-only -nocudalib -nogpulib -nostdinc -fopenmp -fopenmp-cuda-mode -Wno-unknown-cuda-version -DOMPTARGET_DEVICE_RUNTIME -I/var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL/include -I/var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL/../include -I/usr/lib/llvm/18/include --offload-arch=gfx700 -Xclang -mcode-object-version=none -MD -MF Allocator.cpp-gfx700.bc.d /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL/src/Allocator.cpp -o Allocator.cpp-gfx700.bc && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp/libomptarget/DeviceRTL /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64 /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/libomptarget/DeviceRTL /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/libomptarget/DeviceRTL/Allocator.cpp-gfx700.bc.d /var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64/CMakeFiles/d/4ca48289ff0c6922da646f582781fd911e60b9218ba5feecadd6de1c2ad6eaaf.d
error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
2 errors generated.
ninja: build stopped: subcommand failed.
 * ERROR: sys-libs/libomp-18.1.2::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4532:  Called cmake-multilib_src_compile
 *   environment, line 1511:  Called multilib-minimal_src_compile
 *   environment, line 3317:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 3584:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 3277:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 3275:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  609:  Called multilib-minimal_abi_src_compile
 *   environment, line 3311:  Called multilib_src_compile
 *   environment, line 3804:  Called cmake_src_compile
 *   environment, line 1629:  Called cmake_build
 *   environment, line 1596:  Called eninja
 *   environment, line 2072:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=sys-libs/libomp-18.1.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/libomp-18.1.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/libomp-18.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libomp-18.1.2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp_build-abi_x86_64.amd64'
 * S: '/var/tmp/portage/sys-libs/libomp-18.1.2/work/openmp'
Comment 1 Conrad Kostecki gentoo-dev 2024-03-24 17:30:33 UTC
Created attachment 888460 [details]
build.log
Comment 2 Conrad Kostecki gentoo-dev 2024-03-24 17:30:50 UTC
Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.39-r2, 6.8.1-gentoo x86_64)
=================================================================
System uname: Linux-6.8.1-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1275_v6_@_3.80GHz-with-glibc2.39
KiB Mem:    63997620 total,  10277260 free
KiB Swap:   67633148 total,  66050244 free
Timestamp of repository gentoo: Sun, 24 Mar 2024 13:15:00 +0000
Head commit of repository gentoo: 21c59aa445e3f3053a39e89ec20421230afda7a7
Timestamp of repository guru: Sun, 24 Mar 2024 09:48:38 +0000
Head commit of repository guru: fd2b6157b8bf4bd36079c065a7841fe9d3b2668f

sh bash 5.2_p26
ld GNU ld (Gentoo 2.42 p3) 2.42.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.9.1 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.0::gentoo
dev-build/libtool:         2.4.7-r3::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.10.14::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust:             1.76.0-r1::gentoo
dev-util/ccache:           4.9.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.0::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             15.0.7::gentoo, 18.1.0::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.2::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --compress --exclude-from=/etc/portage/rsync_excludes --new-compress

bl4ckb0x
    location: /usr/local/portage
    masters: gentoo
    volatile: True

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

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/stunnel/stunnel.conf /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.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/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="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
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 -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 buildpkg-live ccache 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 sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env 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/grub.d /etc/systemd /etc/xinetd.d"
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"
LEX="flex"
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"
SHELL="/bin/zsh"
USE="X aalib accessibility acl alsa amd64 ao asm avif bash-completion berkdb bzip2 cairo calendar caps cddb cgi cjk colord cracklib crypt cups curl cvs cxx dbus dedicated dga djvu dri dvb egl elogind encode exif expat fbcon ffmpeg fftw filecaps flac fontconfig fortran ftp gd gdbm geolocation gif git gles2 gmp gnutls gphoto2 gpm graphviz gsm gstreamer hddtemp iconv icu idn ieee1394 imap imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k kerberos latex lcms ldap libass libcaca libnotify libsamplerate lm-sensors lto lua luajit lz4 lzma lzo magic maildir mbox mhash mikmod milter mmap modplug modules-compress modules-sign motif mp3 mysql mysqli ncurses nls nntp offensive ogg openal opencl openexr opengl openmp opus orc oss pam pcre pdf perl pie png policykit posix postgres postscript pulseaudio python raw readline rtmp samba sasl scanner sctp sdl seccomp secureboot session slang smartcard sndfile snmp soap sockets sound sox speex spell split-usr sqlite ssl startup-notification strip subversion suid svg symlink syslog tcl test-rust theora threads tiff truetype udev unicode upnp 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 cgroups check_uptime connectivity conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount hddtemp hugepages interface ipc ipmi iptables irq java load mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn pcie_errors ping postgresql processes protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users wireless" CPU_FLAGS_X86="aes avx avx2 f16c 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 synaptics" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" LLVM_SLOT="17" 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 php8-2 php8-3" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="hp net" VIDEO_CARDS="intel"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 Fabio Scaccabarozzi 2024-03-24 22:57:39 UTC
Confirm this is happening also with current-stable =sys-libs/libomp-17.0.6. Hit this while rebuilding world after 23.0 profile switch (am using clang as system compiler).

Removing -fcf-protection=full from /etc/clang/gentoo-hardened.cfg fixes the build. IIRC this is set via USE="cet" on sys-devel/clang-common.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-26 05:50:07 UTC

*** This bug has been marked as a duplicate of bug 927752 ***