Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 783102 - media-libs/opencv-4.5.1[cuda] fails to compile: internal compiler error: Segmentation fault
Summary: media-libs/opencv-4.5.1[cuda] fails to compile: internal compiler error: Segm...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-04-16 07:46 UTC by Miroslav Šulc
Modified: 2024-04-21 17:54 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.xz,35.86 KB, application/x-xz)
2021-04-16 07:46 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2021-04-16 07:46:51 UTC
Created attachment 700074 [details]
build.log

[6/1078] cd /var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda && /usr/bin/cmake -E make_directory /var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/. && /usr/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Gentoo -D generated_file:STRING=/var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o -D generated_cubin_file:STRING=/var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o.cubin.txt -P /var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o.Gentoo.cmake
FAILED: modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o 
cd /var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda && /usr/bin/cmake -E make_directory /var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/. && /usr/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Gentoo -D generated_file:STRING=/var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o -D generated_cubin_file:STRING=/var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o.cubin.txt -P /var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o.Gentoo.cmake
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/chrono: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)))>::den == 1)> [with _Period2 = _Period2; _Rep = _Rep; _Period = _Period]’:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/chrono:473:154:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/chrono:428:27: internal compiler error: Segmentation fault
  428 |  _S_gcd(intmax_t __m, intmax_t __n) noexcept
      |                           ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
CMake Error at cuda_compile_1_generated_gpu_mat.cu.o.Gentoo.cmake:282 (message):
  Error generating file
  /var/tmp/portage/media-libs/opencv-4.5.1/work/opencv-4.5.1_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o

