Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error installing opencv
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rojarczewski
n00b
n00b


Joined: 02 Jan 2022
Posts: 2
Location: Brasil - RS

PostPosted: Sun Jan 02, 2022 3:11 pm    Post subject: error installing opencv Reply with quote

Hi, I'm new in the gentoo and I'm trying to install opencv but I get this error and I don't know how to fix it.

Code:

rm: cannot remove 'modules/python3': No such file or directory
 * ERROR: media-libs/opencv-4.5.2-r5::gentoo failed (install phase):
 *   rm failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_install
 *   environment, line 5597:  Called cmake-multilib_src_install
 *   environment, line 1353:  Called multilib-minimal_src_install
 *   environment, line 4386:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 4619:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 4273:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 4271:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  726:  Called multilib-minimal_abi_src_install
 *   environment, line 4376:  Called multilib_src_install
 *   environment, line 4865:  Called python_foreach_impl 'python_module_compile'
 *   environment, line 5180:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'python_module_compile'
 *   environment, line 4273:  Called _multibuild_run '_python_multibuild_wrapper' 'python_module_compile'
 *   environment, line 4271:  Called _python_multibuild_wrapper 'python_module_compile'
 *   environment, line  935:  Called python_module_compile
 *   environment, line 5329:  Called die
 * The specific snippet of code:
 *       rm -r modules/python3 || die "rm failed";


My emerge --info =media-libs/opencv-4.5.2-r5::gentoo
Code:

Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1/hardened, gcc-11.2.0, glibc-2.33-r7, 5.14.15-zen1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.14.15-zen1-x86_64-Intel-R-_Core-TM-_i5-6200U_CPU_@_2.30GHz-with-glibc2.33
KiB Mem:     8006548 total,   2317768 free
KiB Swap:   12582908 total,  12582908 free
Timestamp of repository gentoo: Wed, 10 Nov 2021 04:30:01 +0000
Head commit of repository gentoo: 2f233fc432ae93af6065bfa7913f5f3f471cbf9e
Timestamp of repository guru: Tue, 09 Nov 2021 10:53:37 +0000
Head commit of repository guru: 17434d6014338241cf039912196b0df18ad842ad

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          3.9.8::gentoo, 3.10.0_p1::gentoo, 3.11.0_alpha2::gentoo
dev-lang/rust-bin:        1.56.1::gentoo
dev-util/cmake:           3.21.4::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/sandbox:         2.29::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.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe"
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=skylake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4"
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_RUN
TIME_DIR"
FCFLAGS="-march=skylake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-s
trict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orp
hans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ http://gentoo.c3sl.ufpr.br/ rsync://gentoo.c3sl.ufpr.br/gentoo/ rsync://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ https://mirror
.leaseweb.com/gentoo/ ftp://mirrors.rit.edu/gentoo/ https://data.gpo.zugaina.org/"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt_BR"
MAKEOPTS="-j3 -l3"
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 --exclu
de=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 bash-completion bluetooth bluez btpclient bzip2 crypt dbus dri glut gui hardened harfbuzz iconv ipv6 jpeg jpeg2k libglvnd libnotify libtirpc libxml2 lm-sensors-truetype loc
al-playback lua lz4 man midi modules mp3 multilib ncurses networkmanager nls nptl ntfsdecrypt ntfsporgs ogg openmp openssl opus pam pax-kernel pcre pgm pie pkg-config png policykit ppm pulseaudi
o python readline seccomp split-usr ssl ssp suid systemd systray theora threads tools udev unicode user-session vorbis vpx wireless x264 xattr xcomposite xml xtpax xvid zlib" ABI_X86="64 32" ADA
_TARGET="gnat_2019" 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_gr
oupfile 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_c
ache 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 r
rdtool 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 g
armin 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="li
binput keyboard synaptics touchpad mice" KERNEL="linux" L10N="pt-BR" 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="postgres12 postgres13" PYTHON_SINGLE_TARGE
T="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" 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

Thank you very much in advance.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Sun Jan 02, 2022 3:17 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Portage & Programming.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Sun Jan 02, 2022 3:18 pm    Post subject: Reply with quote

You should post full build.log with wgetpaste.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
rojarczewski
n00b
n00b


Joined: 02 Jan 2022
Posts: 2
Location: Brasil - RS

PostPosted: Sun Jan 02, 2022 10:53 pm    Post subject: Reply with quote

Follow my build.log

http://sprunge.us/0PQ1NB
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Mon Jan 03, 2022 3:40 am    Post subject: Reply with quote

rojarczewski wrote:
Follow my build.log

http://sprunge.us/0PQ1NB


build.log wrote:

-- Up-to-date: /var/tmp/portage/media-libs/opencv-4.5.2-r5/image/usr/share/opencv4/lbpcascades/lbpcascade_silverware.xml
rm: cannot remove 'modules/python3': No such file or directory
* ERROR: media-libs/opencv-4.5.2-r5::gentoo failed (install phase):
* rm failed
*
* Call stack:
* ebuild.sh, line 127: Called src_install
* environment, line 5597: Called cmake-multilib_src_install
* environment, line 1353: Called multilib-minimal_src_install
* environment, line 4386: Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
* environment, line 4619: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
* environment, line 4273: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
* environment, line 4271: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
* environment, line 726: Called multilib-minimal_abi_src_install
* environment, line 4376: Called multilib_src_install
* environment, line 4865: Called python_foreach_impl 'python_module_compile'
* environment, line 5180: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'python_module_compile'
* environment, line 4273: Called _multibuild_run '_python_multibuild_wrapper' 'python_module_compile'
* environment, line 4271: Called _python_multibuild_wrapper 'python_module_compile'
* environment, line 935: Called python_module_compile
* environment, line 5329: Called die
* The specific snippet of code:
* rm -r modules/python3 || die "rm failed";


Thanks, this really deserves a bug.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Mon Jan 03, 2022 8:03 am    Post subject: Reply with quote

As sam_ say open a new bug report, the problem is the ebuild tries to remove a directory that does not exist.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4554
Location: Germany

PostPosted: Mon Jan 03, 2022 11:53 am    Post subject: Reply with quote

emerge --info wrote:
Timestamp of repository gentoo: Wed, 10 Nov 2021 04:30:01 +0000

I think a fresh "emerge --sync" would be fine.
Back to top
View user's profile Send private message
haptie
n00b
n00b


Joined: 17 Sep 2006
Posts: 18

PostPosted: Sat Nov 26, 2022 11:05 pm    Post subject: Reply with quote

Hi everyone, same error here, did you solved it? THanks
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sun Nov 27, 2022 1:52 am    Post subject: Reply with quote

A search on bugs.gentoo.org for opencv leads me to media-libs/opencv-4.6.0-r2 - rm: cannot remove modules/python3: No such file or directory, which has exactly the error message reported here. It was resolved as a duplicate of sci-libs/scikit-learn-1.1.2: build failure with dev-python/setuptools-65.0.0. That suggests that a newer setuptools would resolve the issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum