Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788286 - media-libs/openexr-3.0.1: fails with multilib on
Summary: media-libs/openexr-3.0.1: fails with multilib on
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernd
URL:
Whiteboard:
Keywords: PMASKED, PullRequest
Depends on:
Blocks:
 
Reported: 2021-05-05 06:44 UTC by Joonas Niilola
Modified: 2021-07-21 21:57 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2021-05-05 06:44:44 UTC
# emerge -1av media-libs/openexr

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/imath-3.0.1:0/27::gentoo  USE="-doc -large-stack -python -static-libs -test" PYTHON_SINGLE_TARGET="python3_8 -python3_9" 516 KiB
[ebuild  N     ] media-libs/openexr-3.0.1:0/27::gentoo  USE="-doc -examples -large-stack -static-libs -test -threads -utils" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx" 24473 KiB

Total: 2 packages (2 new), Size of downloads: 24988 KiB

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) dev-libs/imath-3.0.1::gentoo
>>> Installing (1 of 2) dev-libs/imath-3.0.1::gentoo
>>> Emerging (2 of 2) media-libs/openexr-3.0.1::gentoo
>>> Failed to emerge media-libs/openexr-3.0.1, Log file:
>>>  '/var/tmp/portage/media-libs/openexr-3.0.1/temp/build.log'
>>> Jobs: 1 of 2 complete, 1 failed                 Load avg: 0.22, 0.05, 0.02
 * Package:    media-libs/openexr-3.0.1
 * Repository: gentoo
 * Maintainer: waebbl-gentoo@posteo.net proxy-maint@gentoo.org,media-video@gentoo.org
 * USE:        abi_x86_32 abi_x86_64 amd64 cpu_flags_x86_avx elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox

>>> Unpacking source...
>>> Unpacking openexr-3.0.1.tar.gz to /var/tmp/portage/media-libs/openexr-3.0.1/work
>>> Source unpacked in /var/tmp/portage/media-libs/openexr-3.0.1/work
>>> Preparing source in /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1 ...
 * Working in BUILD_DIR: "/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build"
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
 * Working in BUILD_DIR: "/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86"
cmake -C /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=yes -DBUILD_TESTING=no -DOPENEXR_BUILD_UTILS=no -DOPENEXR_ENABLE_LARGE_STACK=no -DOPENEXR_ENABLE_THREADING=no -DOPENEXR_INSTALL_EXAMPLES=no -DOPENEXR_INSTALL_PKG_CONFIG=ON -DOPENEXR_INSTALL_TOOLS=no -DOPENEXR_USE_CLANG_TIDY=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86/gentoo_toolchain.cmake  /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1
loading initial cache file /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86/gentoo_common_config.cmake
-- Configure OpenEXR Version: 3.0.1 Lib API: 27.0.0
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.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
-- Imath was not found, installing from https://github.com/AcademySoftwareFoundation/Imath.git (v3.0.1)
[1/9] Creating directories for 'imath-populate'
[1/9] Performing download step (git clone) for 'imath-populate'
Cloning into 'imath-src'...
fatal: unable to access 'https://github.com/AcademySoftwareFoundation/Imath.git/': Could not resolve host: github.com
Cloning into 'imath-src'...
fatal: unable to access 'https://github.com/AcademySoftwareFoundation/Imath.git/': Could not resolve host: github.com
Cloning into 'imath-src'...
fatal: unable to access 'https://github.com/AcademySoftwareFoundation/Imath.git/': Could not resolve host: github.com
-- Had to git clone more than once:
          3 times.
CMake Error at imath-subbuild/imath-populate-prefix/tmp/imath-populate-gitclone.cmake:31 (message):
  Failed to clone repository:
  'https://github.com/AcademySoftwareFoundation/Imath.git'


FAILED: imath-populate-prefix/src/imath-populate-stamp/imath-populate-download 
cd /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86/_deps && /usr/bin/cmake -P /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86/_deps/imath-subbuild/imath-populate-prefix/tmp/imath-populate-gitclone.cmake && /usr/bin/cmake -E touch /var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86/_deps/imath-subbuild/imath-populate-prefix/src/imath-populate-stamp/imath-populate-download
ninja: build stopped: subcommand failed.

CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1012 (message):
  Build step for imath failed: 1
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FetchContent.cmake:1141:EVAL:2 (__FetchContent_directPopulate)
  /usr/share/cmake/Modules/FetchContent.cmake:1141 (cmake_language)
  cmake/OpenEXRSetup.cmake:276 (FetchContent_Populate)
  CMakeLists.txt:33 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86/CMakeFiles/CMakeOutput.log".
 * ERROR: media-libs/openexr-3.0.1::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2543:  Called cmake-multilib_src_configure
 *   environment, line  664:  Called multilib-minimal_src_configure
 *   environment, line 1886:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2139:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1816:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1814:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  442:  Called multilib-minimal_abi_src_configure
 *   environment, line 1880:  Called multilib_src_configure
 *   environment, line 2356:  Called cmake_src_configure
 *   environment, line  919:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=media-libs/openexr-3.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/openexr-3.0.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/openexr-3.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/openexr-3.0.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1'


 * Messages for package media-libs/openexr-3.0.1:

 * ERROR: media-libs/openexr-3.0.1::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 2543:  Called cmake-multilib_src_configure
 *   environment, line  664:  Called multilib-minimal_src_configure
 *   environment, line 1886:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2139:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1816:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1814:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  442:  Called multilib-minimal_abi_src_configure
 *   environment, line 1880:  Called multilib_src_configure
 *   environment, line 2356:  Called cmake_src_configure
 *   environment, line  919:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=media-libs/openexr-3.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/openexr-3.0.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/openexr-3.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/openexr-3.0.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1_build-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-libs/openexr-3.0.1/work/openexr-3.0.1'


# emerge --info media-libs/openexr
Portage 3.0.18 (python 3.9.5-final-0, default/linux/amd64/17.1, gcc-11.1.0, glibc-2.33, 5.11.0-pf8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.0-pf8-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.33
KiB Mem:    32863252 total,  32717524 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 05 May 2021 01:50:11 +0000
Head commit of repository gentoo: cde9f4d4b551177f65e6ab7a679b8e2ba0070f73

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.7.10_p3::gentoo, 3.8.10::gentoo, 3.9.5::gentoo
dev-lang/rust-bin:        1.51.0::gentoo
dev-util/cmake:           3.20.2::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo
sys-devel/gcc:            10.3.0::gentoo, 11.1.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.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --usepkg --binpkg-respect-use=n --autounmask=y --autounmask-write --autounmask-continue --autounmask-use=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 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS=" en en_US en-US fi sv "
MAKEOPTS="-j16 -l10"
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"
USE="X acl amd64 berkdb bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nptl openmp openrc pam pcre readline seccomp split-usr ssl tcpd udev unicode xattr zlib" ABI_X86="64 32" 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="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 sha sse sse2 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" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="en en_US en-US fi sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" 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="pypy3 python3_7 python3_8 python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="pixma" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Bernd 2021-05-12 15:51:01 UTC
I'm not having success with adding multilib support to dev-libs/imath. This leaves me with removing multilib support from this package.

There seems to be just one consumer of the package which itself supports multilib (media-libs/opencv), all other consumers are not multilib aware, so maybe this move can be done safely.
Comment 2 Joonas Niilola gentoo-dev 2021-05-24 06:42:02 UTC
Hey, 

what are the problems with it, and how far you've gotten?
Comment 3 Larry the Git Cow gentoo-dev 2021-07-21 21:57:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c92b3342d9a7cd0d2c90f81244a02f23b249db46

commit c92b3342d9a7cd0d2c90f81244a02f23b249db46
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2021-05-21 23:12:34 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-07-21 21:57:28 +0000

    media-libs/openexr: bump to 3.0.5
    
    Improves slotting, so that openexr-2 and openexr-3
    can be installed in parallel.
    Drop multilib support. Only multilib-aware consumer was
    media-libs/opencv. Using multilib would require it on
    dev-libs/imath as well which is not possible.
    
    Closes: https://bugs.gentoo.org/788286
    Bug: https://bugs.gentoo.org/788310
    Bug: https://bugs.gentoo.org/801373
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 media-libs/openexr/Manifest                        |   1 +
 ...5-0001-changes-needed-for-proper-slotting.patch | 119 +++++++++++
 ...0002-add-version-to-binaries-for-slotting.patch | 229 +++++++++++++++++++++
 media-libs/openexr/openexr-3.0.5.ebuild            |  77 +++++++
 4 files changed, 426 insertions(+)