Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637438 - kde-frameworks/khtml-5.40.0 with >=media-libs/giflib-5.1.2 : /usr/include/gif_lib.h:248:51: error: declaration of ‘void* reallocarray(void*, size_t, size_t)’ has a different exception specifier
Summary: kde-frameworks/khtml-5.40.0 with >=media-libs/giflib-5.1.2 : /usr/include/gif...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://sourceforge.net/p/giflib/bugs...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-11-13 23:25 UTC by malcolm.mielle
Modified: 2019-02-14 04:39 UTC (History)
7 users (show)

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


Attachments
build log (build.tar.xz,20.12 KB, application/x-xz)
2017-11-14 10:25 UTC, malcolm.mielle
Details
emerge-info.txt (emerge-info.txt,16.85 KB, text/plain)
2018-02-24 14:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,223.76 KB, text/plain)
2018-02-24 14:33 UTC, Toralf Förster
Details
environment (environment,148.66 KB, text/plain)
2018-02-24 14:33 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.52 KB, application/x-bzip)
2018-02-24 14:33 UTC, Toralf Förster
Details
kde-frameworks:khtml-5.43.0:20180224-121944.log.bz2 (kde-frameworks:khtml-5.43.0:20180224-121944.log.bz2,19.18 KB, application/x-bzip)
2018-02-24 14:33 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.22 KB, application/x-bzip)
2018-02-24 14:33 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,53.66 KB, application/x-bzip)
2018-02-24 14:33 UTC, Toralf Förster
Details
Proposed patch for giflib 5.1.4 (giflib-5.1.4-reallocarray-export.patch,5.63 KB, patch)
2018-03-14 20:29 UTC, Sebastian Pipping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description malcolm.mielle 2017-11-13 23:25:43 UTC
Can't compile kde-frameworks/khtml-5.40.0 on the ~amd64 branch. I tried to run a emerge -avDuN @world and got this:


In file included from /var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0/src/imload/decoders/gifloader.cpp:44:0:
/usr/include/gif_lib.h:248:51: error: declaration of ‘void* reallocarray(void*, size_t, size_t)’ has a different exception specifier
 reallocarray(void *optr, size_t nmemb, size_t size);
                                                   ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/cstdlib:72:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/stl_algo.h:59,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/algorithm:62,
                 from /usr/include/qt5/QtCore/qglobal.h:109,
                 from /usr/include/qt5/QtCore/qatomic.h:41,
                 from /usr/include/qt5/QtCore/qrefcount.h:43,
                 from /usr/include/qt5/QtCore/qbytearray.h:44,
                 from /usr/include/qt5/QtCore/QByteArray:1,
                 from /var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0/src/imload/imageloaderprovider.h:28,
                 from /var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0/src/imload/decoders/gifloader.h:4,
                 from /var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0/src/imload/decoders/gifloader.cpp:27:
/usr/include/stdlib.h:443:14: error: from previous declaration ‘void* reallocarray(void*, size_t, size_t) throw ()’
 extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
              ^