# emerge --info '=media-libs/opencv-4.5.1::gentoo'
Portage 3.0.18 (python 3.9.4-final-0, default/linux/amd64/17.1/hardened, gcc-10.3.0, glibc-2.32-r8, 5.11.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-glibc2.32
KiB Mem:    32812472 total,   5659712 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 16 Apr 2021 04:30:01 +0000
Head commit of repository gentoo: 5785b9874b5b556912b5d12444dabcd619cc4f15
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p8::gentoo, 3.7.10_p1::gentoo, 3.8.9::gentoo, 3.9.4::gentoo
dev-lang/rust:            1.51.0::gentoo
dev-util/cmake:           3.20.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.23::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.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.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

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

fordfrog
    location: /usr/src/fordfrog.git
    masters: gentoo
    priority: 0

local
    location: /usr/local/portage
    masters: gentoo

brother-overlay
    location: /var/lib/layman/brother-overlay
    masters: gentoo
    priority: 50

ceamac
    location: /var/lib/layman/ceamac
    masters: gentoo
    priority: 50

flavour
    location: /var/lib/layman/flavour
    masters: gentoo
    priority: 50

waebbl
    location: /var/lib/layman/waebbl
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.1/conf /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/db/repos/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
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 -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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 -frecord-gcc-switches"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs cs_CZ en en_US en_UK"
MAKEOPTS="-j9"
PKGDIR="/var/db/repos/gentoo/packages"
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"
USE="X a52 aac aacplus acl alsa amd64 aubio bluetooth bzip2 cdda cddb cdr color-management colord crypt cuda cups dbus dia dssi dvb dvd elogind exif ffmpeg flac gegl gif gphoto2 gsm gtk gtk3 hardened hddtemp http2 ibus iconv icu id3tag ipv6 jack jack-dbus jacksession javafx jpeg ladspa lastfm latex lcms libass libglvnd libnotify libproxy libsamplerate libtirpc lilypond lm-sensors lv2 mad modplug mp3 mpeg mpi mtp multilib musepack ncurses nls nptl ocr ogg openexr opengl openmp opus osc pam pcre pdf pie png policykit pulseaudio qt5 raw readline rubberband samba scanner seccomp sf2 sndfile soundio speex spell split-usr ssl ssp startup-notification svg svg2 taglib theora tiff timidity tk tray truetype udev unicode usb vamp visio vorbis vpx vst vulkan wavpack webp widevine wmf x264 x265 xattr xinerama xmp xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user cgi cgid deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt 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" INPUT_DEVICES="evdev libinput synaptics wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_7 python3_8 python3_9" RUBY_TARGETS="ruby26 ruby27 ruby30" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

media-libs/opencv-4.5.1::gentoo was built with the following:
USE="contrib contribdnn cuda eigen features2d ffmpeg gphoto2 jpeg openexr opengl openmp png python qt5 tiff webp -contribcvv -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -debug -dnnsamples -download -examples -gdal -gflags -glog -gstreamer -gtk3 -ieee1394 -java -jpeg2k -lapack -lto -opencl -opencvapps -tesseract -testprograms -threads -v4l -vaapi -vtk -xine" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx f16c popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx2 -avx512f -fma3" PYTHON_TARGETS="python3_7 python3_8 python3_9"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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"


# emerge -pqv '=media-libs/opencv-4.5.1::gentoo'
[ebuild   R   ] media-libs/opencv-4.5.1  USE="contrib contribdnn cuda eigen features2d ffmpeg gphoto2 jpeg openexr opengl openmp png python qt5 tiff webp -contribcvv -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -debug -dnnsamples -download -examples -gdal -gflags -glog -gstreamer -gtk3 -ieee1394 -java -jpeg2k -lapack -lto -opencl -opencvapps -tesseract -testprograms -threads -v4l -vaapi -vtk -xine" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx f16c popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx2 -avx512f -fma3" PYTHON_TARGETS="python3_7 python3_8 python3_9"
Comment 1 Marcin 2021-05-02 00:48:11 UTC
I had exact the same error.
I have nvidia-cuda-toolkit/nvidia-cuda-toolkit-11.1.1-r2 due to cudnn and opencv requirements. I can't see gcc 10.3 support in 11.1.1-r2. However this is the lowest gcc pulled by emerge. In the past it was 8.4 but it seems 8.4 for some reason is not kept by emerge anymore.

WORKAROUND:
- emerge =sys-devel/gcc-10.2.0-r5
- set default gcc to 10.2 with gcc-config
After this it works for me. Just higher version of gcc must be masked or simply `--exclude gcc` when updating Gentoo/@world.
Comment 2 Ross Charles C. 2021-05-05 17:15:09 UTC
(In reply to Marcin from comment #1)
> I had exact the same error.
> I have nvidia-cuda-toolkit/nvidia-cuda-toolkit-11.1.1-r2 due to cudnn and
> opencv requirements. I can't see gcc 10.3 support in 11.1.1-r2. However this
> is the lowest gcc pulled by emerge. In the past it was 8.4 but it seems 8.4
> for some reason is not kept by emerge anymore.
> 
> WORKAROUND:
> - emerge =sys-devel/gcc-10.2.0-r5
> - set default gcc to 10.2 with gcc-config
> After this it works for me. Just higher version of gcc must be masked or
> simply `--exclude gcc` when updating Gentoo/@world.

What if you bump nvidia-cuda-toolkit to 11.3?
Comment 3 Marcin 2021-05-05 21:42:06 UTC
(In reply to Ross Charles C. from comment #2)
> (In reply to Marcin from comment #1)
> > I had exact the same error.
> > I have nvidia-cuda-toolkit/nvidia-cuda-toolkit-11.1.1-r2 due to cudnn and
> > opencv requirements. I can't see gcc 10.3 support in 11.1.1-r2. However this
> > is the lowest gcc pulled by emerge. In the past it was 8.4 but it seems 8.4
> > for some reason is not kept by emerge anymore.
> > 
> > WORKAROUND:
> > - emerge =sys-devel/gcc-10.2.0-r5
> > - set default gcc to 10.2 with gcc-config
> > After this it works for me. Just higher version of gcc must be masked or
> > simply `--exclude gcc` when updating Gentoo/@world.
> 
> What if you bump nvidia-cuda-toolkit to 11.3?

I can't. I can have max 11.1.1-r2 due to cudnn and opencv requirements.
Comment 4 Ross Charles C. 2021-05-06 01:32:41 UTC
I'm about to bump opencv to 4.5.2, will check it out while I'm at it.
Comment 5 gertoe 2021-06-11 14:11:54 UTC
The issue seems to be related to a bug in gcc itself and cannot be fixed by simply bumping opencv to 4.5.2 only.

Furthermore, please keep in mind that gcc 10.3 is currently not officially supported by the NVIDIA CUDA toolkit.

According to [1]https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102, the gcc bug will be fixed in gcc-10.4, 11.2 and 12.0, respectively. However, the patch can still be applied to gcc-10.3 and can be found at [1] as well.

I was able to merge opencv-4.5.2 with the patched gcc-10.3.0 and nvidia-cuda-toolkit-11.1.1-r2 and 11.3.0-r1. Still, lto has to be disabled due to some incompatibilities I am unable to determine right now.

With gcc-10.3.0, I was, notwithstanding this, not able to compile opencv-4.5.1 due to some incompatibilities with dev-cpp/tbb, according to the build log.

At the moment, rebuilding gcc-10.3 with the applied patch seems to be the only viable solution to merge opencv-4.5.2[cuda,-lto] without downgrading to gcc-10.2.
Comment 6 gertoe 2021-06-16 08:36:14 UTC
(In reply to gertoe from comment #5)
> The issue seems to be related to a bug in gcc itself and cannot be fixed by
> simply bumping opencv to 4.5.2 only.
> 
> Furthermore, please keep in mind that gcc 10.3 is currently not officially
> supported by the NVIDIA CUDA toolkit.
> 
> According to [1]https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102, the gcc
> bug will be fixed in gcc-10.4, 11.2 and 12.0, respectively. However, the
> patch can still be applied to gcc-10.3 and can be found at [1] as well.
> 
> I was able to merge opencv-4.5.2 with the patched gcc-10.3.0 and
> nvidia-cuda-toolkit-11.1.1-r2 and 11.3.0-r1. Still, lto has to be disabled
> due to some incompatibilities I am unable to determine right now.
> 
> With gcc-10.3.0, I was, notwithstanding this, not able to compile
> opencv-4.5.1 due to some incompatibilities with dev-cpp/tbb, according to
> the build log.
> 
> At the moment, rebuilding gcc-10.3 with the applied patch seems to be the
> only viable solution to merge opencv-4.5.2[cuda,-lto] without downgrading to
> gcc-10.2.

I have isolated the error regarding dev-cpp/tbb: Due to a local installation of Intel's oneAPI environment, the tbb library from the Intel oneAPI was considered in the OpenCV build process. Enforcing a build against the Gentoo-provided dev-cpp/tbb, opencv could be built with either available >=nvidia-cuda-toolkit-11.1.1-r2 and the patpatched gcc-10.3.
Comment 7 Miroslav Šulc gentoo-dev 2021-08-12 17:10:13 UTC
media-libs/opencv-4.5.2-r1[cuda] compiled fine for me today on two machines.

sys-devel/gcc-11.2.0
dev-util/nvidia-cuda-toolkit-11.4.1
Comment 8 Sven Eden 2021-12-04 10:41:20 UTC
(In reply to Miroslav Šulc from comment #7)
> media-libs/opencv-4.5.2-r1[cuda] compiled fine for me today on two machines.
> 
> sys-devel/gcc-11.2.0
> dev-util/nvidia-cuda-toolkit-11.4.1

media-libs/opencv-4.5.4[cuda] fails again.

sys-devel/gcc-11.2.0_11.2.1_p20211127
dev-util/nvidia-cuda-toolkit-11.5.1

Now with:

--------
CMake Error at cuda_compile_1_generated_gpu_mat.cu.o.Gentoo.cmake:282 (message):
  Error generating file
  (...)/work/opencv-4.5.4_build-abi_x86_64.amd64/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o
--------
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-04 21:46:34 UTC
(In reply to Sven Eden from comment #8)
> (In reply to Miroslav Šulc from comment #7)
> > media-libs/opencv-4.5.2-r1[cuda] compiled fine for me today on two machines.
> > 
> > sys-devel/gcc-11.2.0
> > dev-util/nvidia-cuda-toolkit-11.4.1
> 
> media-libs/opencv-4.5.4[cuda] fails again.

Please always include the full build.log (and emerge --info) given it works for the reporter. That error is about as generic as it gets.
Comment 10 Chris Faulkner 2021-12-08 13:37:32 UTC
I have the same issue with version 4.5.4
https://pastebin.com/E3AJaYGp

emerge -av opencv:
[ebuild  N     ] media-libs/opencv-4.5.4:0/4.5.4::gentoo  USE="contrib contribdnn cuda eigen features2d ffmpeg jpeg opencl opengl openmp png python qt5 tiff -contribcvv -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -debug -dnnsamples -download -examples -gdal -gflags -glog -gphoto2 -gstreamer -gtk3 -ieee1394 -java -jpeg2k -lapack -lto -opencvapps -openexr -tesseract -testprograms -threads -v4l -vaapi -vtk -webp -xine" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx avx2 f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
Comment 11 Bui Xuan Dien 2022-05-07 06:38:33 UTC
It's been more than 3 months I still haven't been able to install opencv related packages any way. Is there a way to build it?

emerge --info =media-libs/opencv-4.5.5-r1::gentoo

/usr/lib/python3.8/site-packages/portage/package/ebuild/_config/KeywordsManager.py:86: UserWarning: /etc/portage/package.keywords is deprecated, use /etc/portage/package.accept_keywords instead
  warnings.warn(
--- Invalid atom in /etc/portage/package.mask/pulseaudio: media-sound/pulseaudio-15.0-r2
Portage 3.0.30 (python 3.8.13-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.1, glibc-2.35-r2, 5.17.4-gentoo-r1-mykernel-nvidia x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.17.4-gentoo-r1-mykernel-nvidia-x86_64-AMD_Ryzen_5_2600_Six-Core_Processor-with-glibc2.34
KiB Mem:    32868244 total,  13964548 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sat, 07 May 2022 04:45:01 +0000
Head commit of repository gentoo: 0f1cdc5752d176a5c211fe15e5d4b2c396e386ee
Timestamp of repository steam-overlay: Sun, 01 May 2022 07:51:31 +0000
Head commit of repository steam-overlay: f5b3f03c3aadc51ce20e8ca16c3e104d5fcd8194

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r1::gentoo
dev-lang/python:           3.7.13::gentoo, 3.8.13::gentoo, 3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust:             1.60.0::gentoo
dev-util/cmake:            3.23.1::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.4-r1::gentoo
sys-devel/autoconf:        2.13-r1::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:           13.0.1::gentoo, 14.0.1-r1::gentoo
sys-devel/gcc:             8.5.0-r1::gentoo, 11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.17::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r2::gentoo
Repositories:

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

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

xdien
    location: /var/db/repos/xdien
    masters: gentoo

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10

src_prepare-overlay
    location: /var/lib/layman/src_prepare-overlay
    sync-type: laymansync
    sync-uri: https://gitlab.com/src_prepare/src_prepare-overlay.git
    masters: gentoo
    priority: 50

vowstar
    location: /var/lib/layman/vowstar
    sync-type: laymansync
    sync-uri: https://github.com/vowstar/vowstar-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config /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-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=znver1"
DISTDIR="/mnt/tmp_build/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="-O2 -pipe -march=znver1"
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="-O2 -pipe -march=znver1"
GENTOO_MIRRORS="http://download.nus.edu.sg/mirror/gentoo/ http://ftp.riken.jp/Linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/mnt/tmp_build/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="/mnt/tmp_build/portage"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion bluetooth branding bzip2 cairo cdda cdr cli colord crypt cuda cups dbus dri dts dvd dvdr eds egl encode evo exif flac fortran gbm gdbm gif gles gles2 gles3 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gui ibus iconv icu idm introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc mad mmx mng mp3 mp4 mpeg mpi multilib nautilus ncurses networkmanager nls nptl nvidia ogg opencl opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio python qml qt5 readline screencast sdl seccomp sna spell split-usr sse sse2 ssl startup-notification svg sysprof systemd tiff tracker truetype udev udisks unicode upower urandom usb v4l vaapi vdpau vorbis vulkan wayland wayland-compositor wxwidgets x264 xattr xcb xcomposite xinerama xml xorg xv xvid xvmc xwayland zlib" ABI_X86="32 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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a 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 pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="zh-CN en vi zh_HK zh_CN ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" 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_8" PYTHON_TARGETS="python3_9 python3_8" RUBY_TARGETS="ruby27 ruby31 ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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, 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
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-07 06:41:17 UTC
Using GCC 11.3.0 with latest dev-util/nvidia-cuda-toolkit should work AFAIK. Or disable USE=cuda on opencl for now.
Comment 13 Bui Xuan Dien 2022-05-07 06:42:58 UTC
(In reply to Bui Xuan Dien from comment #11)
> It's been more than 3 months I still haven't been able to install opencv
> related packages any way. Is there a way to build it?
> 
> emerge --info =media-libs/opencv-4.5.5-r1::gentoo
> 
> /usr/lib/python3.8/site-packages/portage/package/ebuild/_config/
> KeywordsManager.py:86: UserWarning: /etc/portage/package.keywords is
> deprecated, use /etc/portage/package.accept_keywords instead
>   warnings.warn(
> --- Invalid atom in /etc/portage/package.mask/pulseaudio:
> media-sound/pulseaudio-15.0-r2
> Portage 3.0.30 (python 3.8.13-final-0,
> default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.1, glibc-2.35-r2,
> 5.17.4-gentoo-r1-mykernel-nvidia x86_64)
> =================================================================
>                          System Settings
> =================================================================
> System uname:
> Linux-5.17.4-gentoo-r1-mykernel-nvidia-x86_64-AMD_Ryzen_5_2600_Six-
> Core_Processor-with-glibc2.34
> KiB Mem:    32868244 total,  13964548 free
> KiB Swap:    2097148 total,   2097148 free
> Timestamp of repository gentoo: Sat, 07 May 2022 04:45:01 +0000
> Head commit of repository gentoo: 0f1cdc5752d176a5c211fe15e5d4b2c396e386ee
> Timestamp of repository steam-overlay: Sun, 01 May 2022 07:51:31 +0000
> Head commit of repository steam-overlay:
> f5b3f03c3aadc51ce20e8ca16c3e104d5fcd8194
> 
> sh bash 5.1_p16
> ld GNU ld (Gentoo 2.38 p4) 2.38
> app-misc/pax-utils:        1.3.3::gentoo
> app-shells/bash:           5.1_p16::gentoo
> dev-java/java-config:      2.3.1::gentoo
> dev-lang/perl:             5.34.1-r1::gentoo
> dev-lang/python:           3.7.13::gentoo, 3.8.13::gentoo, 3.9.12::gentoo,
> 3.10.4::gentoo
> dev-lang/rust:             1.60.0::gentoo
> dev-util/cmake:            3.23.1::gentoo
> dev-util/meson:            0.61.4-r2::gentoo
> sys-apps/baselayout:       2.8::gentoo
> sys-apps/sandbox:          2.29::gentoo
> sys-apps/systemd:          250.4-r1::gentoo
> sys-devel/autoconf:        2.13-r1::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:           13.0.1::gentoo, 14.0.1-r1::gentoo
> sys-devel/gcc:             8.5.0-r1::gentoo, 11.2.1_p20220115::gentoo
> sys-devel/gcc-config:      2.5-r1::gentoo
> sys-devel/libtool:         2.4.7::gentoo
> sys-devel/llvm:            13.0.1::gentoo, 14.0.1::gentoo
> sys-devel/make:            4.3::gentoo
> sys-kernel/linux-headers:  5.17::gentoo (virtual/os-headers)
> sys-libs/glibc:            2.35-r2::gentoo
> Repositories:
> 
> gentoo
>     location: /var/db/repos/gentoo
>     sync-type: rsync
>     sync-uri: rsync://rsync.jp.gentoo.org/gentoo-portage/
>     priority: -1000
>     sync-rsync-verify-jobs: 1
>     sync-rsync-extra-opts: 
>     sync-rsync-verify-metamanifest: yes
>     sync-rsync-verify-max-age: 24
> 
> steam-overlay
>     location: /var/db/repos/steam-overlay
>     sync-type: git
>     sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
>     masters: gentoo
> 
> xdien
>     location: /var/db/repos/xdien
>     masters: gentoo
> 
> crossdev
>     location: /var/db/repos/portage-crossdev
>     masters: gentoo
>     priority: 10
> 
> src_prepare-overlay
>     location: /var/lib/layman/src_prepare-overlay
>     sync-type: laymansync
>     sync-uri: https://gitlab.com/src_prepare/src_prepare-overlay.git
>     masters: gentoo
>     priority: 50
> 
> vowstar
>     location: /var/lib/layman/vowstar
>     sync-type: laymansync
>     sync-uri: https://github.com/vowstar/vowstar-overlay.git
>     masters: gentoo
>     priority: 50
> 
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="*"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -pipe -march=znver1"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config
> /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-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/
> /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/
> /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
> /etc/terminfo"
> CXXFLAGS="-O2 -pipe -march=znver1"
> DISTDIR="/mnt/tmp_build/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="-O2 -pipe -march=znver1"
> 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="-O2 -pipe -march=znver1"
> GENTOO_MIRRORS="http://download.nus.edu.sg/mirror/gentoo/
> http://ftp.riken.jp/Linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
> LANG="en_US.utf8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS="-j12"
> PKGDIR="/mnt/tmp_build/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="/mnt/tmp_build/portage"
> SHELL="/bin/bash"
> USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion bluetooth
> branding bzip2 cairo cdda cdr cli colord crypt cuda cups dbus dri dts dvd
> dvdr eds egl encode evo exif flac fortran gbm gdbm gif gles gles2 gles3
> gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gui ibus
> iconv icu idm introspection ipv6 jpeg lcms libglvnd libnotify libsecret
> libtirpc mad mmx mng mp3 mp4 mpeg mpi multilib nautilus ncurses
> networkmanager nls nptl nvidia ogg opencl opengl openmp pam pango pcre pdf
> pipewire plasma png policykit ppds pulseaudio python qml qt5 readline
> screencast sdl seccomp sna spell split-usr sse sse2 ssl startup-notification
> svg sysprof systemd tiff tracker truetype udev udisks unicode upower urandom
> usb v4l vaapi vdpau vorbis vulkan wayland wayland-compositor wxwidgets x264
> xattr xcb xcomposite xinerama xml xorg xv xvid xvmc xwayland zlib"
> ABI_X86="32 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="mmx mmxext sse
> sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2
> sse4a 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 pc"
> INPUT_DEVICES="evdev" KERNEL="linux" L10N="zh-CN en vi zh_HK zh_CN ru"
> LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
> ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
> LLVM_TARGETS="NVPTX" 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_8"
> PYTHON_TARGETS="python3_9 python3_8" RUBY_TARGETS="ruby27 ruby31 ruby30"
> USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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, 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

I'm sorry, I posted the wrong issue!