Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666094 - app-misc/ddcutil-0.8.4 fail compile : device_id_util.c:920:39: error: ‘__builtin___snprintf_chk’
Summary: app-misc/ddcutil-0.8.4 fail compile : device_id_util.c:920:39: error: ‘__buil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-12 18:19 UTC by jms
Modified: 2020-07-30 23:07 UTC (History)
1 user (show)

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


Attachments
build log (app-misc:ddcutil-0.8.4:20180912-175946.log,17.00 KB, text/x-log)
2018-09-12 18:19 UTC, jms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jms 2018-09-12 18:19:44 UTC
Created attachment 546784 [details]
build log

/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libdrm     -Wall -Werror  -march=native -O2 -pipe -fno-delete-null-pointer-checks -c -o file_util.lo file_util.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libdrm -Wall -Werror -march=native -O2 -pipe -fno-delete-null-pointer-checks -c file_util.c  -fPIC -DPIC -o .libs/file_util.o
device_id_util.c: In function ‘devid_usage_code_id_name’:
device_id_util.c:920:39: error: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Werror=format-truncation=]
       snprintf(resultbuf, 10, "ENUM_%d", usage_simple_id);
                                       ^
In file included from /usr/include/stdio.h:862,
                 from device_id_util.c:37:
/usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 7 and 11 bytes into a destination of size 10
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:516: device_id_util.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/app-misc/ddcutil-0.8.4/work/ddcutil-0.8.4/src/util'
make[2]: *** [Makefile:1518: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-misc/ddcutil-0.8.4/work/ddcutil-0.8.4/src'
make[1]: *** [Makefile:620: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-misc/ddcutil-0.8.4/work/ddcutil-0.8.4'
make: *** [Makefile:487: all] Error 2
 * ERROR: app-misc/ddcutil-0.8.4::gentoo failed (compile phase):
 *   emake failed


emerge --info '=app-misc/ddcutil-0.8.4::gentoo' 

Portage 2.3.49 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.2.0, glibc-2.26-r7, 4.18.7-gentoo-jms-10.8-docker-1-vb-intel-0.1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.7-gentoo-jms-10.8-docker-1-vb-intel-0.1-x86_64-Intel-R-_Core-TM-_i5-7200U_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:     8112400 total,   2292588 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Wed, 12 Sep 2018 09:00:01 +0000
Head commit of repository gentoo: f73445d6f63e570d115d495d4acecf835949b235
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p2) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.6.5::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.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r3::gentoo, 2.31.1::gentoo
sys-devel/gcc:            8.2.0-r2::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

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

jms-local-Overlay
    location: /usr/local/portage
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fno-delete-null-pointer-checks"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fno-delete-null-pointer-checks"
DISTDIR="/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FEATURES="assume-digests binpkg-logs clean-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="http://gentoo.modulix.net/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr es"
MAKEOPTS="-j3"
PKGDIR="/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 apache2 berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdr cgroups cli consolekit crypt cups cxx dbus declarative dri dri3 dts dvbpsi dvd dvdr ebook efi egl emboss encode epub exif fam ffmpeg flac fortran gbm gdbm gif glamor gpm grub gtk iconv ipv6 jpeg kde kipi kwallet lame lcms ldap libass libcaca libnotify libtirpc lm_sensors lvm lzma mad matroska mng mobi modules mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmax openmp opus pam pango pcre pdf phonon php plasma pm-utils png policykit ppds projectm pulseaudio qml qt5 qtmedia readline sddm sdl seccomp semantic-desktop spell ssl startup-notification svg taglib tcpd threads tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vlm vorbis vpx vulkan widgets wxwidgets x264 x265 xa xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 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="evdev synaptics" KERNEL="linux" L10N="en-GB fr-FR es-ES en fr es" 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 php7-0 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

app-misc/ddcutil-0.8.4::gentoo was built with the following:
USE="-usb-monitor -user-permissions" ABI_X86="(64)" VIDEO_CARDS="-nvidia"
Comment 1 jms 2018-09-12 18:23:55 UTC
upgraded to 
app-misc/ddcutil-0.9.1
compile fine
Comment 2 Larry the Git Cow gentoo-dev 2020-07-30 23:07:51 UTC
The bug has been closed via the following commit(s):

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

commit b6a980e776954dbc69640c3afc2d1204c3a8d8f5
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2020-07-30 23:05:33 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2020-07-30 23:07:42 +0000

    app-misc/ddcutil: version bump
    
    Fixes: https://bugs.gentoo.org/713176
    Fixes: https://bugs.gentoo.org/666094
    Fixes: https://bugs.gentoo.org/662804
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 app-misc/ddcutil/Manifest             |   1 +
 app-misc/ddcutil/ddcutil-0.9.9.ebuild | 114 ++++++++++++++++++++++++++++++++++
 app-misc/ddcutil/metadata.xml         |   5 +-
 3 files changed, 119 insertions(+), 1 deletion(-)