Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660970 - sys-block/open-iscsi-2.0.876: sysfs.c:326:48: error: /iscsi_host/ directive output may be truncated writing 12 bytes into a region of size between 1 and 4096 [-Werror=format-truncation=]
Summary: sys-block/open-iscsi-2.0.876: sysfs.c:326:48: error: /iscsi_host/ directive o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 664970 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-07-11 22:29 UTC by Erik Fjeldstrom
Modified: 2019-02-23 17:45 UTC (History)
4 users (show)

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


Attachments
build.log (file_660970.txt,14.93 KB, text/plain)
2018-07-11 22:29 UTC, Erik Fjeldstrom
Details
open-iscsi-9999.ebuild (file_660970.txt,4.39 KB, text/plain)
2018-07-25 22:23 UTC, Erik Fjeldstrom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Fjeldstrom 2018-07-11 22:29:57 UTC
Created attachment 539286 [details]
build.log

A compilation error occurs for "libopeniscsiusr/sysfs.c":

sysfs.c:326:48: error: '/iscsi_host/' directive output may be truncated writing 12 bytes into a region of size between 1 and 4096 [-Werror=format-truncation=]

This has been fixed in commit 92a7cfea36592b434725fa59daa8dacd52aaf45c on 18 June (https://github.com/open-iscsi/open-iscsi/commit/92a7cfea36592b434725fa59daa8dacd52aaf45c)

emerge -pqv '=sys-block/open-iscsi-2.0.876::gentoo':
[ebuild   R   ] sys-block/open-iscsi-2.0.876  USE="tcp -debug -infiniband -rdma"

emerge --info '=sys-block/open-iscsi-2.0.876::gentoo':
Portage 2.3.42 (python 3.6.6-final-0, default/linux/amd64/17.0/no-multilib, gcc-8.1.0, glibc-2.27-r5, 4.17.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.17.4-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.6
KiB Mem:     3959912 total,    255468 free
KiB Swap:    8388604 total,   8377996 free
Timestamp of repository gentoo: Wed, 11 Jul 2018 19:15:01 +0000
Head commit of repository gentoo: 1d7ffb7d77d0cd7900d1e23383eac865935afc16
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.9999 p1) 2.30.90.20180628
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.11.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.9999::gentoo
sys-devel/gcc:            8.1.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r5::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -floop-nest-optimize -fgraphite-identity"
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="-O2 -pipe -march=native -floop-nest-optimize -fgraphite-identity"
DISTDIR="/var/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 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.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/var/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 acl amd64 berkdb bzip2 caps cli crypt cxx dbus dri fortran gdbm gtk gtk3 iconv ipv6 libtirpc lzma modules ncurses nls nptl openmp pam pcre readline seccomp ssl systemd tcpd udev unicode xattr zeroconf 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 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" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python3_6 python2_7" QEMU_SOFTMMU_TARGETS="aarch64 aarch64_be arm i386 x86_64" QEMU_USER_TARGETS="aarch64 aarch64_be arm i386 x86_64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel virgl" 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
=================================================================

sys-block/open-iscsi-2.0.876::gentoo was built with the following:
USE="tcp -debug -infiniband -rdma"
Comment 1 Erik Fjeldstrom 2018-07-25 22:23:52 UTC
Created attachment 541068 [details]
open-iscsi-9999.ebuild

The build from the master branch of the Git version (*-9999.ebuild attached) compiles and works correctly.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-08 18:23:32 UTC
*** Bug 664970 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2018-09-08 18:40:02 UTC
The bug has been closed via the following commit(s):

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

commit f6b63795ab790ba89aecbe08c831be87b02ea780
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-09-08 18:31:21 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-09-08 18:39:47 +0000

    sys-block/open-iscsi: add snapshot version to allow building against gcc-8
    
    Closes: https://bugs.gentoo.org/660970
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 sys-block/open-iscsi/Manifest                      |   1 +
 .../open-iscsi-2.0.876_p20180814-musl-fixes.patch  |  85 ++++++++++++++
 .../open-iscsi/open-iscsi-2.0.876_p20180814.ebuild | 125 +++++++++++++++++++++
 3 files changed, 211 insertions(+)