make[2]: *** [src/CMakeFiles/KF5KHtml.dir/build.make:5210: src/CMakeFiles/KF5KHtml.dir/imload/decoders/gifloader.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0_build'
make[1]: *** [CMakeFiles/Makefile2:312: src/CMakeFiles/KF5KHtml.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0_build'
make: *** [Makefile:130: all] Error 2
 * ERROR: kde-frameworks/khtml-5.40.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=kde-frameworks/khtml-5.40.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-frameworks/khtml-5.40.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-frameworks/khtml-5.40.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-frameworks/khtml-5.40.0/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0_build'
 * S: '/var/tmp/portage/kde-frameworks/khtml-5.40.0/work/khtml-5.40.0'

>>> Failed to emerge kde-frameworks/khtml-5.40.0, Log file:


My emerge info can be found there https://pastebin.com/fU1L6Cdj
Comment 1 Mike Gilbert gentoo-dev 2017-11-14 01:57:14 UTC
Please provide emerge --info in a comment (not a pastebin) and attach a full build log.
Comment 2 malcolm.mielle 2017-11-14 10:25:16 UTC
Created attachment 504152 [details]
build log
Comment 3 malcolm.mielle 2017-11-14 10:25:45 UTC
No problem :)

$ emerge --info
Portage 2.3.13 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.26-r3, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-5200U_CPU_@_2.20GHz-with-gentoo-2.4.1
KiB Mem:     8035992 total,   6519696 free
KiB Swap:    8371196 total,   8371196 free
Timestamp of repository gentoo: Mon, 13 Nov 2017 16:00:01 +0000
Head commit of repository gentoo: f819dc520ce1bb9abcb7993c6c220d5d17bc2abc
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.9.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.6::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -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/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /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"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.modulix.net/gentoo/ ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ ftp://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirror.mdfnet.se/gentoo ftp://mirror.mdfnet.se/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/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 acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli client colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds egl emboss encode evo exif fam firefox flac fontconfig fortran gdbm gif glamor gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv icu introspection ipv6 jpeg jpeg2k kde lcms ldap libnotify libsecret mad minizip mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pcre16 pdf png policykit ppds pulseaudio python qt3support qt5 raw readline sdl seccomp session spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb user-session vorbis vtk wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Andreas Sturmlechner gentoo-dev 2017-11-14 22:30:44 UTC
Please show: $ equery l p giflib
Comment 5 Andreas Sturmlechner gentoo-dev 2017-11-14 22:31:17 UTC
Please show: $ equery l -p giflib
Comment 6 VELOCiTY 2017-11-15 11:33:55 UTC
Getting the exact same issue, hope this info helps:

$ emerge --info
Portage 2.3.14 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.26-r3, 4.11.2-gentoo x86_64)
=================================================================
System uname: Linux-4.11.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-2310_CPU_@_2.90GHz-with-gentoo-2.4.1
KiB Mem:     8081172 total,   2559196 free
KiB Swap:   10485756 total,  10430204 free
Timestamp of repository gentoo: Wed, 15 Nov 2017 00:00:01 +0000
Head commit of repository gentoo: 92d27700bf34c66de71c9f2e850e3d631cb38e83
Head commit of repository flatpak-overlay: 04d52dc8ec388f44f37981476b44ad7569304403

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.7::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

pg_overlay
    location: /var/lib/layman/pg_overlay
    masters: gentoo
    priority: -1001

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

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

4nykey
    location: /var/lib/layman/4nykey
    masters: gentoo
    priority: 50

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

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

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

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

custom-overlay
    location: /usr/local/portage/custom-overlay
    masters: gentoo
    priority: 50

flatpak-overlay
    location: /usr/local/portage/flatpak-overlay
    sync-type: git
    sync-uri: git://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

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

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

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts"
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.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --jobs 5 --load-average 4 --quiet --keep-going --buildpkg --getbinpkg --binpkg-respect-use=y --buildpkg-exclude 'virtual/* sys-kernel/*-sources'"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/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 acl acpi activities alsa amd64 berkdb branding bzip2 cairo cdda cdr clang cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i915 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


$ equery l -p giflib
 * Searching for giflib ...
[-P-] [  ] media-libs/giflib-4.1.6-r2:0
[-P-] [  ] media-libs/giflib-4.1.6-r3:0
[-P-] [  ] media-libs/giflib-4.2.3-r1:0
[-P-] [ -] media-libs/giflib-5.0.6:0/6
[-P-] [  ] media-libs/giflib-5.1.3:0/7
[IP-] [  ] media-libs/giflib-5.1.4:0/7
Comment 7 malcolm.mielle 2017-11-15 11:54:27 UTC
Here is the equery command:

# equery l -p giflib
 * Searching for giflib ...
[-P-] [  ] media-libs/giflib-4.1.6-r2:0
[-P-] [  ] media-libs/giflib-4.1.6-r3:0
[-P-] [  ] media-libs/giflib-4.2.3-r1:0
[-P-] [ -] media-libs/giflib-5.0.6:0/6
[-P-] [  ] media-libs/giflib-5.1.3:0/7
[IP-] [  ] media-libs/giflib-5.1.4:0/7
Comment 8 VELOCiTY 2017-11-15 14:21:43 UTC
This error does not occur when using gcc 6.4.0
Comment 9 Andreas Sturmlechner gentoo-dev 2017-11-15 18:07:57 UTC
Did you rebuild giflib after switching to GCC-5?
Comment 10 malcolm.mielle 2017-11-16 11:15:25 UTC
I don't know, I just ran "emerge --avDuN @world"
Comment 11 Andreas Sturmlechner gentoo-dev 2017-11-16 11:16:10 UTC
If that's what you did after switching to GCC-5, that is not enough.
Comment 12 malcolm.mielle 2017-11-16 11:19:08 UTC
Well I'm not even sure when I switched to a new version of gcc. Sorry I'm pretty new to all this. What else would I need to do ?
Comment 13 Andreas Sturmlechner gentoo-dev 2017-11-16 11:20:27 UTC
Read the instructions in the following news item:

https://www.gentoo.org/support/news-items/2015-10-22-gcc-5-new-c++11-abi.html
Comment 14 Samuel Panicucci 2017-11-16 16:57:05 UTC
Similar error happends to me upgrading khtml. But as suggested switching to gcc 6 compile work fine.
Comment 15 malcolm.mielle 2017-11-17 10:35:57 UTC
Following the instruyction here 
https://www.gentoo.org/support/news-items/2015-10-22-gcc-5-new-c++11-abi.html did not work:

In file included from /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload/decoders/gifloader.cpp:44:0:
/usr/include/gif_lib.h:248:51: error: declaration of ‘void* reallocarray(void*, size_t, size_t)’ has a different exception specifier
 reallocarray(void *optr, size_t nmemb, size_t size);
                                                   ^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/cstdlib:72:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/stl_algo.h:59,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/algorithm:62,
                 from /usr/include/qt5/QtCore/qglobal.h:109,
                 from /usr/include/qt5/QtCore/qatomic.h:41,
                 from /usr/include/qt5/QtCore/qrefcount.h:43,
                 from /usr/include/qt5/QtCore/qbytearray.h:44,
                 from /usr/include/qt5/QtCore/QByteArray:1,
                 from /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload/imageloaderprovider.h:28,
                 from /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload/decoders/gifloader.h:4,
                 from /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload/decoders/gifloader.cpp:27:
/usr/include/stdlib.h:443:14: error: from previous declaration ‘void* reallocarray(void*, size_t, size_t) throw ()’
 extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
              ^
[ 64%] Building CXX object src/CMakeFiles/KF5KHtml.dir/platform/graphics/AffineTransform.cpp.o
cd /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_SVG -DENABLE_SVG_FONTS -DENABLE_VIDEO -DKCOREADDONS_LIB -DKF5KHtml_EXPORTS -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_PRINTSUPPORT_LIB -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -DTRANSLATION_DOMAIN=\"khtml5\" -DWTF_PLATFORM_QT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src/KF5KHtml_autogen/include -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/misc -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/dom -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/xml -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/html -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/rendering -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/ecma -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload/decoders -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/java -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/svg -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/svg/graphics -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform/graphics -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform/text -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/compat -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/css -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/xpath -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src/java -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src/css -isystem /usr/include/phonon4qt5 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KParts -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KXmlGui -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KTextWidgets -isystem /usr/include/KF5/SonnetUi -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/KF5/KArchive -isystem /usr/include/KF5/SonnetCore -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KWallet -isystem /usr/include/KF5/KIconThemes -isystem /usr/include/KF5/KNotifications -isystem /usr/include/KF5/KBookmarks -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/qt5/QtX11Extras   -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe -std=c++0x -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -pedantic -fexceptions -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -std=gnu++11 -o CMakeFiles/KF5KHtml.dir/platform/graphics/AffineTransform.cpp.o -c /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform/graphics/AffineTransform.cpp
[ 65%] Building CXX object src/CMakeFiles/KF5KHtml.dir/platform/graphics/FloatPoint.cpp.o
cd /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_SVG -DENABLE_SVG_FONTS -DENABLE_VIDEO -DKCOREADDONS_LIB -DKF5KHtml_EXPORTS -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_PRINTSUPPORT_LIB -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -DTRANSLATION_DOMAIN=\"khtml5\" -DWTF_PLATFORM_QT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src/KF5KHtml_autogen/include -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/misc -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/dom -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/xml -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/html -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/rendering -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/ecma -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/imload/decoders -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/java -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/svg -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/svg/graphics -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform/graphics -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform/text -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/compat -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/css -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/xpath -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src/java -I/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build/src/css -isystem /usr/include/phonon4qt5 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5 -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KParts -isystem /usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KJobWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/KF5/KCompletion -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KXmlGui -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KTextWidgets -isystem /usr/include/KF5/SonnetUi -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/KF5/KArchive -isystem /usr/include/KF5/SonnetCore -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/KF5/KWallet -isystem /usr/include/KF5/KIconThemes -isystem /usr/include/KF5/KNotifications -isystem /usr/include/KF5/KBookmarks -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/qt5/QtX11Extras   -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe -std=c++0x -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -pedantic -fexceptions -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -std=gnu++11 -o CMakeFiles/KF5KHtml.dir/platform/graphics/FloatPoint.cpp.o -c /var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0/src/platform/graphics/FloatPoint.cpp
make[2]: *** [src/CMakeFiles/KF5KHtml.dir/build.make:5210: src/CMakeFiles/KF5KHtml.dir/imload/decoders/gifloader.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build'
make[1]: *** [CMakeFiles/Makefile2:312: src/CMakeFiles/KF5KHtml.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build'
make: *** [Makefile:130: all] Error 2
 * ERROR: kde-frameworks/khtml-5.39.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=kde-frameworks/khtml-5.39.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-frameworks/khtml-5.39.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-frameworks/khtml-5.39.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-frameworks/khtml-5.39.0/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0_build'
 * S: '/var/tmp/portage/kde-frameworks/khtml-5.39.0/work/khtml-5.39.0'

>>> Failed to emerge kde-frameworks/khtml-5.39.0, Log file:
Comment 16 Michael Palimaka (kensington) gentoo-dev 2017-11-19 06:59:47 UTC
I wonder if this is related to newer glibc.
Comment 17 Jochen Schlick 2017-12-11 21:30:40 UTC
- have now exactly the same issue with khtml-5.41.0, gcc-5.4.0-r3, glibc-2.26-r3
- had no problems to build khtml-5.40.0 when it came out, but this was before the glibc update
Comment 18 Ben Kohler gentoo-dev 2017-12-13 21:29:28 UTC
Is anyone able to reproduce this issue with gcc-6?
Comment 19 Martin von Gagern 2017-12-18 11:59:02 UTC
# objdump -T /usr/lib64/libgif.so.7.0.0 | grep reallocarray
… g    DF .text  000000000000004e  Base        reallocarray
# objdump -T /lib64/libc.so.6 | grep reallocarray
… g    DF .text  0000000000000062  GLIBC_PRIVATE __libc_reallocarray
…  w   DF .text  0000000000000062  GLIBC_2.26  reallocarray

So it would seem that giflib and and glibc actually export that symbol. The "w" in libc might denote a weak symbol, in which case the giflib version would take precedence. Is this indeed intended behavior, or would we prefer giflib built against more recent libc to neither declare nor export that symbol itself?
Comment 20 Ben Kohler gentoo-dev 2017-12-18 21:55:58 UTC
FWIW I've been involved in helping troubleshoot 3 or 4 more of these on IRC, and in every case the user was on ~amd64 glibc-2.26, ~amd64 khtml-5.41.0, and older-than-current-stable gcc-5.4.0.

Bumping up to gcc-6 or higher has fixed all of them I've come across.
Comment 21 Martin von Gagern 2017-12-18 22:26:56 UTC
Do we have any understanding WHY newer GCC does not fail here? To me, GCC 5 looks correct: two conflicting symbols with two separate declarations, which happen to differ in their throws specification. I guess GCC feels more confident about that throws, but does that mean that using the implementations interchangably is safe?
Comment 22 Andreas Sturmlechner gentoo-dev 2017-12-28 12:16:10 UTC
Everything pre-GCC-5.4 was masked, so there's nothing left to do here anymore.
Comment 23 Toralf Förster gentoo-dev 2018-02-24 14:32:51 UTC
got at the unstable amd64 chroot image 17.0-desktop_libressl_20180219-235058 this : /.../gif_lib.h:248:51: error: declaration of void* reallocarray(void*, size_t, size_t) has a different exception specifier
Comment 24 Toralf Förster gentoo-dev 2018-02-24 14:32:58 UTC
Created attachment 520884 [details]
emerge-info.txt
Comment 25 Toralf Förster gentoo-dev 2018-02-24 14:33:01 UTC
Created attachment 520886 [details]
emerge-history.txt
Comment 26 Toralf Förster gentoo-dev 2018-02-24 14:33:05 UTC
Created attachment 520888 [details]
environment
Comment 27 Toralf Förster gentoo-dev 2018-02-24 14:33:09 UTC
Created attachment 520890 [details]
etc.portage.tbz2
Comment 28 Toralf Förster gentoo-dev 2018-02-24 14:33:12 UTC
Created attachment 520892 [details]
kde-frameworks:khtml-5.43.0:20180224-121944.log.bz2
Comment 29 Toralf Förster gentoo-dev 2018-02-24 14:33:15 UTC
Created attachment 520894 [details]
logs.tbz2
Comment 30 Toralf Förster gentoo-dev 2018-02-24 14:33:19 UTC
Created attachment 520896 [details]
temp.tbz2
Comment 31 Sebastian Pipping gentoo-dev 2018-03-14 18:08:04 UTC
Hi!

giflib is at fault here.  Upstream commit https://sourceforge.net/p/giflib/code/ci/79946c0cf620c5360abc3b6bef1a86fb76112d60/ introduced the lines

  extern void *
  reallocarray(void *optr, size_t nmemb, size_t size);

to /usr/include/gif_lib.h.  Git history says that 5.1.2 was the first version of gitlib with these lines.

vapier has reported concerns about these lines independently, already.  No reaction upstream, yet.

Right now I think the best way to fix the issue would be to rename all uses, exports and the implementation of reallocarray in giflib (file openbsd-reallocarray.c) to "openbsd_reallocarray" in a new ebuild 5.1.4-r1.

What do you think?
Comment 32 Sebastian Pipping gentoo-dev 2018-03-14 20:29:02 UTC
Created attachment 523960 [details, diff]
Proposed patch for giflib 5.1.4

Here's a patch for giflib 5.1.4
Comment 33 Larry the Git Cow gentoo-dev 2018-03-23 23:26:51 UTC
The bug has been closed via the following commit(s):

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

commit 010e1c17d6268e0747b362d3ba81f1e17d9b9f9d
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2018-03-23 22:49:06 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2018-03-23 23:26:30 +0000

    media-libs/giflib: Fix reallocarray export collision
    
    Closes: https://bugs.gentoo.org/637438
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../files/giflib-5.1.4-reallocarray-export.patch   | 129 +++++++++++++++++++++
 media-libs/giflib/giflib-5.1.4-r1.ebuild           |  75 ++++++++++++
 2 files changed, 204 insertions(+)