Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786198 - media-libs/opencolorio-1.1.1 fails to build with gcc11 (ImageDesc.cpp:60:51: error: this pointer is null [-Werror=nonnull])
Summary: media-libs/opencolorio-1.1.1 fails to build with gcc11 (ImageDesc.cpp:60:51: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/AcademySoftwareFou...
Whiteboard:
Keywords:
Depends on:
Blocks: werror gcc-11
  Show dependency tree
 
Reported: 2021-04-28 05:02 UTC by Austin Kilgore
Modified: 2021-04-28 07:21 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,37.80 KB, text/plain)
2021-04-28 05:02 UTC, Austin Kilgore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Austin Kilgore 2021-04-28 05:02:44 UTC
Created attachment 702750 [details]
build.log

Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.1.0, glibc-2.33, 5.12.0-gentoo x86_64)
=================================================================
System uname: Linux-5.12.0-gentoo-x86_64-AMD_Ryzen_7_3700U_with_Radeon_Vega_Mobile_Gfx-with-glibc2.2.5
KiB Mem:    34889536 total,  25227584 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 27 Apr 2021 22:15:01 +0000
Head commit of repository gentoo: 46c2e984a1a27d5660246faf429d00a6e0b0d53f
sh bash 5.1_p4
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
app-shells/bash:          5.1_p4::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p8::gentoo, 3.8.9::gentoo, 3.9.4::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.20.1::gentoo
sys-apps/baselayout:      2.7-r2::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.36.1-r1::gentoo
sys-devel/gcc:            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: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --with-bdeps y --complete-graph 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 -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy 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 -O3 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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="10bit 12bit 16k_voice 24-bit-color 24bpp 256-color 7z 7za 7zip 8bit X a52 aac aacplus aacs aalib acl acpi activities adns airdrop-ng airgraph-ng alsa alsa-plugin amd64 aom asm async atm bash-completion bdplus berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdr cjk cli colord crypt css cups curl cycles dav1d dbus declarative dri dri3 drm dts dvb dvd dvdr egl elogind encode exif fbcon ffmpeg flac fontconfig fortran frei0r ftp fuse gdbm gif gimp git gles2 gold gpm gtk gui gzip iconv icu imlib ipv6 jit jpeg jpeg2k kde kipi kwallet lame lcms libglvnd libnotify libsamplerate libtirpc lm-sensors lto lz4 lzma lzo lzo2 mad matroska minizip mng mono mp3 mp4 mpeg mpv mtp ncurses networkmanager nls nptl ogg openal opengl openimageio openmp otr pam pango pcre pcre16 pda pdf pgo phonon plasma plotutils png policykit ppds pulseaudio qml qt5 rar raw readline scanner scripttools sdl seccomp semantic-desktop slang smp sound speex spell split-usr ssl startup-notification svc svg svg2 szip taglib tcpd text threads tiff truetype udev udisks unicode upower usb v4l v4l2 v4lutils vaapi vdpau vim-syntax vkd3d vlc vorbis vulkan wavpack wayland webp widgets wifi wxwidgets x264 x265 xattr xcb xinerama xml xscreensaver xv xvid zip zlib zsh-completion zstd" ABI_X86="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="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" 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" INPUT_DEVICES="libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" 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_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-28 06:51:17 UTC
This is a blanket -Werror:

FAILED: src/core/CMakeFiles/OpenColorIO.dir/ImageDesc.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DOpenColorIO_EXPORTS -DUSE_SSE -I/var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/export -Iexport -I/var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/ext/oiio/src/include -Iext/dist/include  -march=native -O3 -pipe -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 -msse2 -fPIC -DTIXML_USE_STL   -fPIC -fvisibility=hidden -Werror -MD -MT src/core/CMakeFiles/OpenColorIO.dir/ImageDesc.cpp.o -MF src/core/CMakeFiles/OpenColorIO.dir/ImageDesc.cpp.o.d -o src/core/CMakeFiles/OpenColorIO.dir/ImageDesc.cpp.o -c /var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/src/core/ImageDesc.cpp
/var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/src/core/ImageDesc.cpp: In function ‘std::ostream& OpenColorIO::v1::operator<<(std::ostream&, const OpenColorIO::v1::ImageDesc&)’:
/var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:60:51: error: ‘this’ pointer is null [-Werror=nonnull]
   60 |             os << "width=" << packedImg->getWidth() << ", ";
      |                                                   ^
/var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:274:10: note: in a call to non-static member function ‘long int OpenColorIO::v1::PackedImageDesc::getWidth() const’
  274 |     long PackedImageDesc::getWidth() const
      |          ^~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:61:53: error: ‘this’ pointer is null [-Werror=nonnull]
   61 |             os << "height=" << packedImg->getHeight() << ", ";
      |                                                     ^
/var/tmp/portage/media-libs/opencolorio-1.1.1/work/OpenColorIO-1.1.1/src/core/ImageDesc.cpp:279:10: note: in a call to non-static member function ‘long int OpenColorIO::v1::PackedImageDesc::getHeight() const’
  279 |     long PackedImageDesc::getHeight() const
      |          ^~~~~~~~~~~~~~~
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-28 07:04:08 UTC
I think warning avoided upstream with https://github.com/AcademySoftwareFoundation/OpenColorIO/pull/973/commits/beba3bdfee4fb0780acf55a4b3a3682609249dce
Comment 3 Larry the Git Cow gentoo-dev 2021-04-28 07:21:41 UTC
The bug has been closed via the following commit(s):

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

commit 7e726d850502018b6760da78dbd4a419603016b8
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-04-28 07:21:14 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-04-28 07:21:38 +0000

    media-libs/opencolorio: drop -Werror
    
    Reported-by: Austin Kilgore
    Closes: https://bugs.gentoo.org/786198
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../opencolorio/files/opencolorio-1.1.1-no-werror.patch      | 12 ++++++++++++
 media-libs/opencolorio/opencolorio-1.1.1.ebuild              |  1 +
 2 files changed, 13 insertions(+)